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 am new at openerp and i wanna ask that how can i add new button above tree view(not in tree row)? my code for tree view:
<record model="ir.ui.view" id="orders_tree_view"> <field name="name">Orders Tree View</field> <field name="model">cm.orders</field> <field name="arch" type="xml"> <tree string="Orders Tree"> <field name="no"/> <field name="status"/> <field name="Address"/> <field name="Date and Time"/> <field name="courier"/> <field type="Customer"/> </tree> </field> </record>
This is working in ODOO 9
<T t-extend = "ListView.buttons">
<T t-jquery = "button.oe_list_add" t-operation = "after">
<T t if = "widget.model == 'your.model'">
<Button class = "oe_button oe_list_add_planing_daily oe_highlight"
type = "button"> Create Planing Daily </ button>
<Button class = "oe_button oe_list_view_current_session oe_highlight"
type = "button"> Current Session </ button>
i got it from https://www.odoo.com/forum/help-1/question/how-can-create-a-new-button-in-the-header-of-the-tree-view-after-the-create-button-or-import-104997
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/24/13, 8:55 AM|
|Seen: 990 times|
|Last updated: 7/21/16, 11:27 PM|