odoo/addons/web/controllers
Denis Ledoux 1d76586a1b [FIX] web: context lang & active* in action buttons
This reverts rev. 9f9e7ef0e1

As explained in 9f9e7ef0e1,
if a field "lang" is present in the view, clicking in any action item
in the more menu leaded for the action title to be translated
in the lang value of the form, such as in the partner form.

9f9e7ef0e1 fixed the issue,
but has as side-effect to not update correctly the active* keys.
So, if "active_id" was used in the context of the action button,
and the active_id was set in the dataset context, for example
because you come from another form, trough another action button
(For instance, Customers > Opportunities > Logged Calls),
the active_id was not updated with the current id of the record.

opw-620293
opw-617321
fixes #3462
2015-02-09 17:53:11 +01:00
..
__init__.py [ADD] first 90% of non-sucky testing API, last 90% left 2012-10-25 17:47:45 +02:00
main.py [FIX] web: context lang & active* in action buttons 2015-02-09 17:53:11 +01:00
testing.py [FIX] Properly escape values in templates 2013-02-13 11:42:29 +01:00