[FIX] sale: origin are null on invoice line to create invoice button on sale order

lp bug: https://launchpad.net/bugs/1062119 fixed

bzr revid: amp@tinyerp.com-20121005101759-bdc095ez7xk2c9w4
This commit is contained in:
Amit (OpenERP) 2012-10-05 15:47:59 +05:30
parent ba97319054
commit d9ed2215d1
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ class sale_advance_payment_inv(osv.osv_memory):
# create the invoice
inv_line_values = {
'name': res.get('name'),
'origin': sale.name,
'account_id': res['account_id'],
'price_unit': inv_amount,
'quantity': wizard.qtty or 1.0,