Skip to content
Snippets Groups Projects
Commit 668193fd authored by Prakash Prajapati's avatar Prakash Prajapati
Browse files

[IMP] project, hr_timesheet: set optional field to simplify the tree view

Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

task-1997453
Closes: #33888
parent 94c332b4
No related branches found
No related tags found
No related merge requests found
......@@ -148,13 +148,11 @@
<field eval="2" name="priority"/>
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="planned_hours" widget="float_time" sum="Initially Planned Hours" />
<field name="remaining_hours" widget="float_time" sum="Remaining Hours" readonly="1"/>
<field name="planned_hours" widget="float_time" sum="Initially Planned Hours" optional="show"/>
<field name="remaining_hours" widget="float_time" sum="Remaining Hours" readonly="1" optional="show"/>
<field name="progress" widget="progressbar" optional="show"/>
<field name="effective_hours" widget="float_time" sum="Spent Hours" invisible="1"/>
</field>
<field name="stage_id" position="after">
<field name="progress" widget="progressbar"/>
</field>
</field>
</record>
......
......@@ -631,11 +631,13 @@
<field name="message_needaction" invisible="1"/>
<field name="sequence" invisible="not context.get('seq_visible', False)"/>
<field name="name"/>
<field name="project_id" invisible="context.get('user_invisible', False)"/>
<field name="user_id" invisible="context.get('user_invisible', False)"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="date_deadline" invisible="context.get('deadline_visible',True)"/>
<field name="stage_id" invisible="context.get('set_visible',False)"/>
<field name="project_id" invisible="context.get('user_invisible', False)" optional="show"/>
<field name="user_id" invisible="context.get('user_invisible', False)" optional="show"/>
<field name="date_deadline" optional="hide"/>
<field name="partner_id" optional="hide"/>
<field name="tag_ids" optional="hide" widget="many2many_tags"/>
<field name="stage_id" invisible="context.get('set_visible',False)" optional="show"/>
<field name="company_id" groups="base.group_multi_company" optional="show"/>
</tree>
</field>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment