[IMP]: improve view for product and product categoryy

bzr revid: mga@tinyerp.com-20130711202605-qsmet8j2gvh920lo
This commit is contained in:
Mantavya Gajjar
2013-07-11 22:26:05 +02:00
parent a0f7808075
commit a3891c5014
+106 -98
View File
@@ -1,105 +1,113 @@
<?xml version="1.0"?>
<openerp>
<data>
<data>
<record id="stock_location_path_tree" model="ir.ui.view">
<field name="name">stock.location.path.tree</field>
<field name="model">stock.location.path</field>
<field name="arch" type="xml">
<tree string="Location Paths">
<field name="location_from_id"/>
<field name="location_dest_id"/>
<field name="name"/>
</tree>
</field>
</record>
<record id="stock_location_path_tree" model="ir.ui.view">
<field name="name">stock.location.path.tree</field>
<field name="model">stock.location.path</field>
<field name="arch" type="xml">
<tree string="Location Paths">
<field name="location_from_id" />
<field name="location_dest_id" />
<field name="name" />
</tree>
</field>
</record>
<record id="stock_location_path_form" model="ir.ui.view">
<field name="name">stock.location.path.form</field>
<field name="model">stock.location.path</field>
<field name="arch" type="xml">
<form string="Location Paths" version="7.0">
<group col="4">
<field name="name"/>
<newline/>
<field name="company_id" groups="base.group_multi_company"/>
<newline/>
<field name="location_from_id"/>
<field name="location_dest_id"/>
<field name="auto"/>
<field name="delay"/>
<record id="stock_location_path_form" model="ir.ui.view">
<field name="name">stock.location.path.form</field>
<field name="model">stock.location.path</field>
<field name="arch" type="xml">
<form string="Location Paths" version="7.0">
<group col="4">
<field name="name" />
<newline />
<field name="company_id" groups="base.group_multi_company" />
<newline />
<field name="location_from_id" />
<field name="location_dest_id" />
<field name="auto" />
<field name="delay" />
</group>
</form>
</field>
</record>
<record id="product_normal_form_inherit_location" model="ir.ui.view">
<field name="name">product.product.form</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view" />
<field name="arch" type="xml">
<group name="inventory" position="after">
<group string="Routes">
<field name="route_ids" colspan="4" nolabel="1" />
</group>
</group>
</field>
</record>
<record id="product_category_form_view_inherit" model="ir.ui.view">
<field name="name">product.category.form</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view" />
<field name="arch" type="xml">
<xpath expr="//sheet" position="inside">
<group string="Strategy" colspan="4">
<field name="route_ids" colspan="4" nolabel="1" />
</group>
</xpath>
</field>
</record>
<record id="stock_location_route_tree" model="ir.ui.view">
<field name="name">stock.location.route.tree</field>
<field name="model">stock.location.route</field>
<field name="arch" type="xml">
<tree string="Routes">
<field name="name" />
<field name="sequence" />
</tree>
</field>
</record>
<record id="stock_location_route_form_view" model="ir.ui.view">
<field name="name">stock.location.route.form</field>
<field name="model">stock.location.route</field>
<field eval="7" name="priority" />
<field name="arch" type="xml">
<form string="Route">
<field name="name" />
<field name="sequence" />
<group string="Push Rules" colspan="4" >
<field name="push_ids" colspan="4" nolabel="1"/>
</group>
</form>
</field>
</record>
<group string="Pull Rules" colspan="4" >
<field name="pull_ids" colspan="4" nolabel="1"/>
</group>
</form>
</field>
</record>
<record id="product_normal_form_inherit_location" model="ir.ui.view">
<field name="name">product.product.form</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<group name="inventory" position="after">
<group string="Routes">
<field name = "route_ids"/>
</group>
</group>
</field>
</record>
<record id="product_category_form_view_inherit" model="ir.ui.view">
<field name="name">product.category.form</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view"/>
<field name="arch" type="xml">
<group name="parent" position="after">
<separator name="Strategy"/>
<group name="Strategies">
<field name="route_ids"/>
</group>
</group>
</field>
</record>
<record id="stock_location_route_tree" model="ir.ui.view">
<field name="name">stock.location.route.tree</field>
<field name="model">stock.location.route</field>
<field name="arch" type="xml">
<tree string="Routes">
<field name="name"/>
<field name="sequence"/>
</tree>
</field>
</record>
<record id="stock_location_route_form_view" model="ir.ui.view">
<field name="name">stock.location.route.form</field>
<field name="model">stock.location.route</field>
<field eval="7" name="priority"/>
<field name="arch" type="xml">
<form string="Route">
<field name="name"/>
<field name="sequence"/>
<field name="push_ids" colspan="4"/>
<field name="pull_ids" colspan="4"/>
</form>
</field>
</record>
<record id="action_routes_form" model="ir.actions.act_window">
<field name="name">Logistic Routes</field>
<field name="res_model">stock.location.route</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="stock_location_route_tree"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a logistic route.
</p><p>You can define here the main logistic routes that run through your warehouses and that define the flows of your products. These routes can be assigned to a product, a product category or on a location.</p>
</field>
</record>
<menuitem action="action_routes_form" id="menu_stock_routes" parent="stock.menu_stock_configuration" sequence="11"/>
</data>
<record id="action_routes_form" model="ir.actions.act_window">
<field name="name">Logistic Routes</field>
<field name="res_model">stock.location.route</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="stock_location_route_tree" />
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a logistic route.
</p>
<p>You can define here the main logistic routes that run through
your warehouses and that define the flows of your products. These
routes can be assigned to a product, a product category or on a
location.</p>
</field>
</record>
<menuitem action="action_routes_form" id="menu_stock_routes"
parent="stock.menu_stock_configuration" sequence="11" />
</data>
</openerp>