+1

-- 
Error in getting lang of description_sale of the product 
https://bugs.launchpad.net/bugs/514251
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Confirmed

Bug description:
When the lang of the Partner is default (None), the sale.order.line 
product_id_change brings the english translation of the text, not the text of 
the default lang of the system (or the user one).

       In the 926 of sale.py (product_id_change) if the partner lang is False 
(leave as blank lang defined) the lang var is getting False 

 if partner_id:
            lang = partner_obj.browse(cr, uid, partner_id).lang

Then when the lang is false the default behaviour of the system is using en_EN 
(i don't know the internals of translation module)

For solving the 926 line of sale.py can be changed:
       if partner_id and partner_obj.browse(cr, uid, partner_id).lang:
            lang = partner_obj.browse(cr, uid, partner_id).lang

So only does the work if the partner has lang defined, otherwise lang is 
untouched (this works for me)



_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to