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

Proposed by Mayur Maheshwari(OpenERP)
Status: Rejected
Rejected by: Fabien (Open ERP)
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-opw-576026-port-mma
Merge into: lp:openobject-addons
Diff against target: 11 lines (+1/-0)
1 file modified
product/pricelist.py (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-opw-576026-port-mma
Reviewer Review Type Date Requested Status
Fabien (Open ERP) Disapprove
Review via email: mp+133030@code.launchpad.net

Description of the change

Hello,

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

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 :

not a good fix. If it's not translated, it's because the context is not passed to in the method that called this function, not because you have to add it.

review: Disapprove

Unmerged revisions

7905. By Mayur Maheshwari(OpenERP)

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

7904. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

7903. By Stephane Wirtel (OpenERP)

[MERGE] point_of_sale: Fix some bugs

7902. By Vo Minh Thu

[FIX] base_gengo: fixed RST warnings in module description.

7901. By Quentin (OpenERP) <email address hidden>

[MERGE] merged the branch that adds yaml test on account voucher

7900. By Cedric Snauwaert (OpenERP)

[FIX]module mrp_repair: remove duplicate cancel button uppon creation of a repair order

7899. By Vo Minh Thu

[FIX] sale, hr: fixed RST warnings in module descriptions.

7898. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

7897. By Olivier Dony (Odoo)

[FIX] account: currency_id must be passed to the chart installation wizard

Otherwise the installation of a chart of account
via the settings page fails miserably.

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-10-23 13:02:42 +0000
3+++ product/pricelist.py 2012-11-06 09:53:30 +0000
4@@ -148,6 +148,7 @@
5
6 if context is None:
7 context = {}
8+ context.update({'lang': self.pool.get('res.users').context_get(cr, uid, context)['lang']})
9
10 date = time.strftime('%Y-%m-%d')
11 if 'date' in context:

Subscribers

People subscribed via source and target branches

to all changes: