Changing 'key2' attribute of 'act_window' tag adds new ir_value instead of changing it

Bug #1282641 reported by Leonardo Donelli
6
This bug affects 1 person
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_action_multi' to 'client_print_multi'.

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_action_multi, the other client_print_multi. Instead of changing the value it created an identical new one, pointing to the same action!
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

description: updated
description: updated
description: updated
Revision history for this message
Leonardo Donelli (learts92) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.