[FIX] product_waranty : fix syntax error

This commit is contained in:
sebastien beau
2012-09-12 18:58:33 +02:00
committed by SilvioC2C
parent c0037373c4
commit da35e6e8b2

View File

@@ -67,7 +67,7 @@ class product_supplierinfo(osv.osv):
if return_partner: if return_partner:
if return_partner == 'supplier': if return_partner == 'supplier':
partner_id = supplier_info.name.id partner_id = supplier_info.name.id
elif sreturn_partner == 'brand': elif return_partner == 'brand':
if not supplier_info.product_id.product_brand_id.partner_id: if not supplier_info.product_id.product_brand_id.partner_id:
raise osv.except_osv(_('Error !'), _('You need to define a partner for the brand of the product !')) raise osv.except_osv(_('Error !'), _('You need to define a partner for the brand of the product !'))
partner_id = supplier_info.product_id.product_brand_id.partner_id.id partner_id = supplier_info.product_id.product_brand_id.partner_id.id