[I18N] odex_takaful: automatic update
Auto-generated commit based on local changes.
This commit is contained in:
parent
5d6032851c
commit
97a2d13c49
File diff suppressed because it is too large
Load Diff
|
|
@ -362,7 +362,7 @@ class ResPartner(models.Model):
|
||||||
# (related='partner_id.branch_custom_id') with store=False.
|
# (related='partner_id.branch_custom_id') with store=False.
|
||||||
# It will be automatically computed from the partner_id.
|
# It will be automatically computed from the partner_id.
|
||||||
# DO NOT pass it directly to create() - this causes unnecessary overhead.
|
# DO NOT pass it directly to create() - this causes unnecessary overhead.
|
||||||
kafeel = self.env['res.users'].with_user(2).create({
|
kafeel = self.env['res.users'].sudo().create({
|
||||||
'name': res.name,
|
'name': res.name,
|
||||||
'sel_groups_1_9_10': 9,
|
'sel_groups_1_9_10': 9,
|
||||||
'partner_id': res.id,
|
'partner_id': res.id,
|
||||||
|
|
@ -390,7 +390,7 @@ class ResPartner(models.Model):
|
||||||
# IMPORTANT: branch_custom_id is a RELATED field on res.users
|
# IMPORTANT: branch_custom_id is a RELATED field on res.users
|
||||||
# (related='partner_id.branch_custom_id') with store=False.
|
# (related='partner_id.branch_custom_id') with store=False.
|
||||||
# It will be automatically computed from the partner_id.
|
# It will be automatically computed from the partner_id.
|
||||||
kafeel = self.env['res.users'].with_user(2).create({
|
kafeel = self.env['res.users'].sudo().create({
|
||||||
'name': self.name,
|
'name': self.name,
|
||||||
'sel_groups_1_9_10': 9,
|
'sel_groups_1_9_10': 9,
|
||||||
'partner_id': self.id,
|
'partner_id': self.id,
|
||||||
|
|
@ -448,7 +448,7 @@ class ResPartner(models.Model):
|
||||||
created_count = 0
|
created_count = 0
|
||||||
for sponsor in sponsors_without_users:
|
for sponsor in sponsors_without_users:
|
||||||
try:
|
try:
|
||||||
kafeel = self.env['res.users'].with_user(2).create({
|
kafeel = self.env['res.users'].sudo().create({
|
||||||
'name': sponsor.name,
|
'name': sponsor.name,
|
||||||
'sel_groups_1_9_10': 9,
|
'sel_groups_1_9_10': 9,
|
||||||
'partner_id': sponsor.id,
|
'partner_id': sponsor.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue