diff --git a/nfu_product_bnn_attributes/README.rst b/nfu_product_bnn_attributes/README.rst index cd55a9a..c7a42ce 100644 --- a/nfu_product_bnn_attributes/README.rst +++ b/nfu_product_bnn_attributes/README.rst @@ -41,6 +41,7 @@ Changelog - 16.0.1.2.2: Enable Unit of Measure on installation - 16.0.1.3.0: Add GTIN Article field and update metadata retrieval - 16.0.1.3.1: Temporay disable image_1920 field verification +- 16.0.1.3.2: Temporay disable image_1920 field verification for product.image Bug Tracker =========== diff --git a/nfu_product_bnn_attributes/__manifest__.py b/nfu_product_bnn_attributes/__manifest__.py index 96982aa..680c06a 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.3.1", + "version": "16.0.1.3.2", "depends": ["nfu_product", "data_nature_importer"], "data": ["data/ir_config_parameter.xml", "views/product_bnn_views.xml"], "assets": {}, diff --git a/nfu_product_bnn_attributes/models/__init__.py b/nfu_product_bnn_attributes/models/__init__.py index 18b37e8..fc40573 100644 --- a/nfu_product_bnn_attributes/models/__init__.py +++ b/nfu_product_bnn_attributes/models/__init__.py @@ -1,2 +1,3 @@ +from . import product_image from . import product_product from . import product_template diff --git a/nfu_product_bnn_attributes/models/product_image.py b/nfu_product_bnn_attributes/models/product_image.py new file mode 100644 index 0000000..11c4c8a --- /dev/null +++ b/nfu_product_bnn_attributes/models/product_image.py @@ -0,0 +1,8 @@ +from odoo import fields, models + + +class ProductImage(models.Model): + _inherit = "product.image" + + # TODO: Remove as soon as data_nature thumbnails work + image_1920 = fields.Image(verify_resolution=False) diff --git a/nfu_product_bnn_attributes/readme/HISTORY.rst b/nfu_product_bnn_attributes/readme/HISTORY.rst index 6f827bb..2e79dc7 100644 --- a/nfu_product_bnn_attributes/readme/HISTORY.rst +++ b/nfu_product_bnn_attributes/readme/HISTORY.rst @@ -6,4 +6,5 @@ - 16.0.1.2.1: Always write the company in the product packaging - 16.0.1.2.2: Enable Unit of Measure on installation - 16.0.1.3.0: Add GTIN Article field and update metadata retrieval -- 16.0.1.3.1: Temporay disable image_1920 field verification \ No newline at end of file +- 16.0.1.3.1: Temporay disable image_1920 field verification +- 16.0.1.3.2: Temporay disable image_1920 field verification for product.image \ 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 c1bab07..4b44c14 100644 --- a/nfu_product_bnn_attributes/static/description/index.html +++ b/nfu_product_bnn_attributes/static/description/index.html @@ -395,6 +395,7 @@ ul.auto-toc {
  • 16.0.1.2.2: Enable Unit of Measure on installation
  • 16.0.1.3.0: Add GTIN Article field and update metadata retrieval
  • 16.0.1.3.1: Temporay disable image_1920 field verification
  • +
  • 16.0.1.3.2: Temporay disable image_1920 field verification for product.image