hide field is_chareable in views
This commit is contained in:
parent
42d42720aa
commit
0fed8cbe0d
@ -461,7 +461,7 @@
|
|||||||
<!-- Field needed to trigger its compute in project_enterprise, but will be replaced in an override defined in hr_timesheet module -->
|
<!-- Field needed to trigger its compute in project_enterprise, but will be replaced in an override defined in hr_timesheet module -->
|
||||||
<field name="allocated_hours" invisible="1"/>
|
<field name="allocated_hours" invisible="1"/>
|
||||||
<!-- Field Chargeable / Non Chargeable -->
|
<!-- Field Chargeable / Non Chargeable -->
|
||||||
<field name="is_chargeable" string="Chargeable"/>
|
<!-- <field name="is_chargeable" string="Chargeable"/> -->
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<field name="task_properties" columns="2"/>
|
<field name="task_properties" columns="2"/>
|
||||||
@ -667,7 +667,7 @@
|
|||||||
<field name="has_late_and_unreached_milestone" />
|
<field name="has_late_and_unreached_milestone" />
|
||||||
<field name="allow_milestones" />
|
<field name="allow_milestones" />
|
||||||
<field name="state" />
|
<field name="state" />
|
||||||
<field name="is_chargeable"/>
|
<!-- <field name="is_chargeable"/> -->
|
||||||
<field name="subtask_count"/>
|
<field name="subtask_count"/>
|
||||||
<progressbar field="state" colors='{"1_done": "success-done", "1_canceled": "danger", "03_approved": "success", "02_changes_requested": "warning", "04_waiting_normal": "info", "01_in_progress": "200" }'/>
|
<progressbar field="state" colors='{"1_done": "success-done", "1_canceled": "danger", "03_approved": "success", "02_changes_requested": "warning", "04_waiting_normal": "info", "01_in_progress": "200" }'/>
|
||||||
<templates>
|
<templates>
|
||||||
@ -688,9 +688,10 @@
|
|||||||
<field t-if="record.allow_milestones.raw_value and record.milestone_id.raw_value" t-att-class="record.has_late_and_unreached_milestone.raw_value and !record.state.raw_value.startsWith('1_') ? 'text-danger' : ''" name="milestone_id" options="{'no_open': True}"/>
|
<field t-if="record.allow_milestones.raw_value and record.milestone_id.raw_value" t-att-class="record.has_late_and_unreached_milestone.raw_value and !record.state.raw_value.startsWith('1_') ? 'text-danger' : ''" name="milestone_id" options="{'no_open': True}"/>
|
||||||
</div>
|
</div>
|
||||||
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
|
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
|
||||||
<div t-if="record.is_chargeable.raw_value"> <!-- show is_chargeable in mode kanban -->
|
<!-- show is_chargeable in mode kanban -->
|
||||||
|
<!-- <div t-if="record.is_chargeable.raw_value">
|
||||||
<span>Chargeable</span>
|
<span>Chargeable</span>
|
||||||
</div>
|
</div> -->
|
||||||
<field t-if="record.date_deadline.raw_value" invisible="state in ['1_done', '1_canceled']" name="date_deadline" widget="remaining_days"/>
|
<field t-if="record.date_deadline.raw_value" invisible="state in ['1_done', '1_canceled']" name="date_deadline" widget="remaining_days"/>
|
||||||
<field name="task_properties" widget="properties"/>
|
<field name="task_properties" widget="properties"/>
|
||||||
<field name="displayed_image_id" widget="attachment_image"/>
|
<field name="displayed_image_id" widget="attachment_image"/>
|
||||||
@ -759,7 +760,8 @@
|
|||||||
<field name="company_id" column_invisible="True"/>
|
<field name="company_id" column_invisible="True"/>
|
||||||
<field name="date_deadline" optional="hide" widget="remaining_days" invisible="state in ['1_done', '1_canceled']"/>
|
<field name="date_deadline" optional="hide" widget="remaining_days" invisible="state in ['1_done', '1_canceled']"/>
|
||||||
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" optional="show" context="{'project_id': project_id}"/>
|
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" optional="show" context="{'project_id': project_id}"/>
|
||||||
<field name="is_chargeable" optional="show"/> <!-- show is_chargeable in mode list -->
|
<!-- show is_chargeable in mode list -->
|
||||||
|
<!-- <field name="is_chargeable" optional="show"/> -->
|
||||||
<field name="date_last_stage_update" optional="hide"/>
|
<field name="date_last_stage_update" optional="hide"/>
|
||||||
<field name="stage_id" column_invisible="context.get('set_visible', False)" optional="show"/>
|
<field name="stage_id" column_invisible="context.get('set_visible', False)" optional="show"/>
|
||||||
</list>
|
</list>
|
||||||
@ -832,7 +834,8 @@
|
|||||||
<field name="partner_id" invisible="not partner_id"/>
|
<field name="partner_id" invisible="not partner_id"/>
|
||||||
<field name="priority" widget="priority"/>
|
<field name="priority" widget="priority"/>
|
||||||
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" invisible="not tag_ids"/>
|
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" invisible="not tag_ids"/>
|
||||||
<field name="is_chargeable" invisible="not is_chargeable"/> <!-- show is_chargeable in mode calendar -->
|
<!-- show is_chargeable in mode calendar -->
|
||||||
|
<!-- <field name="is_chargeable" invisible="not is_chargeable"/> -->
|
||||||
<field name="stage_id" invisible="not project_id or not stage_id" widget="task_stage_with_state_selection"/>
|
<field name="stage_id" invisible="not project_id or not stage_id" widget="task_stage_with_state_selection"/>
|
||||||
<field name="personal_stage_id" string="Personal Stage" options="{'no_open': True}" invisible="project_id or not personal_stage_id"/>
|
<field name="personal_stage_id" string="Personal Stage" options="{'no_open': True}" invisible="project_id or not personal_stage_id"/>
|
||||||
<field name="task_properties" invisible="not task_properties"/>
|
<field name="task_properties" invisible="not task_properties"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user