Merge pull request #33 from akretion/10-fix-weight-net

[FIX] 2 critical bugs
This commit is contained in:
Moises Lopez - https://www.vauxoo.com/
2018-06-01 01:46:11 -05:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -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',

View File

@@ -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)

View File

@@ -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):