Compute total in supplier invoices for:
stock -> create invoice on picking po hr_expense bzr revid: fp@tinyerp.com-9239728dade0c66a15222656f6e3a10a13d6c6ee
This commit is contained in:
@@ -221,6 +221,7 @@ class purchase_order(osv.osv):
|
||||
'invoice_line': il,
|
||||
}
|
||||
inv_id = self.pool.get('account.invoice').create(cr, uid, inv, {'type':'in_invoice'})
|
||||
self.pool.get('account.invoice').button_compute(cr, uid, [inv_id], {'type':'in_invoice'}, set_total=True)
|
||||
|
||||
self.write(cr, uid, [o.id], {'invoice_id': inv_id})
|
||||
res = inv_id
|
||||
|
||||
Reference in New Issue
Block a user