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_category_property_form" model="ir.ui.view">
|
|
|
|
<field name="name">product.category.stock.property.form.inherit</field>
|
|
|
|
<field name="model">product.category</field>
|
|
|
|
<field name="inherit_id" ref="product.product_category_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-22 05:55:24 +00:00
|
|
|
<data>
|
2012-07-02 11:26:53 +00:00
|
|
|
<xpath expr="/form/sheet//group[@name='account_stock_property']" position="inside">
|
2009-02-26 07:53:04 +00:00
|
|
|
<field name="property_stock_account_input_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
|
|
<field name="property_stock_account_output_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
2011-12-19 08:40:09 +00:00
|
|
|
<field name="property_stock_valuation_account_id" domain="[('type','<>','view'), ('type','<>','consolidation')]"/>
|
2008-08-25 22:20:48 +00:00
|
|
|
<field name="property_stock_journal"/>
|
2012-06-22 05:55:24 +00:00
|
|
|
</xpath>
|
|
|
|
</data>
|
2008-08-19 19:42:11 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<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">
|
2012-04-03 09:39:18 +00:00
|
|
|
<page position="after" string="Information">
|
2008-11-27 00:00:02 +00:00
|
|
|
<page string="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>
|
|
|
|
<group string="Accounting Entries">
|
|
|
|
<field name="property_stock_account_input" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
|
|
<field name="property_stock_account_output" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
|
|
</group>
|
2008-11-27 00:00:02 +00:00
|
|
|
</page>
|
2008-08-19 19:42:11 +00:00
|
|
|
</page>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-04-15 08:55:49 +00:00
|
|
|
<record id="view_product_standard_price_form" model="ir.ui.view">
|
2010-03-16 13:34:19 +00:00
|
|
|
<field name="name">product.product.standard.price.form.inherit</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-14 10:08:01 +00:00
|
|
|
<field name="standard_price" position="replace" version="7.0">
|
2012-05-21 14:59:00 +00:00
|
|
|
<label string="Cost Price" for="standard_price" align="1.0" groups="base.group_user"/>
|
2012-06-22 13:09:39 +00:00
|
|
|
<div groups="base.group_user">
|
2012-08-07 15:55:52 +00:00
|
|
|
<field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" nolabel="1"/> -
|
2012-08-11 13:34:06 +00:00
|
|
|
<button name="%(action_view_change_standard_price)d" string="update"
|
2012-08-07 15:55:52 +00:00
|
|
|
type="action" attrs="{'invisible':[('cost_method','<>','average')]}"
|
|
|
|
class="oe_link"/>
|
2012-06-13 09:06:57 +00:00
|
|
|
</div>
|
2010-04-15 08:55:49 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-08-19 19:42:11 +00:00
|
|
|
|
2008-09-02 17:55:09 +00:00
|
|
|
<record id="view_normal_property_acc_form" model="ir.ui.view">
|
2008-08-24 23:23:45 +00:00
|
|
|
<field name="name">product.normal.stock.acc.property.form.inherit</field>
|
2008-08-19 19:42:11 +00:00
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
2008-09-07 23:24:39 +00:00
|
|
|
<field name="priority">26</field>
|
2008-08-19 19:42:11 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-06-13 09:06:57 +00:00
|
|
|
<xpath expr="//group[@name='properties']" position="before">
|
2012-04-03 09:39:18 +00:00
|
|
|
<group groups="stock.group_inventory_valuation">
|
2010-09-20 14:20:27 +00:00
|
|
|
<separator string="Inventory Valuation" colspan="4"/>
|
|
|
|
<group colspan="2" col="2">
|
2011-09-07 09:32:31 +00:00
|
|
|
<field name="valuation" attrs="{'readonly':[('type', '=', 'service')]}"/>
|
2010-09-20 14:20:27 +00:00
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<field name="property_stock_account_input" attrs="{'readonly':[('valuation', '!=', 'real_time')]}"
|
2012-04-25 13:56:29 +00:00
|
|
|
domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
2010-09-20 14:20:27 +00:00
|
|
|
<field name="property_stock_account_output" attrs="{'readonly':[('valuation', '!=', 'real_time')]}"
|
2012-04-25 13:56:29 +00:00
|
|
|
domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
2010-09-20 14:20:27 +00:00
|
|
|
</group>
|
2010-09-15 10:31:58 +00:00
|
|
|
</group>
|
2010-09-15 10:48:07 +00:00
|
|
|
<newline/>
|
2010-09-20 14:20:27 +00:00
|
|
|
</xpath>
|
2008-08-25 22:20:48 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2008-08-24 23:23:45 +00:00
|
|
|
|
|
|
|
<record id="view_normal_stock_property_form" model="ir.ui.view">
|
|
|
|
<field name="name">product.normal.stock.form.inherit</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-14 10:08:01 +00:00
|
|
|
<group name="status" position="before" version="7.0">
|
2012-08-11 13:34:06 +00:00
|
|
|
<group string="Stock and Expected Variations" attrs="{'invisible': [('type', '=', 'service')]}">
|
|
|
|
<label for="qty_available"/>
|
|
|
|
<div>
|
|
|
|
<field name="qty_available" class="oe_inline"/>
|
|
|
|
<button name="%(action_view_change_product_quantity)d" string="update"
|
|
|
|
type="action" groups="stock.group_stock_manager,stock.group_stock_user"
|
|
|
|
class="oe_link"/>
|
|
|
|
</div>
|
2012-07-25 16:23:06 +00:00
|
|
|
<label for="virtual_available" groups="base.group_user"/>
|
|
|
|
<div groups="base.group_user">
|
2012-06-22 13:09:39 +00:00
|
|
|
<field name="virtual_available" class="oe_inline"/>
|
2012-08-11 13:34:06 +00:00
|
|
|
(+<field name="incoming_qty" class="oe_inline"/> -<field name="outgoing_qty" class="oe_inline"/>)
|
2012-06-13 09:06:57 +00:00
|
|
|
</div>
|
2011-10-27 08:01:03 +00:00
|
|
|
</group>
|
2012-06-13 09:06:57 +00:00
|
|
|
<group name="lot" groups="stock.group_tracking_lot,stock.group_production_lot" string="Lots">
|
2012-03-22 15:05:11 +00:00
|
|
|
<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"/>
|
2008-09-20 19:06:25 +00:00
|
|
|
</group>
|
2008-08-24 23:23:45 +00:00
|
|
|
</group>
|
|
|
|
</field>
|
|
|
|
</record>
|
2012-07-25 16:23:06 +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]}'"/>
|
|
|
|
<field name="search_view_id" ref="view_move_search_reception_incoming_picking"/>
|
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 register a reception for this product.
|
|
|
|
</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]}'"/>
|
|
|
|
<field name="search_view_id" ref="view_move_search_reception_outcoming_picking"/>
|
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
|
|
|
|
2011-09-20 11:30:43 +00:00
|
|
|
<record model="ir.ui.view" id="product.product_kanban_view">
|
|
|
|
<field name="name">Product Kanban</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="arch" type="xml">
|
2011-12-05 15:07:06 +00:00
|
|
|
<kanban>
|
2011-10-25 14:13:28 +00:00
|
|
|
<field name="color"/>
|
|
|
|
<field name="type"/>
|
2012-08-07 12:02:10 +00:00
|
|
|
<field name="image_medium"/>
|
2011-10-25 14:13:28 +00:00
|
|
|
<field name="list_price"/>
|
2012-05-02 06:07:49 +00:00
|
|
|
<field name="reception_count"/>
|
|
|
|
<field name="delivery_count"/>
|
2011-09-20 11:30:43 +00:00
|
|
|
<templates>
|
|
|
|
<t t-name="kanban-box">
|
2011-12-19 16:06:51 +00:00
|
|
|
<div class="oe_product_vignette">
|
|
|
|
<div class="oe_product_img">
|
2012-06-28 09:01:33 +00:00
|
|
|
<a type="edit"><img t-att-src="kanban_image('product.product', 'image_medium', record.id.value)" class="oe_product_photo"/></a>
|
2011-12-19 16:06:51 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_product_desc">
|
|
|
|
<h4><a type="edit"><field name="name"></field></a></h4>
|
|
|
|
<ul>
|
2012-08-09 09:44:38 +00:00
|
|
|
<li t-if="record.code.raw_value">Code: <field name="code"/></li>
|
2012-01-13 15:47:06 +00:00
|
|
|
<li t-if="record.type.raw_value != 'service'">Stock on hand: <field name="qty_available"/> <field name="uom_id"/></li>
|
|
|
|
<li t-if="record.type.raw_value != 'service'">Stock available: <field name="virtual_available"/> <field name="uom_id"/></li>
|
2011-12-19 16:06:51 +00:00
|
|
|
<li>Price: <field name="lst_price"></field></li>
|
2012-05-31 17:16:52 +00:00
|
|
|
<!-- TODO the 'groups' attribute doesn't work in kanban views -->
|
|
|
|
<li groups="base.group_user">Cost: <field name="standard_price"></field></li>
|
2011-12-19 16:06:51 +00:00
|
|
|
</ul>
|
2012-06-01 11:29:36 +00:00
|
|
|
<div groups="base.group_user">
|
|
|
|
<a name="%(action_receive_move)d" type="action">
|
|
|
|
<t t-if="record.reception_count.value">Receptions(<t t-esc="record.reception_count.value"/>)</t>
|
|
|
|
</a>
|
|
|
|
<a name="%(action_deliver_move)d" type="action">
|
|
|
|
<t t-if="record.delivery_count.value">Deliveries(<t t-esc="record.delivery_count.value"/>)</t>
|
|
|
|
</a>
|
|
|
|
</div>
|
2011-09-20 11:30:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-12-19 16:06:51 +00:00
|
|
|
<script>
|
|
|
|
$('.oe_product_photo').load(function() { if($(this).width() > $(this).height()) { $(this).addClass('oe_product_photo_wide') } });
|
|
|
|
</script>
|
|
|
|
<div></div>
|
2011-09-20 11:30:43 +00:00
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-08-24 23:23:45 +00:00
|
|
|
|
|
|
|
<record id="view_normal_property_form" model="ir.ui.view">
|
|
|
|
<field name="name">product.normal.stock.property.form.inherit</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<group name="store" position="after">
|
2012-06-18 16:00:57 +00:00
|
|
|
<group name="store" groups="stock.group_locations">
|
2008-09-16 10:37:53 +00:00
|
|
|
<separator string="Counter-Part Locations Properties" colspan="2"/>
|
2010-07-08 12:46:18 +00:00
|
|
|
<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')]"/>
|
2008-08-25 22:20:48 +00:00
|
|
|
</group>
|
2008-08-24 23:23:45 +00:00
|
|
|
</group>
|
2008-08-19 19:42:11 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|