diff --git a/golem_resource_account/__manifest__.py b/golem_resource_account/__manifest__.py index b584e33..b6b0cf7 100644 --- a/golem_resource_account/__manifest__.py +++ b/golem_resource_account/__manifest__.py @@ -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', diff --git a/golem_resource_account/models/golem_resource_reservation.py b/golem_resource_account/models/golem_resource_reservation.py index 7c99e60..51b8727 100644 --- a/golem_resource_account/models/golem_resource_reservation.py +++ b/golem_resource_account/models/golem_resource_reservation.py @@ -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