Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/3/14, 3:17 PM|
|Seen: 5544 times|
|Last updated: 3/16/15, 8:10 AM|