~unifield-team/unifield-addons/trunk

« back to all changes in this revision

Viewing changes to account/report/account_partner_ledger.py

  • Committer: jftempo
  • Date: 2015-06-04 16:43:29 UTC
  • mfrom: (4665.1.1 unifield-addons)
  • Revision ID: jfb@tempo-consulting.fr-20150604164329-30rvjmams7ko6bw8
Tags: uf1.0-5, uf1.0-5b4
US-324 [FIX] Partner Ledger report: use user language instead of partner one
lp:~unifield-team/unifield-addons/us-324-addons

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
        objects = obj_partner.browse(self.cr, self.uid, new_ids)
148
148
        res = super(third_party_ledger, self).set_context(objects, data, new_ids, report_type)
149
149
        common_report_header._set_context(self, data)
 
150
 
 
151
        if data['model'] == 'ir.ui.menu':
 
152
            # US-324: use of user LG instead of each partner in the report
 
153
            lang_dict = self.pool.get('res.users').read(self.cr,self.uid,self.uid,['context_lang'])
 
154
            data['lang'] = lang_dict.get('context_lang') or False
 
155
 
150
156
        return res
151
157
 
152
158
    def comma_me(self, amount):