From 237ce73198d1e3d43e8af0d7cf06fc7a84e362d9 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Mon, 26 Mar 2018 16:32:03 +0200 Subject: [PATCH] [IMP]GOLEM Resource Account : prefer origin more than name / reference here --- golem_resource_account/wizard/golem_reservation_invoice.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/golem_resource_account/wizard/golem_reservation_invoice.py b/golem_resource_account/wizard/golem_reservation_invoice.py index 056a623..ec8e57d 100644 --- a/golem_resource_account/wizard/golem_reservation_invoice.py +++ b/golem_resource_account/wizard/golem_reservation_invoice.py @@ -55,18 +55,15 @@ class GolemReservationInvoiceWizard(models.TransientModel): product = reservation.resource_id.product_tmpl_id amount = product.standard_price lines.append((0, 0, { - 'name': reservation.resource_id.name, - #'origin': , + 'origin': reservation.resource_id.name, 'account_id': account_id, 'price_unit': amount, 'quantity': 1.0, - 'discount': 0.0, 'uom_id': product.uom_id.id, 'product_id': product.id, })) invoice = inv_obj.create({ - 'name': self.reservation_ids[-1].name, - #'origin': self.application_number, + 'origin': self.reservation_ids[-1].name, 'type': 'out_invoice', 'reference': False, 'account_id': partner_id.property_account_receivable_id.id,