← Back to team overview

openerp-india team mailing list archive

[Bug 760813] Re: Wrong language in context. product_id_change method of sale.order.line

 

Merged at Revision 5108 in 6.0

** Changed in: openobject-addons/6.0
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/760813

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

Status in OpenERP Addons (modules):
  Fix Released
Status in OpenERP Addons 6.0 series:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/760813/+subscriptions