US-009 (481), FB-012: Rechnung von ATOC18-000502

develop
Roman Widmann 2018-09-05 15:27:47 +02:00
parent 5f3a0ecadf
commit db3c36b72c
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class AccountInvoiceLine(models.Model):
if vals.get('lot_id', False):
vals.update(intrastat_id=self.env['stock.production.lot'].browse(vals['lot_id']).intrastat_id.id)
elif vals.get('product_id', False):
vals.update(intrastat_id=self.env['product.template'].browse(vals['product_id']).intrastat_id.id)
vals.update(intrastat_id=self.env['product.product'].browse(vals['product_id']).intrastat_id.id)
return super(AccountInvoiceLine, self).create(vals)
@api.multi