[FIX]GOLEM Resource Account : should use product.product on invoice line, not product.template

This commit is contained in:
Fabien BOURGEOIS 2018-03-27 11:31:54 +02:00
parent 1d19c17f4a
commit 66601c03b9
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
'name': 'GOLEM resources invoicing',
'summary': 'GOLEM resources invoicing',
'description': ''' GOLEM resources invoicing ''',
'version': '10.0.0.1.1',
'version': '10.0.0.1.2',
'category': 'GOLEM',
'author': 'Youssef El Ouahby, Fabien Bourgeois',
'license': 'AGPL-3',

View File

@ -81,7 +81,7 @@ class GolemResourceReservation(models.Model):
'quantity': quantity,
'uom_id': product.uom_id.id,
'account_id': account_id,
'product_id': product.id,
'product_id': product.product_variant_id.id,
})
reservation.invoice_line_id = line_id