diff options
| author | Denis Ledoux <dle@openerp.com> | 2014-05-26 17:05:02 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@openerp.com> | 2014-05-26 17:05:02 +0200 |
| commit | a37bad205b13cec4f19f8e84e28801278e3e36ca (patch) | |
| tree | afb89cd12855017bc54962068ca5aa7342b8db49 /addons/website_mail | |
| parent | e137a7713ba6bb3954ef8bf9b93b583db92cea49 (diff) | |
[FIX] web: on launching ir_actions_act_window, reset the active_* params if the target is current
This commit is related to 8d496399336b4a97200f6f7b5907ed1c7b99970c and b88755c4317ac61fc8d0533162d4ed19082f3fab
When hitting buttons of type object, the active_model and active_id(s) were kept, and, therefore, when calling a feature using the active* args, this feature used the active* args from the previous action.
Nevertheless, concerning wizards, the active* args should be indeed the active* args of the previous action, as wizards expects to have the active* args from the previous action. Thus, we reset these active* args only when this is not a wizard (target === 'current')
For example, from a sales order, hit the 'view invoice' button, and on the invoice, hit the 'send by email' button: The active_id in the send by email wizard were the id of the sale order, not of the invoice
Diffstat (limited to 'addons/website_mail')
0 files changed, 0 insertions, 0 deletions
