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.
 
 
 
 
 

90 lines
4.2 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record model="ir.ui.view" id="fo_property_counter_form_view">
<field name="name">Property Counter</field>
<field name="model">fo.property.counter</field>
<field name="arch" type="xml">
<form string="Visits">
<header>
<button name="action_prop_in"
string="Take In"
type="object"
states="draft"
class="oe_highlight"
/>
<button name="action_prop_out"
string="Take Out"
type="object"
states="prop_in"
class="oe_highlight"
/>
<button name="action_cancel"
string="Cancel"
type="object"
states="draft"
attrs = "{'invisible': [('state', 'in', ('prop_in','prop_out'))]}"/>
<field name="state"
widget="statusbar"
statusbar_visible="draft,prop_in,prop_out,cancel"
/>
</header>
<sheet>
<group>
<group>
<field name="employee"/>
<field name="date"/>
</group>
<group>
</group>
</group>
<notebook>
<page string="Personal belongings">
<field name="visitor_belongings" widget="one2many_list" nolabel="1">
<tree decoration-success="permission == '0' or permission == '2'" decoration-danger="permission == '1'" string="Items" editable="bottom">
<field name="number"/>
<field name="property_name"/>
<field name="property_count"/>
<field name="permission"/>
</tree>
</field>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
<record model="ir.ui.view" id="fo_property_counter_tree_view">
<field name="name">Property Counter</field>
<field name="model">fo.property.counter</field>
<field name="arch" type="xml">
<tree string="Visits" decoration-success="state == 'prop_in'" decoration-muted="state == 'prop_out'">
<field name="employee"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="fo_property_counter_action">
<field name="name">Property Counter</field>
<field name="res_model">fo.property.counter</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Record Personal Belongings.
</p>
</field>
</record>
<menuitem id="fo_property_counter_menu" name="Property Counter" parent="front_office_mgmnt_main"
sequence="4"/>
<menuitem id="fo_property_counter_menu_child" name="Property Counter" parent="fo_property_counter_menu" action="fo_property_counter_action"
groups="base.group_user" sequence="2"/>
</data>
</odoo>