Merge lp:~openerp-dev/openobject-addons/6.1-opw-576026-han into lp:openobject-addons/6.1

Proposed by Hardik Ansodariya (OpenERP)
Status: Approved
Approved by: Priyesh (OpenERP)
Approved revision: 6808
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-576026-han
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
product/pricelist.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-576026-han
Reviewer Review Type Date Requested Status
Priyesh (OpenERP) (community) Approve
Naresh(OpenERP) Pending
Review via email: mp+111361@code.launchpad.net

Description of the change

Hello,

Hello,

I have update context in price_get_multi method of pricelist.py as it raised warning was not able to translate.

Referencing Maintenance case: 576026

Thanks

To post a comment you must log in.
Revision history for this message
Priyesh (OpenERP) (pso-openerp) :
review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576026-port-mma/+merge/133030 and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6808. By Hardik Ansodariya (OpenERP)

[FIX] pricelist: Update context as it was none in method and was not able to translate raised exception (Maintanence Case: 576026)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'product/pricelist.py'
2--- product/pricelist.py 2012-01-31 13:36:57 +0000
3+++ product/pricelist.py 2012-06-21 09:19:33 +0000
4@@ -148,7 +148,7 @@
5
6 if context is None:
7 context = {}
8-
9+ context.update({'lang': self.pool.get('res.users').context_get(cr, uid, context)['lang']})
10 date = time.strftime('%Y-%m-%d')
11 if 'date' in context:
12 date = context['date']