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.
 
 
 
 
 

85 lines
3.8 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Washing model form view -->
<record id="washing_washing_view_form" model="ir.ui.view">
<field name="name">washing.washing.view.form</field>
<field name="model">washing.washing</field>
<field name="arch" type="xml">
<form string="Washing" create="false">
<header>
<button name="start_wash" class="oe_highlight"
string="Start" type="object"
invisible="state not in 'draft'"/>
<button name="action_set_to_done" class="oe_highlight"
string="Set to Done" type="object"
invisible="state not in 'process'"/>
<field name="state" widget="statusbar"
statusbar_visible="draft,process,done"/>
</header>
<sheet>
<group>
<group>
<field name="name" readonly="1"/>
<field name="user_id"/>
</group>
<group>
<field name="washing_date" readonly="1"/>
</group>
</group>
<notebook>
<page string="Description">
<field name="description"/>
</page>
<page string="Additional Products">
<field name="product_line_ids"
readonly="state != 'draft'">
<list editable="bottom">
<field name="product_id"/>
<field name="name"/>
<field name="quantity"/>
<field name="uom_id"/>
<field name="price_unit"/>
<field name="subtotal"/>
<field name="wash_id" invisible="1"/>
</list>
</field>
<group class="oe_subtotal_footer oe_right"
colspan="2" name="product_total">
<field name="total_amount"
widget='monetary'/>
</group>
<div class="oe_clear"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Washing model list view -->
<record id="washing_washing_view_list" model="ir.ui.view">
<field name="name">washing.washing.view.list</field>
<field name="model">washing.washing</field>
<field name="arch" type="xml">
<list create="false" edit="false"
decoration-info="state == 'draft'">
<field name="name"/>
<field name="user_id"/>
<field name="washing_date"/>
<field name="state"/>
</list>
</field>
</record>
<!-- Action for washing-->
<record id="washing_washing_action" model="ir.actions.act_window">
<field name="name">Washing</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">washing.washing</field>
<field name="view_mode">list,form</field>
<field name="domain">[('user_id','=', uid)]</field>
</record>
<!-- Defined Menu-->
<menuitem id="washing_washing_menu" name="Laundry Works"
parent="laundry_management_sub_menu"
action="washing_washing_action"
sequence="2"/>
</odoo>