|
@ -13,8 +13,13 @@ class SaleOrder(models.Model): |
|
|
lambda t: not t.pack_parent_line_id.exists(), |
|
|
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. |
|
|
# Create the invoice associated to the SO. |
|
|
# :param grouped: if True, invoices are grouped by SO id. If False, invoices are grouped by |
|
|
# :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 |
|
|
@api.multi |
|
|
def invoice_line_create(self, invoice_id, qty): |
|
|
def invoice_line_create(self, invoice_id, qty): |
|
|
|
|
|
print("---- TEST sans rien----") |
|
|
print("---- TEST ----", str(invoice_id)) |
|
|
print("---- TEST ----", str(invoice_id)) |
|
|
invoice_lines = super(SaleOrderLine, self).invoice_line_create( |
|
|
invoice_lines = super(SaleOrderLine, self).invoice_line_create( |
|
|
invoice_id, qty) |
|
|
invoice_id, qty) |
|
|