[FIX] crm: translation of action's name 'Your pipeline'

... displayed in the breadcrumb. Term wasn't translated due to missing context.

opw-666577
This commit is contained in:
Aaron Bohy
2016-01-26 11:13:48 +01:00
committed by Nicolas Martinelli
parent abc5f3a51e
commit 1c4d888e80
+1 -1
View File
@@ -122,7 +122,7 @@ class crm_team(osv.Model):
def action_your_pipeline(self, cr, uid, context=None):
IrModelData = self.pool['ir.model.data']
action = IrModelData.xmlid_to_object(cr, uid, 'crm.crm_lead_opportunities_tree_view').read(['name', 'help', 'res_model', 'target', 'domain', 'context', 'type', 'search_view_id'])
action = IrModelData.xmlid_to_object(cr, uid, 'crm.crm_lead_opportunities_tree_view', context=context).read(['name', 'help', 'res_model', 'target', 'domain', 'context', 'type', 'search_view_id'])
if not action:
action = {}
else: