123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="view_consume_stock_tree">
- <field name="name">consume.stock.tree</field>
- <field name="model">farm.consume.stock</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree string="Event">
- <field name="state"/>
- <field name="to_location"/>
- <field name="date"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_consume_stock_form">
- <field name="name">consume.stock.form</field>
- <field name="model">farm.consume.stock</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Consume stock">
- <header>
- <field name="state" widget="statusbar"/>
- <button name="confirm" states="draft"
- string="Confirm Consume" id="consume_confirm"
- type="object" />
- </header>
- <sheet>
- <group col="4" colspan="2">
- <field name="type" attrs="{'readonly': [('state', '=', 'confirmed')]}"/>
- <field name="date" attrs="{'readonly': [('state', '=', 'confirmed')]}"/>
- <field name="origin" attrs="{'readonly': [('state', '=', 'confirmed')]}"/>
- <field name="to_location" attrs="{'readonly': [('state', '=', 'confirmed')]}"/>
- <field name="product_id" attrs="{'readonly': [('state', '=', 'confirmed')]}"/>
- <field name="lot_id" attrs="{'readonly': [('state', '=', 'confirmed')]}"/>
- <field name="quantity" attrs="{'readonly': [('state', '=', 'confirmed')]}"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="farm_consume_stock_search_view">
- <field name="name">farm.consume.stock.search</field>
- <field name="model">farm.consume.stock</field>
- <field name="arch" type="xml">
- <search string="Search consume stock">
- <group>
- <field name="product_id" />
- </group>
- <newline />
- <group expand="0" string="Group by...">
- <filter string="Origin"
- domain="[]"
- context="{'group_by': 'origin'}" />
- <filter string="Destinity"
- domain="[]"
- context="{'group_by': 'to_location'}" />
- <filter string="State"
- domain="[]"
- context="{'group_by': 'state'}" />
- </group>
- </search>
- </field>
- </record>
- </data>
- </openerp>
|