Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
5124 Näkymät

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

Avatar
Hylkää
Paras vastaus

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.

Avatar
Hylkää
Paras vastaus

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.

Avatar
Hylkää
Tekijä

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

Tekijä Paras vastaus

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

Avatar
Hylkää

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

Tekijä

ok thanks for the advice

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
11
marrask. 19
4656
1
maalisk. 15
7762
13
syysk. 24
46484
1
jouluk. 20
6743
0
toukok. 18
2447