From e1938bb3a8044ab46f2ab796f1ccd3cc9051d3e0 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Wed, 4 Dec 2024 17:17:31 +0530 Subject: [PATCH] Dec 04: [FIX] Bug Fixed 'product_multi_document' --- product_multi_document/__manifest__.py | 2 +- product_multi_document/doc/RELEASE_NOTES.md | 5 +++++ product_multi_document/models/product_template.py | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/product_multi_document/__manifest__.py b/product_multi_document/__manifest__.py index fab11b3dc..2ee4a2fb5 100644 --- a/product_multi_document/__manifest__.py +++ b/product_multi_document/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################### { 'name': 'Product Multi Document', - 'version': '17.0.1.0.0', + 'version': '17.0.1.0.1', 'category': 'Purchases,Discuss', 'summary': """Multiple documents can be attached to a product with the help of this module.""", diff --git a/product_multi_document/doc/RELEASE_NOTES.md b/product_multi_document/doc/RELEASE_NOTES.md index 9945259b6..9299b728c 100644 --- a/product_multi_document/doc/RELEASE_NOTES.md +++ b/product_multi_document/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 17.0.1.0.0 ##### ADD - Initial commit for Product Multi Document + +#### 02.12.2024 +#### Version 17.0.1.0.1 +##### FIX +- Fixed an issue in the case of choosing documents from product template diff --git a/product_multi_document/models/product_template.py b/product_multi_document/models/product_template.py index 8901e2524..dc39143bc 100644 --- a/product_multi_document/models/product_template.py +++ b/product_multi_document/models/product_template.py @@ -28,4 +28,5 @@ class ProductTemplate(models.Model): document_ids = fields.Many2many('documents.document', string='Document', - help='Added product document') + help='Added product document', + domain=[('type', '=', 'binary')])