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.
I'm trying to create a tree view with a button and I'm totally lost. Following some examples I arrived to dessign this view:
<record model="ir.ui.view" id="pricelist_getter_tree">
<field name="arch" type="xml">
<tree string="Price List">
<button string="Transfer" icon="gtk-redo" name="transfer" type="action"/>
<!-- field name="pl_currency"/-->
But I'm getting an error:
Uncaught TypeError: Cannot read property 'tree_invisible' of undefined
Any suggestion or guidelines about how to do it? Google isn't helping me much.
<button string="Transfer" icon="gtk-redo" name="transfer" type="object"/>
A button can be triggered by various methods:
3. Workflow (Default)
When using type="action", the name should have the action id with it. i.e. name="%(module.action_id)d"
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
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/23/14, 3:18 AM|
|Seen: 1662 times|
|Last updated: 3/16/15, 8:10 AM|