Browse Source

Ajout print

12.0
Juliana 4 years ago
parent
commit
4b2e60147b
  1. 10
      models/sale_order.py

10
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)

Loading…
Cancel
Save