mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] product_waranty : fix syntax error
This commit is contained in:
committed by
SilvioC2C
parent
c0037373c4
commit
da35e6e8b2
@@ -67,7 +67,7 @@ class product_supplierinfo(osv.osv):
|
||||
if return_partner:
|
||||
if return_partner == 'supplier':
|
||||
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:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user