Merge branch 'pawan_branch' into 'development'

add sub-project column in list view

See merge request prakash.jain/cor-odoo!112
This commit is contained in:
pawan.sharma 2021-02-15 21:59:00 -08:00
commit 638c1f1c23
1 changed files with 15 additions and 2 deletions

View File

@ -170,6 +170,18 @@
</record>
<record id="inherit_view_project_tree" model="ir.ui.view">
<field name="name">project.project.tree.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='partner_id']" position="after">
<field name="sub_project" widget="many2many_tags"/>
</xpath>
</field>
</record>
<record id="project.open_view_project_all" model="ir.actions.act_window">
<field name="name">Projects</field>
<field name="res_model">project.project</field>
@ -211,7 +223,8 @@
<xpath expr="//field[@name='date_deadline']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<field name="date_deadline" optional="hide" widget="remaining_days" attrs="{'invisible': [('is_closed', '=', True)]}"/>
<field name="date_deadline" optional="hide" widget="remaining_days"
attrs="{'invisible': [('is_closed', '=', True)]}"/>
<xpath expr="//field[@name='name']" position="before">
<field name="date_deadline"/>
</xpath>
@ -226,7 +239,7 @@
<field name="state">code</field>
<field name="code">
if records:
action = records.action_done_task()
action = records.action_done_task()
</field>
</record>