[FIX] purchase: fiscal_position from PO in invoice

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

bzr revid: dhs@tinyerp.com-20101027055522-g5tfw4nxfbx72qd5
This commit is contained in:
DHS (OpenERP) 2010-10-27 11:25:22 +05:30
parent c95603512e
commit 73d818f71a
1 changed files with 3 additions and 3 deletions

View File

@ -369,7 +369,7 @@ class purchase_order(osv.osv):
'journal_id': len(journal_ids) and journal_ids[0] or False,
'origin': o.name,
'invoice_line': il,
'fiscal_position': o.partner_id.property_account_position.id,
'fiscal_position': o.fiscal_position.id or o.partner_id.property_account_position.id,
'payment_term': o.partner_id.property_payment_term and o.partner_id.property_payment_term.id or False,
'company_id': o.company_id.id,
}