diff --git a/models/sale_order.py b/models/sale_order.py index d844808..c3d33d4 100644 --- a/models/sale_order.py +++ b/models/sale_order.py @@ -13,8 +13,13 @@ class SaleOrder(models.Model): lambda t: not t.pack_parent_line_id.exists(), ) -# @api.multi -# def action_invoice_create(self, grouped=False, final=False): + @api.multi + def action_invoice_create(self, grouped=False, final=False): + res = super(SaleOrder, self).action_invoice_create(grouped, final) + print("------ res ------", str(res)) + print("------ grouped ------", str(grouped)) + print("------ final ------", str(final)) + return res # """ # Create the invoice associated to the SO. # :param grouped: if True, invoices are grouped by SO id. If False, invoices are grouped by @@ -107,6 +112,7 @@ class SaleOrderLine(models.Model): @api.multi def invoice_line_create(self, invoice_id, qty): + print("---- TEST sans rien----") print("---- TEST ----", str(invoice_id)) invoice_lines = super(SaleOrderLine, self).invoice_line_create( invoice_id, qty)