in projects kanban view we are shown project's end date,
now i want to see the end date in the list view, is this possible???? and how...?
and is it possible to remove/add any columns in the list view????
Yes, It is possible to add/remove any field(column) from the view. For that you just need to inherit the view.
Here is the example to add a field in view:
<record id="view_project_inherit" model="ir.ui.view"> <field name="name">project.project.inherit</field> <field name="model">project.project</field> <field name="inherit_id" ref="project.view_project"/> <field name="arch" type="xml"> <xpath expr="//field[@name='total_hours']" position="before"> <field name="date"/> </xpath> </field> </record>
After adding this code in your .xml, update your module.
Here, You can write positions like,
- inside: placed inside match (default)
- before: placed before match
- attributes: used with <attribute> tags to add new
- replace: replace match
- after: placed after match
Hope this will help 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: 10/28/13, 3:59 AM|
|Seen: 1624 times|
|Last updated: 3/16/15, 8:10 AM|