From 9ca5c24946a25b52942abebfc8866f504b7569b1 Mon Sep 17 00:00:00 2001 From: Joao Alfredo Gama Batista Date: Fri, 22 Feb 2013 17:40:51 -0500 Subject: [PATCH] [IMP] 7.0 initial version --- crm_claim_rma/account_invoice_view.xml | 3 +-- crm_claim_rma/crm_claim_rma.py | 4 ++-- crm_claim_rma/crm_claim_rma_data.xml | 2 +- crm_claim_rma/crm_claim_rma_view.xml | 15 ++++++++++----- crm_claim_rma/res_company.py | 2 +- crm_claim_rma/res_company_view.xml | 1 - crm_claim_rma/stock_view.xml | 8 ++------ .../claim_make_picking_from_picking_view.xml | 1 - crm_claim_rma/wizard/claim_make_picking_view.xml | 1 - crm_claim_rma/wizard/get_empty_serial_view.xml | 1 - .../returned_lines_from_invoice_wizard_view.xml | 3 --- .../returned_lines_from_serial_wizard_view.xml | 1 - product_warranty/product_warranty_view.xml | 7 +------ 13 files changed, 18 insertions(+), 31 deletions(-) diff --git a/crm_claim_rma/account_invoice_view.xml b/crm_claim_rma/account_invoice_view.xml index 0a6eb798..e4d699aa 100644 --- a/crm_claim_rma/account_invoice_view.xml +++ b/crm_claim_rma/account_invoice_view.xml @@ -14,10 +14,9 @@ account.invoice - form - + diff --git a/crm_claim_rma/crm_claim_rma.py b/crm_claim_rma/crm_claim_rma.py index 363225cf..a95fb98d 100644 --- a/crm_claim_rma/crm_claim_rma.py +++ b/crm_claim_rma/crm_claim_rma.py @@ -88,7 +88,7 @@ class claim_line(osv.osv): 'guarantee_limit': fields.date('Warranty limit', help="The warranty limit is computed as: invoice date + warranty defined on selected product.", readonly=True), 'warning': fields.char('Warranty', size=64, readonly=True,help="If warranty has expired"), #select=1, 'warranty_type': fields.char('Warranty type', size=64, readonly=True,help="from product form"), - "warranty_return_partner" : fields.many2one('res.partner.address', 'Warranty return',help="Where the customer has to send back the product(s)"), + "warranty_return_partner" : fields.many2one('res.partner', 'Warranty return',help="Where the customer has to send back the product(s)"), 'claim_id': fields.many2one('crm.claim', 'Related claim',help="To link to the case.claim object"), 'state' : fields.selection([('draft','Draft'), ('refused','Refused'), @@ -303,7 +303,7 @@ class crm_claim(osv.osv): res = super(crm_claim, self).onchange_partner_address_id(cr, uid, ids, add, email=email) if add: if not res['value']['email_from'] or not res['value']['partner_phone']: - address = self.pool.get('res.partner.address').browse(cr, uid, add) + address = self.pool.get('res.partner').browse(cr, uid, add) for other_add in address.partner_id.address: if other_add.email and not res['value']['email_from']: res['value']['email_from'] = other_add.email diff --git a/crm_claim_rma/crm_claim_rma_data.xml b/crm_claim_rma/crm_claim_rma_data.xml index 9d098335..3e1d97a5 100644 --- a/crm_claim_rma/crm_claim_rma_data.xml +++ b/crm_claim_rma/crm_claim_rma_data.xml @@ -21,7 +21,7 @@ After Sales Service ASV - + + + @@ -218,10 +217,16 @@ crm.claim + + + + + diff --git a/crm_claim_rma/res_company.py b/crm_claim_rma/res_company.py index 8c41d327..a335752a 100644 --- a/crm_claim_rma/res_company.py +++ b/crm_claim_rma/res_company.py @@ -27,7 +27,7 @@ class res_company(osv.osv): _inherit = "res.company" _columns = { - 'crm_return_address_id': fields.many2one('res.partner.address', 'Crm return address', help="Default address where the customers has to send back the returned product in a crm claim. If empty the address is the company address"), + 'crm_return_address_id': fields.many2one('res.partner', 'Crm return address', help="Default address where the customers has to send back the returned product in a crm claim. If empty the address is the company address"), } res_company() diff --git a/crm_claim_rma/res_company_view.xml b/crm_claim_rma/res_company_view.xml index c75338be..2e076d44 100644 --- a/crm_claim_rma/res_company_view.xml +++ b/crm_claim_rma/res_company_view.xml @@ -14,7 +14,6 @@ res.company - form diff --git a/crm_claim_rma/stock_view.xml b/crm_claim_rma/stock_view.xml index 64256268..1760706b 100644 --- a/crm_claim_rma/stock_view.xml +++ b/crm_claim_rma/stock_view.xml @@ -14,7 +14,6 @@ stock.picking - form @@ -46,7 +45,6 @@ stock.picking - form @@ -65,10 +63,9 @@ stock.warehouse - form - + @@ -83,9 +80,8 @@ stock.picking - form - + diff --git a/crm_claim_rma/wizard/claim_make_picking_from_picking_view.xml b/crm_claim_rma/wizard/claim_make_picking_from_picking_view.xml index 67091e11..77d31c42 100644 --- a/crm_claim_rma/wizard/claim_make_picking_from_picking_view.xml +++ b/crm_claim_rma/wizard/claim_make_picking_from_picking_view.xml @@ -10,7 +10,6 @@ claim_picking claim_make_picking_from_picking.wizard - form
diff --git a/crm_claim_rma/wizard/claim_make_picking_view.xml b/crm_claim_rma/wizard/claim_make_picking_view.xml index f36ffd20..89ff4162 100644 --- a/crm_claim_rma/wizard/claim_make_picking_view.xml +++ b/crm_claim_rma/wizard/claim_make_picking_view.xml @@ -10,7 +10,6 @@ claim_picking claim_make_picking.wizard - form diff --git a/crm_claim_rma/wizard/get_empty_serial_view.xml b/crm_claim_rma/wizard/get_empty_serial_view.xml index a3d3248d..87cc3513 100644 --- a/crm_claim_rma/wizard/get_empty_serial_view.xml +++ b/crm_claim_rma/wizard/get_empty_serial_view.xml @@ -27,7 +27,6 @@ get_empty_serial get_empty_serial.wizard - form diff --git a/crm_claim_rma/wizard/returned_lines_from_invoice_wizard_view.xml b/crm_claim_rma/wizard/returned_lines_from_invoice_wizard_view.xml index 2ae90c6e..68021840 100644 --- a/crm_claim_rma/wizard/returned_lines_from_invoice_wizard_view.xml +++ b/crm_claim_rma/wizard/returned_lines_from_invoice_wizard_view.xml @@ -27,7 +27,6 @@ returned_lines_from_invoice_view returned_lines_from_invoice_invoice.wizard - form @@ -57,7 +56,6 @@ returned_lines_from_invoice_line_wiew returned_lines_from_invoice_line.wizard - form @@ -74,7 +72,6 @@ temp_claim_line_Tree temp.claim.line - tree diff --git a/crm_claim_rma/wizard/returned_lines_from_serial_wizard_view.xml b/crm_claim_rma/wizard/returned_lines_from_serial_wizard_view.xml index 45e9cb6e..0acd515e 100644 --- a/crm_claim_rma/wizard/returned_lines_from_serial_wizard_view.xml +++ b/crm_claim_rma/wizard/returned_lines_from_serial_wizard_view.xml @@ -27,7 +27,6 @@ returned_lines_from_serial_wiew returned_lines_from_serial.wizard - form diff --git a/product_warranty/product_warranty_view.xml b/product_warranty/product_warranty_view.xml index 6dae3cb9..1ab3e23f 100644 --- a/product_warranty/product_warranty_view.xml +++ b/product_warranty/product_warranty_view.xml @@ -26,7 +26,6 @@ product.return.instructions.tree return.instruction - tree @@ -40,7 +39,6 @@ product.return.instructions.form return.instruction - form @@ -53,7 +51,6 @@ Products return instructions - ir.actions.act_window return.instruction form tree,form @@ -61,7 +58,7 @@ @@ -70,7 +67,6 @@ product.supplierinfo.warranty.tree product.supplierinfo - tree @@ -87,7 +83,6 @@ product.supplierinfo.warranty.form product.supplierinfo - form