diff --git a/nfu_product_bnn_attributes/README.rst b/nfu_product_bnn_attributes/README.rst index b2ec0ab..92e9f41 100644 --- a/nfu_product_bnn_attributes/README.rst +++ b/nfu_product_bnn_attributes/README.rst @@ -35,6 +35,7 @@ Changelog :1.0.0: Initial module. :1.1.0: Add packaging +:1.1.1: inherit package company if from product Bug Tracker =========== diff --git a/nfu_product_bnn_attributes/__manifest__.py b/nfu_product_bnn_attributes/__manifest__.py index 92608a6..d57bdf2 100644 --- a/nfu_product_bnn_attributes/__manifest__.py +++ b/nfu_product_bnn_attributes/__manifest__.py @@ -4,7 +4,7 @@ "author": "BAKEUP", "website": "https://www.bakeup.org", "category": "Product", - "version": "16.0.1.1.0", + "version": "16.0.1.1.1", "depends": ["product"], "data": ["views/product_bnn_views.xml"], "assets": {}, diff --git a/nfu_product_bnn_attributes/models/product_template.py b/nfu_product_bnn_attributes/models/product_template.py index 81fb9a0..1f881c8 100644 --- a/nfu_product_bnn_attributes/models/product_template.py +++ b/nfu_product_bnn_attributes/models/product_template.py @@ -28,6 +28,12 @@ class ProductTemplate(models.Model): packagings.write({"name": name, "qty": qty, "sales": True}) else: self.env["product.packaging"].create( - {"name": name, "qty": qty, "product_id": product_product.id, "sales": True} + { + "name": name, + "qty": qty, + "product_id": product_product.id, + "sales": True, + "company_id": product_product.company_id.id, + } ) return res diff --git a/nfu_product_bnn_attributes/readme/HISTORY.rst b/nfu_product_bnn_attributes/readme/HISTORY.rst index e6c8ca0..426e549 100644 --- a/nfu_product_bnn_attributes/readme/HISTORY.rst +++ b/nfu_product_bnn_attributes/readme/HISTORY.rst @@ -1,3 +1,4 @@ :1.0.0: Initial module. -:1.1.0: Add packaging \ No newline at end of file +:1.1.0: Add packaging +:1.1.1: inherit package company if from product \ No newline at end of file diff --git a/nfu_product_bnn_attributes/static/description/index.html b/nfu_product_bnn_attributes/static/description/index.html index fe44d6a..f6d6f70 100644 --- a/nfu_product_bnn_attributes/static/description/index.html +++ b/nfu_product_bnn_attributes/static/description/index.html @@ -394,6 +394,8 @@ ul.auto-toc {