[IMP] stock: Imrpove the view of Periodical Inventory,rename the label and add the list view of move_ids

bzr revid: sbh@tinyerp.com-20100908130657-6it84bme2brthnwo
This commit is contained in:
sbh (Open ERP) 2010-09-08 18:36:57 +05:30
parent b095ebd826
commit 51c5533ebe
1 changed files with 16 additions and 6 deletions

View File

@ -85,14 +85,14 @@
<field name="model">stock.inventory</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Lot Inventory">
<form string="Physical Inventory">
<field name="name"/>
<field name="date"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
<notebook colspan="4">
<page string="General Informations">
<field colspan="4" name="inventory_line_id" nolabel="1" widget="one2many_list">
<tree string="Inventory Lines" editable="bottom">
<tree string="Products" editable="bottom">
<field context="location=location_id,uom=product_uom" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom)" domain="[('type','&lt;&gt;','service')]"/>
<field name="product_qty"/>
<field name="product_uom"/>
@ -103,7 +103,7 @@
string="Split inventory lines" groups="base.group_extended"
type="action" icon="gtk-justify-fill" states="draft"/>
</tree>
<form string="Inventory Lines">
<form string="Products ">
<field colspan="4" context="location=location_id,uom=product_uom" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom)" domain="[('type','&lt;&gt;','service')]"/>
<field name="product_qty"/>
<field name="product_uom"/>
@ -117,7 +117,17 @@
</form>
</field>
</page><page string="Posted Inventory" groups="base.group_extended">
<field colspan="4" name="move_ids" nolabel="1"/>
<field colspan="2" name="move_ids" nolabel="1" readonly="1" widget="one2many_list">
<tree colors="grey:scrapped == True" string="Stock Moves">
<field name="name" string="Move Name"/>
<field name="product_id"/>
<field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
<field name="product_uom" string="UoM"/>
<field name="prodlot_id" groups="base.group_extended"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</page>
</notebook>
<field name="state"/>
@ -132,7 +142,7 @@
</record>
<record id="action_inventory_form" model="ir.actions.act_window">
<field name="name">Periodical Inventory</field>
<field name="name">Physical Inventory</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">stock.inventory</field>
<field name="view_type">form</field>
@ -143,7 +153,7 @@
<menuitem action="action_inventory_form" id="menu_action_inventory_form" parent="menu_stock_inventory_control" sequence="30"/>
<record id="action_inventory_form_draft" model="ir.actions.act_window">
<field name="name">Draft Periodical Inventories</field>
<field name="name">Draft Physical Inventories</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">stock.inventory</field>
<field name="view_type">form</field>