Odoo Help

Welcome!

This community 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.

0

end date column in projects during listview

By
brijesh savaliya
on 10/28/13, 3:59 AM 1,624 views

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????

1

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 10/28/13, 8:16 AM

Hello Brijesh,

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.

Thank you.

thanks for the answer but as i am a newbie i dont know where to find this file and how to do it, it would be helpful if you can tell me a step by step procedure

brijesh savaliya
on 10/29/13, 3:10 AM
1

Acespritech

--Acespritech--
839
| 3 2 6
India
--Acespritech--

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.


Skype : acespritech

Email : info@acespritech.com

Acespritech
On 10/28/13, 7:24 AM

Hi Brijesh,

You can inherit the project tree view in your custom module and need to add end_date in that. It is possible to remove fields from view by position="replace" keyword in xml.

0
brijesh savaliya
On 10/31/13, 6:40 AM

activate developer mode go to projects->listview from dropdow select manage views now select tree view and select edit there is a field name date select its properties and just remove the invisible tick

its that simple

i hope this is simple

Well of course it will solve your issue but it is not the best way.It will work only for that database.

Acespritech
on 11/1/13, 7:45 AM

ok thanks for the advice

brijesh savaliya
on 11/13/13, 6:27 AM

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/28/13, 3:59 AM
Seen: 1624 times
Last updated: 3/16/15, 8:10 AM