From 9832e760e438d77b8afacc00fea69d324ef58a8e Mon Sep 17 00:00:00 2001 From: manu Date: Thu, 13 Oct 2011 11:10:00 +0200 Subject: [PATCH] [ADD] images to product_warranty [UPDATE] product_warranty infos [ADD] other in warranty return partner list --- crm_claim_ext/__openerp__.py | 1 + product_warranty/__openerp__.py | 4 ++++ .../images/product_warranty.png | Bin product_warranty/product_warranty.py | 6 ++++-- 4 files changed, 9 insertions(+), 2 deletions(-) rename {crm_claim_rma => product_warranty}/images/product_warranty.png (100%) diff --git a/crm_claim_ext/__openerp__.py b/crm_claim_ext/__openerp__.py index 632b36cb..1422764a 100644 --- a/crm_claim_ext/__openerp__.py +++ b/crm_claim_ext/__openerp__.py @@ -26,6 +26,7 @@ 'version': '1.0', 'category': 'Generic Modules/CRM & SRM', 'description': """ +Akretion - Emmanuel Samyn Add some fields to CRM claim : canal, spirit """, 'author': 'Akretion', diff --git a/product_warranty/__openerp__.py b/product_warranty/__openerp__.py index 44cc8f02..1e45d31e 100644 --- a/product_warranty/__openerp__.py +++ b/product_warranty/__openerp__.py @@ -26,7 +26,10 @@ 'version': '1.0', 'category': 'Generic Modules/Product', 'description': """ +Akretion - Emmanuel Samyn Extend the product warranty management with warranty details on product / supplier relation +* supplier warranty duration +* return product to company, supplier, brand, other """, 'author': 'Akretion', 'website': 'http://www.akretion.com', @@ -40,6 +43,7 @@ Extend the product warranty management with warranty details on product / suppli 'installable': True, 'active': False, 'certificate' : '', + 'images': ['images/product_warranty.png'], } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/crm_claim_rma/images/product_warranty.png b/product_warranty/images/product_warranty.png similarity index 100% rename from crm_claim_rma/images/product_warranty.png rename to product_warranty/images/product_warranty.png diff --git a/product_warranty/product_warranty.py b/product_warranty/product_warranty.py index 4776f679..3123069a 100644 --- a/product_warranty/product_warranty.py +++ b/product_warranty/product_warranty.py @@ -30,11 +30,13 @@ class product_supplierinfo(osv.osv): return [ ('company','Company'), ('supplier','Supplier'), - ('brand','Brand manufacturer'),] + ('brand','Brand manufacturer'), + ('other','Other'),] else: return [ ('company','Company'), - ('brand','Brand manufacturer'),] + ('brand','Brand manufacturer'), + ('other','Other'),] _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"),