Wrong language in context. product_id_change method of sale.order.line

Bug #760813 reported by Lorenzo Battistini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3
6.0
Fix Released
Low
OpenERP Publisher's Warranty Team

Bug Description

Steps:
1- Create new db, selecting, for instance, Italian language
2- Create new customer with lang = italian
3- Create new user 'test' with lang =English
4- Create a new stockable product with stock = 0
5- Log in to the system with 'test' user
6- Try to sell the stockable product
7- You'll see the warning message in Italian

This is because context contains the partner's language.
See http://bazaar.launchpad.net/~openerp/openobject-addons/6.0/view/4526/sale/sale.py#L1010
at line 1020: lang should contain the user's language

Tags: maintenance

Related branches

Revision history for this message
DBR (OpenERP) (dbr-openerp) wrote :

Thanks for reporting.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello,

I have fixed it in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-760813-pso
Rev-Id: <email address hidden>
Rev-no: 4641

It will merged soon with Addons branch.

Thanks for notifying us.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
Revision history for this message
Lorenzo Battistini (elbati) wrote :

According to this discussion
https://code.launchpad.net/~openerp-commiter/openobject-addons/bug_760813/+merge/59499
the current solution has to be improved

Changed in openobject-addons:
status: Fix Committed → In Progress
tags: added: maintenance
Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello Lorenzo,

  I have found a solution in such a way that the information remain in the partner's language and the warnings will appear in the User's language.

I have improved the fix on your branch kindly have a look at this https://code.launchpad.net/~openerp-commiter/openobject-addons/bug_760813/+merge/59499

Would you please check it and share your valuable inputs?

Thanks.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → In Progress
status: In Progress → Fix Released
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Splitting affect for 6.0 branch, as there is a related support case.

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The corresponding fix has landed in trunk at revision 5028 revid:<email address hidden>
Thanks for reporting.

Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Merged at Revision 5108 in 6.0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.