From 890ec06c474acee2b7f301852de0a611026faf1f Mon Sep 17 00:00:00 2001 From: Aristobulo Meneses Date: Fri, 31 Jul 2015 12:56:42 +0200 Subject: [PATCH] Fix fields declaration --- crm_claim_rma/crm_claim_rma.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crm_claim_rma/crm_claim_rma.py b/crm_claim_rma/crm_claim_rma.py index b74a52d5..2953ade5 100644 --- a/crm_claim_rma/crm_claim_rma.py +++ b/crm_claim_rma/crm_claim_rma.py @@ -49,8 +49,8 @@ class SubstateSubstate(Model): _name = "substate.substate" _description = "substate that precise a given state" - name = Char(string='Sub state', required=True) - substate_descr = Text(string='Description', + name = fields.Char(string='Sub state', required=True) + substate_descr = fields.Text(string='Description', help="To give more information about the sub state") @@ -109,7 +109,7 @@ class ClaimLine(Model): help="More precise description of the problem") product_id = fields.Many2one( 'product.product', string='Product', help="Returned product") - product_returned_quantity = Float( + product_returned_quantity = fields.Float( string='Quantity', digits=(12, 2), help="Quantity of product returned") unit_sale_price = fields.Float( string='Unit sale price', digits=(12, 2), @@ -466,13 +466,13 @@ class CrmClaim(Model): default='customer', help="Customer: from customer to company.\n " "Supplier: from company to supplier.") - claim_line_ids = fields.One2many('claim.line', 'claim_id', + claim_line_ids = fields.One2many('claim.line', 'claim_id', string='Return lines') planned_revenue = fields.Float(string='Expected revenue') planned_cost = fields.Float(string='Expected cost') real_revenue = fields.Float(string='Real revenue') real_cost = fields.Float(string='Real cost') - invoice_ids = fields.One2many('account.invoice', 'claim_id', + invoice_ids = fields.One2many('account.invoice', 'claim_id', string='Refunds') picking_ids = fields.One2many('stock.picking', 'claim_id', string='RMA') invoice_id = fields.Many2one(