diff --git a/odex25_base/system_dashboard_classic/models/config.py b/odex25_base/system_dashboard_classic/models/config.py index 96da45d2f..a26f7fa1c 100644 --- a/odex25_base/system_dashboard_classic/models/config.py +++ b/odex25_base/system_dashboard_classic/models/config.py @@ -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()