mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] Error raise if no number on claim
This commit is contained in:
@@ -344,7 +344,8 @@ class crm_claim(orm.Model):
|
||||
def name_get(self, cr, uid, ids, context=None):
|
||||
res = []
|
||||
for claim in self.browse(cr, uid, ids, context=context):
|
||||
res.append((claim.id, '[' + claim.number + '] ' + claim.name))
|
||||
number = claim.number and str(claim.number) or ''
|
||||
res.append((claim.id, '[' + number + '] ' + claim.name))
|
||||
return res
|
||||
|
||||
def create(self, cr, uid, vals, context=None):
|
||||
|
||||
Reference in New Issue
Block a user