mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
Merge pull request #33 from akretion/10-fix-weight-net
[FIX] 2 critical bugs
This commit is contained in:
committed by
GitHub
commit
4c8951c92d
@@ -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',
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user