From 7a6885caed275fe74a63bf098642706891e08748 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Thu, 17 Jul 2025 12:27:28 +0530 Subject: [PATCH] July 17: [FIX] Bug Fixed 'multiple_reference_per_product' --- multiple_reference_per_product/__init__.py | 2 +- multiple_reference_per_product/__manifest__.py | 4 ++-- multiple_reference_per_product/doc/RELEASE_NOTES.md | 5 +++++ multiple_reference_per_product/models/__init__.py | 2 +- .../models/multiple_reference_per_product.py | 4 ++-- multiple_reference_per_product/models/product_product.py | 2 +- multiple_reference_per_product/models/product_template.py | 2 +- 7 files changed, 13 insertions(+), 8 deletions(-) diff --git a/multiple_reference_per_product/__init__.py b/multiple_reference_per_product/__init__.py index 7d394e086..573e9b4cd 100644 --- a/multiple_reference_per_product/__init__.py +++ b/multiple_reference_per_product/__init__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Copyright (C) 2025-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # # You can modify it under the terms of the GNU AFFERO diff --git a/multiple_reference_per_product/__manifest__.py b/multiple_reference_per_product/__manifest__.py index c4885a700..b884eefbd 100644 --- a/multiple_reference_per_product/__manifest__.py +++ b/multiple_reference_per_product/__manifest__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Copyright (C) 2025-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # # You can modify it under the terms of the GNU AFFERO @@ -21,7 +21,7 @@ ############################################################################### { 'name': "Multiple Reference Per Product", - 'version': '18.0.1.0.0', + 'version': '18.0.1.0.1', 'summary': 'Allowing multiple references for each product.', 'description': "Add multiple reference code for a product template or " "product variant. Easily manage between the " diff --git a/multiple_reference_per_product/doc/RELEASE_NOTES.md b/multiple_reference_per_product/doc/RELEASE_NOTES.md index 07bc97063..1ca649046 100644 --- a/multiple_reference_per_product/doc/RELEASE_NOTES.md +++ b/multiple_reference_per_product/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 18.0.1.0.0 #### ADD - Initial commit for Multiple Reference Per Product + +#### 16.07.2025 +#### Version 18.0.1.0.1 +#### UPDT +- Update in the python decorator used in the create method. \ No newline at end of file diff --git a/multiple_reference_per_product/models/__init__.py b/multiple_reference_per_product/models/__init__.py index ecc1a6730..847f41ab9 100644 --- a/multiple_reference_per_product/models/__init__.py +++ b/multiple_reference_per_product/models/__init__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Copyright (C) 2025-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # # You can modify it under the terms of the GNU AFFERO diff --git a/multiple_reference_per_product/models/multiple_reference_per_product.py b/multiple_reference_per_product/models/multiple_reference_per_product.py index 4f656e7e0..551257e92 100644 --- a/multiple_reference_per_product/models/multiple_reference_per_product.py +++ b/multiple_reference_per_product/models/multiple_reference_per_product.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Copyright (C) 2025-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # # You can modify it under the terms of the GNU AFFERO @@ -58,7 +58,7 @@ class MultipleReferencePerProduct(models.Model): }) return True if reference else False - @api.model + @api.model_create_multi def create(self, values): """Function to prevent the creation of duplicate references when adding a new record.""" diff --git a/multiple_reference_per_product/models/product_product.py b/multiple_reference_per_product/models/product_product.py index 217bc2037..53ccebda7 100644 --- a/multiple_reference_per_product/models/product_product.py +++ b/multiple_reference_per_product/models/product_product.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Copyright (C) 2025-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # # You can modify it under the terms of the GNU AFFERO diff --git a/multiple_reference_per_product/models/product_template.py b/multiple_reference_per_product/models/product_template.py index a6906dd64..17bf329a3 100644 --- a/multiple_reference_per_product/models/product_template.py +++ b/multiple_reference_per_product/models/product_template.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Copyright (C) 2025-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # # You can modify it under the terms of the GNU AFFERO