Files
tryton/move.xml
T
2008-05-08 14:16:53 +02:00

156 lines
7.4 KiB
XML

<?xml version="1.0"?>
<tryton>
<data>
<record model="ir.ui.view" id="move_view_form">
<field name="model">stock.move</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Move" col="6">
<label name="product"/>
<field name="product"/>
<label name="quantity"/>
<field name="quantity"/>
<label name="uom"/>
<field name="uom"/>
<label name="from_location"/>
<field name="from_location"/>
<label name="to_location"/>
<field name="to_location"/>
<newline/>
<label name="planned_date"/>
<field name="planned_date"/>
<label name="effective_date"/>
<field name="effective_date"/>
<separator colspan="6"/>
<group col="4" colspan="6">
<label name="state"/>
<field name="state"/>
<group col="4" colspan="2">
<button string="Set Waiting"
name="set_state_waiting"
type="object"
states="{'invisible': '''state in
('done','cancel','waiting',) '''}"/>
<button string="Set Done"
name="set_state_done"
type="object"
states="{'invisible': '''state in
('cancel','done',) '''}"/>
<button string="Set Draft"
name="set_state_draft"
type="object"
states="{'invisible': '''state in
('waiting','done', 'draft') '''}"/>
<button string="Cancel"
name="set_state_cancel"
type="object"
states="{'invisible': '''state in
('draft', 'cancel') '''}"/>
</group>
</group>
</form>
]]>
</field>
</record>
<record model="ir.ui.view" id="move_view_tree">
<field name="model">stock.move</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Moves">
<field name="product" select="1"/>
<field name="from_location" select="1"/>
<field name="to_location" select="1"/>
<field name="quantity" select="2"/>
<field name="uom" select="2"/>
<field name="state" select="2"/>
</tree>
]]>
</field>
</record>
<record model="ir.action.act_window" id="act_move_form">
<field name="name">Moves</field>
<field name="res_model">stock.move</field>
<field name="view_type">form</field>
</record>
<record model="ir.action.act_window.view" id="act_move_form_view1">
<field name="sequence" eval="1"/>
<field name="view" ref="move_view_tree"/>
<field name="act_window" ref="act_move_form"/>
</record>
<record model="ir.action.act_window.view" id="act_move_form_view2">
<field name="sequence" eval="2"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_form"/>
</record>
<menuitem parent="menu_stock" sequence="2"
action="act_move_form" id="menu_move_form"/>
<record model="ir.action.act_window" id="act_move_form_supp">
<field name="name">Moves from suppliers</field>
<field name="res_model">stock.move</field>
<field name="view_type">form</field>
<field name="domain">[('from_location.type', '=', 'supplier')]</field>
</record>
<record model="ir.action.act_window.view" id="act_move_form_supp_view1">
<field name="sequence" eval="1"/>
<field name="view" ref="move_view_tree"/>
<field name="act_window" ref="act_move_form_supp"/>
</record>
<record model="ir.action.act_window.view"
id="act_move_form_supp_view2">
<field name="sequence" eval="2"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_form_supp"/>
</record>
<menuitem parent="menu_move_form" sequence="1"
action="act_move_form_supp" id="menu_move_form_supp"/>
<record model="ir.action.act_window" id="act_move_form_supp_proceed">
<field name="name">Moves from Suppliers Waiting Arrival</field>
<field name="res_model">stock.move</field>
<field name="view_type">form</field>
<field name="domain">[('from_location.type', '=', 'supplier'), ('state','in',['draft','waiting']), ('packing_in','=',False)]</field>
</record>
<record model="ir.action.act_window.view"
id="act_move_form_supp_proceed_view1">
<field name="sequence" eval="1"/>
<field name="view" ref="move_view_tree"/>
<field name="act_window" ref="act_move_form_supp_proceed"/>
</record>
<record model="ir.action.act_window.view"
id="act_move_form_supp_proceed_view2">
<field name="sequence" eval="2"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_form_supp_proceed"/>
</record>
<menuitem parent="menu_packing_in_form" sequence="2"
action="act_move_form_supp_proceed"
id="menu_move_form_supp_proceed"/>
<record model="ir.action.act_window" id="act_move_form_cust">
<field name="name">Moves to customers</field>
<field name="res_model">stock.move</field>
<field name="view_type">form</field>
<field name="domain">
[('to_location.type', '=', 'customer')]</field>
</record>
<record model="ir.action.act_window.view"
id="act_move_form_cust_view1">
<field name="sequence" eval="1"/>
<field name="view" ref="move_view_tree"/>
<field name="act_window" ref="act_move_form_cust"/>
</record>
<record model="ir.action.act_window.view"
id="act_move_form_cust_view2">
<field name="sequence" eval="2"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_form_cust"/>
</record>
<menuitem parent="menu_move_form" sequence="3"
action="act_move_form_cust" id="menu_move_form_cust"/>
</data>
</tryton>