diff --git a/purchase_order_line_seller/__manifest__.py b/purchase_order_line_seller/__manifest__.py index d57f6f780c..c31a0cecd9 100644 --- a/purchase_order_line_seller/__manifest__.py +++ b/purchase_order_line_seller/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Purchase Order Line Seller", - "version": "14.0.1.0.0", + "version": "16.0.1.0.0", "category": "Purchase Management", "license": "AGPL-3", "author": "AvanzOSC", diff --git a/purchase_order_line_seller/models/product_supplierinfo.py b/purchase_order_line_seller/models/product_supplierinfo.py index 0e5c7423c6..67d6373221 100644 --- a/purchase_order_line_seller/models/product_supplierinfo.py +++ b/purchase_order_line_seller/models/product_supplierinfo.py @@ -12,7 +12,7 @@ def name_get(self): product_name = ( supplierinfo.product_name if supplierinfo.product_name - else supplierinfo.name.name + else supplierinfo.partner_id.name ) if supplierinfo.product_code: name = "[{}] {}".format(supplierinfo.product_code, product_name) diff --git a/setup/purchase_order_line_seller/odoo/addons/purchase_order_line_seller b/setup/purchase_order_line_seller/odoo/addons/purchase_order_line_seller new file mode 120000 index 0000000000..b765387ece --- /dev/null +++ b/setup/purchase_order_line_seller/odoo/addons/purchase_order_line_seller @@ -0,0 +1 @@ +../../../../purchase_order_line_seller \ No newline at end of file diff --git a/setup/purchase_order_line_seller/setup.py b/setup/purchase_order_line_seller/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/purchase_order_line_seller/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)