Wrong lang in context when tracking changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
When a record is updated, then the tracking features
1. collects the old values
2. performs the write
3. collects the new values
4. Writes the changes to history
This is done in write() of mail_thread.py.
If the 'lang' is not provided then in point 1 the 'lang' of the user is used to translated the changes (e.g. selection field).
But in point 3 the context without the 'lang' is used and therefore OpenERP always uses English.
Solution:
Also use "track_ctx" after the write:
----------------
if not context.
# Perform the tracking
-----------------