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.
 
 
 
 
 

66 lines
2.8 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Action specified for the Service Worksheet-->
<record id="service_worksheet_action" model="ir.actions.act_window">
<field name="name">Service Worksheet</field>
<field name="res_model">service.worksheet</field>
<field name="view_mode">tree,form</field>
</record>
<!--Tree view of the Service Worksheet-->
<record id="service_worksheet_view_tree" model="ir.ui.view">
<field name="name">service.worksheet.view.tree</field>
<field name="model">service.worksheet</field>
<field name="arch" type="xml">
<tree string="service.worksheet">
<field name="model_id"/>
<field name="service_type_id"/>
<field name="user_id"/>
<field name="state"/>
</tree>
</field>
</record>
<!--Form view of the Service Worksheet-->
<record id="service_worksheet_view_form" model="ir.ui.view">
<field name="name">service.worksheet.view.form</field>
<field name="model">service.worksheet</field>
<field name="arch" type="xml">
<form string="service_worksheet">
<header>
<button name="action_done" string='Done' class="btn-primary"
invisible="state != 'draft'"
type="object"/>
<field name="state" widget="statusbar" string="Status"
options="{'clickable': '1'}"/>
</header>
<sheet>
<div class="oe_title">
<h1>
<field name="model_id"/>
</h1>
</div>
<group>
<group>
<field name="service_type_id"/>
<field name="user_id"/>
<field name="company_id" invisible="1"/>
<field name="service_booking_id" invisible="1"/>
</group>
<group>
<field name="tag_ids" widget="many2many_tags"
options="{'color_field': 'color'}"/>
</group>
</group>
<notebook>
<page name="description_page" string="Description">
<field name="description" type="html"/>
<div class="oe_clear"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<menuitem id="service_worksheet_menu" action="service_worksheet_action"
parent="service_menu" sequence='2'/>
</odoo>