Hi everyone, i can't seem to figure out, where and how to put the code for adding a an item in the more list, to make batch action for more than one sale. I would really appreciate if you shed some light, is there a tag i can use to add it in the header?
What appears under the "more" drop-down button/menu (and, also, the "print" one) is determined by the model/table ir_values
To make an action appear under the 'more' menu, for example, you should define an ir_values record with
- key="action" (this is for separate the "record type" from ir_values with key="default" which are a completely different thing)
- value="ir.actions.act_window,46" (replace 46 with your action id)
- model="your model".
- Other easy or non required parameters
The xml tag `<act_window>`, which I suggest to use instead of `<record model="ir.actions.act_window">` has an optional key2 parameter that takes care of automatically creating the correct `ir_values` record for you.
The same thing happens for the "print" button, where key2 is now `client_print_multi` and the <report> xml tag (to be used in place of <record model="ir.actions.report">) also creates that for you.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 9/3/14, 3:17 PM|
|Seen: 2736 times|
|Last updated: 3/16/15, 8:10 AM|