Commit 7efbf85d by Etienne Freiss

modif typo

parent a7f142e4
Pipeline #1898 passed with stage
in 1 minute 27 seconds
...@@ -1207,7 +1207,7 @@ class CagetteServices(models.Model): ...@@ -1207,7 +1207,7 @@ class CagetteServices(models.Model):
for m in s['members']: for m in s['members']:
mids.append(m['partner_id'][0]) mids.append(m['partner_id'][0])
cond = [['parent_id', 'in', mids]] cond = [['parent_id', 'in', mids]]
fields = ['id', 'parent_id', 'name'] fields = ['id', 'parent_id', 'name','barcode_base']
associated = api.search_read('res.partner', cond, fields) associated = api.search_read('res.partner', cond, fields)
if len(associated) > 0: if len(associated) > 0:
...@@ -1216,7 +1216,7 @@ class CagetteServices(models.Model): ...@@ -1216,7 +1216,7 @@ class CagetteServices(models.Model):
if int(a['parent_id'][0]) == int(m['partner_id'][0]): if int(a['parent_id'][0]) == int(m['partner_id'][0]):
m['partner_name'] = m['partner_id'][1] m['partner_name'] = m['partner_id'][1]
m['partner_id'][1] += ' en binôme avec ' + a['name'] m['partner_id'][1] += ' en binôme avec ' + a['name']
m['associate_name'] = str(a['id']) + ' - ' + a['name'] m['associate_name'] = str(a['barcode_base']) + ' - ' + a['name']
return services return services
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment