From 82cfb1f2e49d6225a9ab245affe87528960afbd3 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 11 May 2018 16:36:49 +0200 Subject: [PATCH 1/3] [FIX] weight -> weight_net --- intrastat_product/models/intrastat_product_declaration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intrastat_product/models/intrastat_product_declaration.py b/intrastat_product/models/intrastat_product_declaration.py index 43053d0..865160d 100644 --- a/intrastat_product/models/intrastat_product_declaration.py +++ b/intrastat_product/models/intrastat_product_declaration.py @@ -816,7 +816,7 @@ class IntrastatProductComputationLine(models.Model): self.intrastat_unit_id =\ self.product_id.intrastat_id.intrastat_unit_id if not self.intrastat_unit_id: - self.weight = self.product_id.weight_net + self.weight = self.product_id.weight class IntrastatProductDeclarationLine(models.Model): From 180224e22b19028fbb16b42eba3ebdebdd18e4f8 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 31 May 2018 21:46:42 +0200 Subject: [PATCH 2/3] [FIX] potentiel record rule error when saving account config page Scenario: if you have account_invoice_inter_company from OCA/multi-company, and you use it to make inter-company invoices. Without the related=True on the country_id field, when saving the account config page, it will trigger a write on the country of the partner which will, via invalidate the computed field 'src_dest_country_id' which will trigger a write on an invoices in another company, which will result in a record rule error!!! --- intrastat_product/models/account_config_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intrastat_product/models/account_config_settings.py b/intrastat_product/models/account_config_settings.py index 7036cf7..acb37ce 100644 --- a/intrastat_product/models/account_config_settings.py +++ b/intrastat_product/models/account_config_settings.py @@ -30,4 +30,4 @@ class AccountConfigSettings(models.TransientModel): intrastat_accessory_costs = fields.Boolean( related='company_id.intrastat_accessory_costs') country_id = fields.Many2one( - related='company_id.country_id') + related='company_id.country_id', readonly=True) From 870badb76a70011e7fea40c5216b7f4fc0685830 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Fri, 1 Jun 2018 01:45:59 -0500 Subject: [PATCH 3/3] [REF] intrastat_product: Bumpversion manifest file --- intrastat_product/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intrastat_product/__manifest__.py b/intrastat_product/__manifest__.py index 7714430..02387b0 100644 --- a/intrastat_product/__manifest__.py +++ b/intrastat_product/__manifest__.py @@ -6,7 +6,7 @@ { 'name': 'Intrastat Product', - 'version': '10.0.1.2.0', + 'version': '10.0.1.2.1', 'category': 'Intrastat', 'license': 'AGPL-3', 'summary': 'Base module for Intrastat Product',