Add initial Odoo FSM modules and deployment make targets
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<record id="view_repair_work_order_tree" model="ir.ui.view">
|
||||
<field name="name">repair.work.order.tree</field>
|
||||
<field name="model">repair.work.order</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<field name="customer_id"/>
|
||||
<field name="zone_id"/>
|
||||
<field name="scheduled_datetime"/>
|
||||
<field name="technician_id"/>
|
||||
<field name="state"/>
|
||||
<field name="total_time_hours"/>
|
||||
<field name="total_material_cost"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_repair_work_order_form" model="ir.ui.view">
|
||||
<field name="name">repair.work.order.form</field>
|
||||
<field name="model">repair.work.order</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<button name="action_confirm" type="object" string="Confirm" invisible="state != 'draft'" class="btn-primary"/>
|
||||
<button name="action_assign_to_me" type="object" string="Assign to me" invisible="state not in ('confirmed','assigned')" class="btn-primary"/>
|
||||
<button name="action_start" type="object" string="Start" invisible="state != 'assigned'"/>
|
||||
<button name="action_done" type="object" string="Done" invisible="state not in ('in_progress','assigned')" class="btn-primary"/>
|
||||
<button name="action_cancel" type="object" string="Cancel" invisible="state in ('done','cancelled')"/>
|
||||
<button name="action_reset_draft" type="object" string="Reset to Draft" invisible="state == 'draft'"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,confirmed,assigned,in_progress,done,cancelled"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="name" readonly="1"/>
|
||||
<field name="customer_id"/>
|
||||
<field name="customer_contact_id"/>
|
||||
<field name="address_id"/>
|
||||
<field name="zone_id"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="requested_datetime"/>
|
||||
<field name="scheduled_datetime"/>
|
||||
<field name="technician_id"/>
|
||||
<field name="assigned_user_id" readonly="1"/>
|
||||
<field name="description"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<notebook>
|
||||
<page string="Time Logs">
|
||||
<field name="time_line_ids" context="{'default_work_order_id': id, 'default_technician_id': technician_id}">
|
||||
<list editable="bottom">
|
||||
<field name="description"/>
|
||||
<field name="technician_id"/>
|
||||
<field name="hours"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Material Logs">
|
||||
<field name="material_line_ids" context="{'default_work_order_id': id}">
|
||||
<list editable="bottom">
|
||||
<field name="material_id"/>
|
||||
<field name="qty"/>
|
||||
<field name="unit_cost" readonly="1"/>
|
||||
<field name="subtotal" readonly="1"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Totals">
|
||||
<group>
|
||||
<field name="total_time_hours" readonly="1"/>
|
||||
<field name="total_material_cost" readonly="1"/>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_repair_work_order" model="ir.actions.act_window">
|
||||
<field name="name">Work Orders</field>
|
||||
<field name="res_model">repair.work.order</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_repair_work_orders" name="Work Orders" parent="dsrpt_repair_main.menu_repair_root" action="action_repair_work_order" sequence="10"/>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user