2008-08-19 19:42:11 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2008-08-19 19:42:11 +00:00
|
|
|
<data>
|
|
|
|
|
2010-04-15 08:55:49 +00:00
|
|
|
<record id="product_search_form_view_stock" model="ir.ui.view">
|
2009-09-24 10:46:21 +00:00
|
|
|
<field name="name">product.search.stock.form</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="inherit_id" ref="product.product_search_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-09 20:31:27 +00:00
|
|
|
<field name="pricelist_id" position="before">
|
2012-07-23 06:54:28 +00:00
|
|
|
<field name="location_id" context="{'location': self}"/>
|
|
|
|
<field name="warehouse_id" context="{'warehouse': self}"/>
|
2012-06-09 20:31:27 +00:00
|
|
|
</field>
|
2009-09-24 10:46:21 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-04-15 08:55:49 +00:00
|
|
|
|
2008-08-19 19:42:11 +00:00
|
|
|
<record id="view_template_property_form" model="ir.ui.view">
|
|
|
|
<field name="name">product.template.stock.property.form.inherit</field>
|
|
|
|
<field name="model">product.template</field>
|
|
|
|
<field name="inherit_id" ref="product.product_template_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2013-06-30 23:00:28 +00:00
|
|
|
<group name="delay" position="inside">
|
|
|
|
<field name="sale_delay" attrs="{'readonly':[('sale_ok','=',False)]}"/>
|
|
|
|
</group>
|
|
|
|
<group name="delay" position="after">
|
|
|
|
<group name="store" string="Storage Location">
|
2012-10-03 06:48:40 +00:00
|
|
|
<field name="loc_rack"/>
|
|
|
|
<field name="loc_row"/>
|
2013-06-30 23:00:28 +00:00
|
|
|
<field name="loc_case"/>
|
|
|
|
</group>
|
2012-10-03 06:48:40 +00:00
|
|
|
</group>
|
2012-04-03 09:39:18 +00:00
|
|
|
<page position="after" string="Information">
|
2013-07-11 13:05:28 +00:00
|
|
|
<page string="Properties" name="properties">
|
2012-06-09 20:31:27 +00:00
|
|
|
<group string="Counter-Part Locations Properties" groups="stock.group_locations">
|
|
|
|
<field name="property_stock_procurement" domain="[('usage','=','procurement')]"/>
|
|
|
|
<field name="property_stock_production" domain="[('usage','=','production')]"/>
|
|
|
|
<field name="property_stock_inventory" domain="[('usage','=','inventory')]"/>
|
|
|
|
</group>
|
2008-11-27 00:00:02 +00:00
|
|
|
</page>
|
2008-08-19 19:42:11 +00:00
|
|
|
</page>
|
|
|
|
</field>
|
|
|
|
</record>
|
2012-08-31 13:50:10 +00:00
|
|
|
|
2012-08-21 11:38:14 +00:00
|
|
|
<record id="view_normal_procurement_locations_form" model="ir.ui.view">
|
|
|
|
<field name="name">product.normal.procurement.locations.inherit</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2013-07-09 15:15:28 +00:00
|
|
|
|
2013-02-20 10:41:04 +00:00
|
|
|
<xpath expr="//div[@name='buttons']" position="inside">
|
2013-02-24 11:21:42 +00:00
|
|
|
<button string="Inventory" name="%(action_product_location_tree)d" type="action" attrs="{'invisible':[('type', '=', 'service')]}" groups="stock.group_locations"/>
|
|
|
|
<button string="Moves" name= "%(act_product_stock_move_open)d" type="action" attrs="{'invisible':[('type', '=', 'service')]}" groups="stock.group_stock_user"/>
|
2013-02-20 10:41:04 +00:00
|
|
|
</xpath>
|
2013-07-09 15:15:28 +00:00
|
|
|
|
|
|
|
|
2012-10-05 06:41:59 +00:00
|
|
|
<group name="procurement_uom" position="before">
|
2012-08-31 13:50:10 +00:00
|
|
|
<group name="delay" string="Delays">
|
2012-08-31 17:47:46 +00:00
|
|
|
<label for="produce_delay" attrs="{'invisible':[('type','=','service')]}"/>
|
|
|
|
<div attrs="{'invisible':[('type','=','service')]}">
|
|
|
|
<field name="produce_delay" class="oe_inline"/> days
|
|
|
|
</div>
|
2012-08-31 14:50:17 +00:00
|
|
|
<field name="active"/>
|
2012-08-31 13:50:10 +00:00
|
|
|
</group>
|
2012-08-31 17:47:46 +00:00
|
|
|
</group>
|
2012-10-03 06:48:40 +00:00
|
|
|
<xpath expr="//group[@string='Sale Conditions']" position="inside">
|
|
|
|
<label for="sale_delay"/>
|
|
|
|
<div>
|
|
|
|
<field name="sale_delay" class="oe_inline"/> days
|
|
|
|
</div>
|
|
|
|
</xpath>
|
2013-07-09 15:15:28 +00:00
|
|
|
|
2012-10-03 06:48:40 +00:00
|
|
|
<group name="status" position="before" version="7.0">
|
|
|
|
<group string="Stock and Expected Variations" attrs="{'invisible': [('type', '=', 'service')]}" groups="base.group_user">
|
|
|
|
<label for="qty_available"/>
|
|
|
|
<div>
|
|
|
|
<field name="qty_available" class="oe_inline"/>
|
2013-02-24 11:21:42 +00:00
|
|
|
<button name="%(action_view_change_product_quantity)d" string="⇒ Update"
|
|
|
|
type="action"
|
|
|
|
class="oe_link"/>
|
2012-10-03 06:48:40 +00:00
|
|
|
</div>
|
2013-02-24 11:21:42 +00:00
|
|
|
<label for="incoming_qty"/>
|
|
|
|
<div>
|
2012-10-03 06:48:40 +00:00
|
|
|
<field name="incoming_qty" class="oe_inline"/>
|
2013-02-24 11:21:42 +00:00
|
|
|
</div>
|
|
|
|
<field name="outgoing_qty" class="oe_inline"/>
|
|
|
|
<field name="virtual_available" class="oe_inline"/>
|
2012-10-03 06:48:40 +00:00
|
|
|
</group>
|
|
|
|
<group name="lot" groups="stock.group_tracking_lot,stock.group_production_lot" string="Lots">
|
|
|
|
<field name="track_production" groups="stock.group_production_lot"/>
|
|
|
|
<field name="track_incoming" groups="stock.group_tracking_lot"/>
|
|
|
|
<field name="track_outgoing" groups="stock.group_tracking_lot"/>
|
2012-08-31 13:50:10 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
2012-10-03 06:48:40 +00:00
|
|
|
<group name="status" position="after" version="7.0">
|
2013-05-03 09:16:03 +00:00
|
|
|
<group name="store" string="Storage Location" attrs="{'invisible':[('type','=','service')]}">
|
|
|
|
<field name="loc_rack"/>
|
|
|
|
<field name="loc_row"/>
|
|
|
|
<field name="loc_case"/>
|
|
|
|
</group>
|
2012-10-03 06:48:40 +00:00
|
|
|
</group>
|
|
|
|
<group name="Weights" position="after">
|
|
|
|
<group name="store" groups="stock.group_locations" string="Counter-Part Locations Properties">
|
|
|
|
<field name="property_stock_procurement" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','procurement')]"/>
|
|
|
|
<field name="property_stock_production" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','production')]"/>
|
|
|
|
<field name="property_stock_inventory" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','inventory')]"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
2013-07-09 15:15:28 +00:00
|
|
|
|
2012-08-21 11:38:14 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2008-08-19 19:42:11 +00:00
|
|
|
|
2012-05-22 07:02:28 +00:00
|
|
|
<record id="action_receive_move" model="ir.actions.act_window">
|
2012-08-04 13:21:36 +00:00
|
|
|
<field name="name">Receptions</field>
|
2012-05-22 07:02:28 +00:00
|
|
|
<field name="res_model">stock.move</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2012-08-09 09:44:38 +00:00
|
|
|
<field name="domain">[('picking_id.type','=','in')]</field>
|
2012-05-22 07:02:28 +00:00
|
|
|
<field name="view_id" ref="view_move_tree_reception_picking"/>
|
|
|
|
<field name="context" eval="'{\'search_default_product_id\': [active_id]}'"/>
|
2012-08-04 14:35:56 +00:00
|
|
|
<field name="help" type="html">
|
2012-08-04 13:56:31 +00:00
|
|
|
<p class="oe_view_nocontent_create">
|
2013-06-30 23:00:28 +00:00
|
|
|
Click to register a reception for this product.
|
2012-08-04 13:21:36 +00:00
|
|
|
</p><p>
|
|
|
|
Here you will find the history of all receptions related to
|
|
|
|
this product, as well as all future receptions you are waiting
|
|
|
|
from your suppliers.
|
|
|
|
</p>
|
|
|
|
</field>
|
2012-05-22 07:02:28 +00:00
|
|
|
</record>
|
2012-07-25 16:23:06 +00:00
|
|
|
|
2012-05-22 07:02:28 +00:00
|
|
|
<record id="action_deliver_move" model="ir.actions.act_window">
|
2012-08-04 13:21:36 +00:00
|
|
|
<field name="name">Deliveries</field>
|
2012-05-22 07:02:28 +00:00
|
|
|
<field name="res_model">stock.move</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2012-08-09 09:44:38 +00:00
|
|
|
<field name="domain">[('picking_id.type','=','out')]</field>
|
2012-05-22 07:02:28 +00:00
|
|
|
<field name="view_id" ref="view_move_tree_reception_picking"/>
|
|
|
|
<field name="context" eval="'{\'search_default_product_id\': [active_id]}'"/>
|
2012-08-04 14:35:56 +00:00
|
|
|
<field name="help" type="html">
|
2012-08-04 13:56:31 +00:00
|
|
|
<p class="oe_view_nocontent_create">
|
2012-08-04 13:21:36 +00:00
|
|
|
Click to add a delivery order for this product.
|
|
|
|
</p><p>
|
|
|
|
Here you will find the history of all past deliveries related to
|
|
|
|
this product, as well as all the products you must deliver to
|
|
|
|
customers.
|
|
|
|
</p>
|
|
|
|
</field>
|
2012-05-22 07:02:28 +00:00
|
|
|
</record>
|
2011-12-05 15:07:06 +00:00
|
|
|
|
2012-09-03 17:54:10 +00:00
|
|
|
<record model="ir.ui.view" id="product_kanban_stock_view">
|
|
|
|
<field name="name">Product Kanban Stock</field>
|
2011-09-20 11:30:43 +00:00
|
|
|
<field name="model">product.product</field>
|
2012-09-03 17:54:10 +00:00
|
|
|
<field name="inherit_id" ref="product.product_kanban_view"/>
|
2011-09-20 11:30:43 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-09-03 17:54:10 +00:00
|
|
|
<field name="list_price" position="after">
|
2012-05-02 06:07:49 +00:00
|
|
|
<field name="reception_count"/>
|
|
|
|
<field name="delivery_count"/>
|
2012-09-03 17:54:10 +00:00
|
|
|
</field>
|
|
|
|
<xpath expr="//div[@name='tags']" position="inside">
|
|
|
|
<a name="%(action_receive_move)d" type="action" t-if="record.reception_count.raw_value>0">
|
|
|
|
<t t-esc="record.reception_count.value"/> Receptions
|
|
|
|
</a>
|
|
|
|
<a name="%(action_deliver_move)d" type="action" t-if="record.delivery_count.raw_value>0">
|
|
|
|
<t t-esc="record.delivery_count.value"/> Deliveries
|
|
|
|
</a>
|
|
|
|
</xpath>
|
2012-09-06 15:28:30 +00:00
|
|
|
<ul position="inside">
|
2012-09-03 17:54:10 +00:00
|
|
|
<li t-if="record.type.raw_value != 'service'">On hand: <field name="qty_available"/> <field name="uom_id"/></li>
|
2012-11-02 09:37:44 +00:00
|
|
|
<li t-if="record.type.raw_value != 'service'">Forecasted: <field name="virtual_available"/> <field name="uom_id"/></li>
|
2012-09-03 17:54:10 +00:00
|
|
|
</ul>
|
2011-09-20 11:30:43 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2008-08-24 23:23:45 +00:00
|
|
|
|
2013-06-30 23:00:28 +00:00
|
|
|
<record model="ir.ui.view" id="product_form_view_procurement_button">
|
|
|
|
<field name="name">product.product.procurement</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="inherit_id" ref="stock.view_normal_procurement_locations_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//field[@name='incoming_qty']" position="after">
|
|
|
|
<button string="⇒ Request Procurement" name="%(act_make_procurement)d" type="action" class="oe_link"/>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//div[@name='buttons']" position="inside">
|
|
|
|
<button string="Orderpoints" name="%(product_open_orderpoint)d" type="action" attrs="{'invisible':[('type', '=', 'service')]}"/>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='cost_method']" position="before">
|
|
|
|
<field name="supply_method" groups="base.group_user"/>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//group[@name='general']" position="after" >
|
|
|
|
<group name="procurement_help" class="oe_grey" col="1" groups="base.group_user">
|
2013-07-09 15:15:28 +00:00
|
|
|
<!--TODO: Should write explanation for different routes-->
|
2013-06-30 23:00:28 +00:00
|
|
|
</group>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2008-08-19 19:42:11 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|