mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
Merge pull request #27 from guewen/7.0-claim_id-indexes
Add indexes on claim_id fields
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user