You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
2.0 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--Inherited Form view project_task_form-->
<record id="project_task_view_form" model="ir.ui.view">
<field name="name">project.task.form.inherit.task_overdue_email_odoo</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='user_ids']" position="after">
<field name="completed_task" invisible="1"/>
</xpath>
<xpath expr="//header" position="inside">
<button name="action_task_completed" string="Task Completed"
type="object" class="oe_highlight"
attrs="{'invisible': [('completed_task','!=',False)]}"/>
</xpath>
<xpath expr="//div[hasclass('oe_button_box')]" position="before">
<widget name="web_ribbon" title="Completed" bg_color="bg-success"
attrs="{'invisible': [('completed_task', '=', False)]}"/>
</xpath>
</field>
</record>
<!--Inherited the search filter to add 2 more fields in the tree search form-->
<record id="project_task_view_search" model="ir.ui.view">
<field name="name">project.task.search.inherit.task_overdue_email_odoo</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_search_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='rating_last_text']" position="after">
<field name="completed_task"/>
</xpath>
<xpath expr="//filter[@name='unassigned']" position="after">
<filter string="Completed" name="completed_task"
domain="[('completed_task','=',True)]"/>
<filter string="Not Completed" name="not_completed_task"
domain="[('completed_task','!=',True)]"/>
</xpath>
</field>
</record>
</odoo>