Changing 'key2' attribute of 'act_window' tag adds new ir_value instead of changing it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Context: I had an action that opened the view of a wizard appearing under the 'more' button when viewing an invoice. I wanted to make it appear under the 'print' button, so I went where the action was defined in the xml file and edited the act_window tag, particularly I changed the 'key2' attribute from 'client_
Problem: After updating the module I found the action under the 'Print' button, as I desired, but it still was under the 'More' button also.
Cause and workaround: After a little debugging I've found out that is because there were 2 records in the table ir_values, identical except for the key2 value: one was client_
I then deleted manually from psql the record with key2 = action_client_multi and the action correctly disappeared from the 'more' button.
This may be related to the discussion here: lp:580218
This is also the case for src_model.
If, for example, I change it from 'product.product' to 'res.partner', the action will appear under both the products and partners 'more' menu.