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.
 
 
 
 
 

70 lines
3.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Service execution tree view-->
<record id="service_execution_view_list" model="ir.ui.view">
<field name="name">service.execution.view.list</field>
<field name="model">service.execution</field>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<list string="Service Execute">
<field name="client_id"/>
<field name="executer_product"/>
<field name="type_service"/>
<field name="executer_id"/>
<field name="issue"/>
<field name="execute_date"/>
<field name="state_execute"/>
</list>
</field>
</record>
<!-- Service execution form view-->
<record id="service_execution_view_form" model="ir.ui.view">
<field name="name">service.execution.view.form</field>
<field name="model">service.execution</field>
<field name="arch" type="xml">
<form string="Service Execute">
<header>
<button name="action_service_check" type="object"
string="Checked" class="oe_highlight"
groups="ent_ohrms_service_request.service_group_executer"
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="executer_id"/>
<field name="issue"/>
<field name="executer_product"/>
</group>
<notebook>
<page string="Internal Notes">
<field name="notes"/>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<!-- Service execution action-->
<record id="service_execution_action" model="ir.actions.act_window">
<field name="name">Service Check</field>
<field name="res_model">service.execution</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="service_execution_menu" name="Service Execution"
parent="service_root"
action="service_execution_action"
sequence="3"
groups="ent_ohrms_service_request.service_group_executer"/>
</odoo>