[ADD] maintenance_create_requests_from_project_task: create add-on
This commit is contained in:
committed by
Stéphan Sainléger
parent
ff75a1b4cd
commit
1e7671c119
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<record id="view_task_form2_maintenance_inherited" model="ir.ui.view">
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="project.view_task_form2" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='company_id']" position="after">
|
||||
<field name="maintenance_request_count" invisible="1"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button name="action_view_maintenance_request_ids" type="object" attrs="{'invisible': [('maintenance_request_count', '=', 0)]}" class="oe_stat_button" icon="fa-tasks" >
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value ">
|
||||
<field name="maintenance_request_count" widget="statinfo" nolabel="1" />
|
||||
Maintenance Requests
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
Reference in New Issue
Block a user