Merge lp:~openerp-dev/openobject-addons/trunk-opw-575489-port-mma into lp:openobject-addons

Proposed by Mayur Maheshwari(OpenERP)
Status: Superseded
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-opw-575489-port-mma
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
account/account_invoice.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-opw-575489-port-mma
Reviewer Review Type Date Requested Status
Mayur Maheshwari(OpenERP) (community) Needs Resubmitting
Fabien (Open ERP) Disapprove
Review via email: mp+135071@code.launchpad.net

This proposal has been superseded by a proposal from 2012-12-18.

Description of the change

Hello,

        Warning message should be displayed in user's language instead of partner's while we validate the invoices.
        code is forward port from 6.1

Thanks,
Mayur

To post a comment you must log in.
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

no need to add this line:
  ctx.update({'lang': self.pool.get('res.users').browse(cr, uid, uid).context_lang})
just removing the other one should be enough.

review: Disapprove
8077. By Mayur Maheshwari(OpenERP)

[IMP]account :warning in invoice should be shown in user language instead of partner

8078. By Mayur Maheshwari(OpenERP)

[MERGE]: Merge with lp:openobject-addons

Revision history for this message
Mayur Maheshwari(OpenERP) (mma-openerp) wrote :

Hello

   I Have improved Code as par specification.

Thanks

review: Needs Resubmitting

Unmerged revisions

8078. By Mayur Maheshwari(OpenERP)

[MERGE]: Merge with lp:openobject-addons

8077. By Mayur Maheshwari(OpenERP)

[IMP]account :warning in invoice should be shown in user language instead of partner

8076. By Rifakat (OpenERP)

[FIX]account: warning in invoice should be shown in user language instead of partner

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_invoice.py'
2--- account/account_invoice.py 2012-11-15 12:38:51 +0000
3+++ account/account_invoice.py 2012-11-20 07:16:21 +0000
4@@ -854,7 +854,7 @@
5 continue
6
7 ctx = context.copy()
8- ctx.update({'lang': inv.partner_id.lang})
9+ ctx.update({'lang': self.pool.get('res.users').browse(cr, uid, uid).context_lang})
10 if not inv.date_invoice:
11 self.write(cr, uid, [inv.id], {'date_invoice': fields.date.context_today(self,cr,uid,context=context)}, context=ctx)
12 company_currency = inv.company_id.currency_id.id

Subscribers

People subscribed via source and target branches

to all changes: