[FIX] sale: trigger all_lines signal when all lines are invoiced
This commit is contained in:
parent
0021fa977d
commit
b1df5aab6e
|
@ -100,7 +100,7 @@ class sale_order_line_make_invoice(osv.osv_memory):
|
||||||
flag = False
|
flag = False
|
||||||
break
|
break
|
||||||
if flag:
|
if flag:
|
||||||
wf_service.trg_validate(uid, 'sale.order', order.id, 'manual_invoice', cr)
|
wf_service.trg_validate(uid, 'sale.order', order.id, 'all_lines', cr)
|
||||||
|
|
||||||
if not invoices:
|
if not invoices:
|
||||||
raise osv.except_osv(_('Warning!'), _('Invoice cannot be created for this Sales Order Line due to one of the following reasons:\n1.The state of this sales order line is either "draft" or "cancel"!\n2.The Sales Order Line is Invoiced!'))
|
raise osv.except_osv(_('Warning!'), _('Invoice cannot be created for this Sales Order Line due to one of the following reasons:\n1.The state of this sales order line is either "draft" or "cancel"!\n2.The Sales Order Line is Invoiced!'))
|
||||||
|
|
Loading…
Reference in New Issue