diff --git a/crm_claim_rma/account_invoice.py b/crm_claim_rma/account_invoice.py index aab0b57c..fbec084a 100644 --- a/crm_claim_rma/account_invoice.py +++ b/crm_claim_rma/account_invoice.py @@ -29,7 +29,7 @@ class account_invoice(orm.Model): _inherit = "account.invoice" _columns = { - 'claim_id': fields.many2one('crm.claim', 'Claim'), + 'claim_id': fields.many2one('crm.claim', 'Claim', select=True), } def _refund_cleanup_lines(self, cr, uid, lines, context=None): diff --git a/crm_claim_rma/crm_claim_rma.py b/crm_claim_rma/crm_claim_rma.py index 5f9fe4f4..5635b8e0 100644 --- a/crm_claim_rma/crm_claim_rma.py +++ b/crm_claim_rma/crm_claim_rma.py @@ -159,7 +159,7 @@ class claim_line(orm.Model): string='Warranty Address', help="Where the customer has to send back the product(s)"), 'claim_id': fields.many2one( - 'crm.claim', string='Related claim', + 'crm.claim', string='Related claim', select=True, help="To link to the case.claim object"), 'state': fields.selection( [('draft', 'Draft'), diff --git a/crm_claim_rma/stock.py b/crm_claim_rma/stock.py index ca8ab35e..a3d545a3 100644 --- a/crm_claim_rma/stock.py +++ b/crm_claim_rma/stock.py @@ -28,7 +28,7 @@ class stock_picking(orm.Model): _inherit = "stock.picking" _columns = { - 'claim_id': fields.many2one('crm.claim', 'Claim'), + 'claim_id': fields.many2one('crm.claim', 'Claim', select=True), } def create(self, cr, uid, vals, context=None): @@ -50,7 +50,7 @@ class stock_picking_out(orm.Model): _inherit = "stock.picking.out" _columns = { - 'claim_id': fields.many2one('crm.claim', 'Claim'), + 'claim_id': fields.many2one('crm.claim', 'Claim', select=True), } @@ -59,7 +59,7 @@ class stock_picking_in(orm.Model): _inherit = "stock.picking.in" _columns = { - 'claim_id': fields.many2one('crm.claim', 'Claim'), + 'claim_id': fields.many2one('crm.claim', 'Claim', select=True), }