This commit is contained in:
manu
2012-01-03 16:28:42 +01:00
committed by SilvioC2C
parent 17b0194644
commit dbaf10c746

View File

@@ -55,6 +55,8 @@ class product_supplierinfo(osv.osv):
instruction_ids = self.pool.get('return.instruction').search(cr, uid, [('is_default','=','FALSE')]) instruction_ids = self.pool.get('return.instruction').search(cr, uid, [('is_default','=','FALSE')])
if instruction_ids: if instruction_ids:
return instruction_ids[0] return instruction_ids[0]
# TO DO f(supplier) + other...
return False
_columns = { _columns = {
"warranty_duration" : fields.float('Warranty', help="Warranty in month for this product/supplier relation. Only for company/supplier relation (purchase order) ; the customer/company relation (sale order) always use the product main warranty field"), "warranty_duration" : fields.float('Warranty', help="Warranty in month for this product/supplier relation. Only for company/supplier relation (purchase order) ; the customer/company relation (sale order) always use the product main warranty field"),