Merge pull request #4991 from expsa/kchyou_dev_odex25_base
[FIX] system_dashboard_classic: FIX big
This commit is contained in:
commit
2e79dc5811
|
|
@ -135,7 +135,8 @@ class BaseDashboard(models.Model):
|
|||
for stage in stage_ids:
|
||||
# TODO: find a way to fix translation without searching in translation model &
|
||||
#we got translaton issue stage name is translatable ,so we get the stage translation
|
||||
value = self.env['ir.translation'].sudo().search([('source','=',stage.name)],limit=1).value
|
||||
value = stage.with_context(lang=self.env.user.lang).name
|
||||
#value = self.env['ir.translation'].sudo().search([('source','=',stage.name)],limit=1).value
|
||||
stage = self.env['stage.stage'].sudo().create({'model_id':rec.model_id.id , 'form_view_id':rec.form_view_id.id , 'list_view_id':rec.list_view_id.id ,'stage_id':stage.id ,'name':stage.name,'value':value})
|
||||
else:
|
||||
self.update_selection()
|
||||
|
|
|
|||
Loading…
Reference in New Issue