Fix onchange_partner_id for new behavior of property

bzr revid: ced-e2024c169f64c7801eaa28bf7f41fceb4ca99b5f
This commit is contained in:
ced 2007-08-10 06:13:16 +00:00
parent a32f279c8f
commit ee0936a83d
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ class sale_order_line(osv.osv):
taxep = None
if partner_id:
taxep = self.pool.get('res.partner').browse(cr, uid, partner_id).property_account_tax
if not taxep.id:
if not taxep or not taxep.id:
result['tax_id'] = res['taxes_id']
else:
res5 = [taxep.id]