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.
 
 
 
 
 

68 lines
2.9 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Service Execute Tree View-->
<record id="service_execute_view_tree" model="ir.ui.view">
<field name="name">service.execute.view.list</field>
<field name="model">service.execute</field>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<list string="Service Execute">
<field name="client_id"/>
<field name="executor_product"/>
<field name="executor_id"/>
<field name="issue"/>
<field name="execute_date"/>
<field name="state_execute"/>
</list>
</field>
</record>
<!-- Service Execute Form View-->
<record id="service_execute_view_form" model="ir.ui.view">
<field name="name">service.execute.view.form</field>
<field name="model">service.execute</field>
<field name="arch" type="xml">
<form string="Service Execute">
<header>
<button name="action_service_check" type="object"
string="Checked" class="oe_highlight"
groups="ohrms_service_request.service_group_executor"
invisible="state_execute in ['check','approved']"/>
<field name="state_execute" widget="statusbar"
statusbar_visible="draft,requested,approved"/>
</header>
<sheet>
<group col="4" colspan="4" string="Service Execution">
<field name="client_id"/>
<field name="execute_date"/>
<field name="type_service"/>
<field name="executor_id"/>
<field name="issue"/>
<field name="executor_product"/>
</group>
<notebook>
<page string="Internal Notes">
<field name="notes"/>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<!-- Service Execute Action-->
<record model="ir.actions.act_window" id="service_execute_action">
<field name="name">Service Check</field>
<field name="res_model">service.execute</field>
<field name="view_mode">list,form</field>
<field name="domain">[]</field>
<field name="help" type="html">
<p class="oe_view_no_content_create">Create new record
</p>
</field>
</record>
<!-- Service Execution Menu-->
<menuitem id="execute_service" name="Service Execution"
parent="service_root"
action="service_execute_action"
groups="ohrms_service_request.service_group_executor"/>
</odoo>