mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[UPDATE]
This commit is contained in:
@@ -54,7 +54,9 @@ class product_supplierinfo(osv.osv):
|
|||||||
def _get_default_instructions(self, cr, uid,context):
|
def _get_default_instructions(self, cr, uid,context):
|
||||||
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"),
|
||||||
|
|||||||
Reference in New Issue
Block a user