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="type">search</field>
|
|
|
|
<field name="inherit_id" ref="product.product_search_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2010-06-12 17:49:33 +00:00
|
|
|
<field name="pricelist_id" position="before">
|
2011-07-08 08:52:03 +00:00
|
|
|
<field name="location_id" widget="selection" context="{'location': self}"/>
|
|
|
|
<field name="warehouse_id" widget="selection" context="{'warehouse': self}"/>
|
2010-04-15 08:55:49 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
</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="type">form</field>
|
|
|
|
<field name="inherit_id" ref="product.product_category_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2008-08-25 22:20:48 +00:00
|
|
|
<form position="inside">
|
|
|
|
<group col="2" colspan="2">
|
|
|
|
<separator string="Accounting Stock Properties" colspan="2"/>
|
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"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
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="type">form</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-04-03 09:39:18 +00:00
|
|
|
<separator string="Counter-Part Locations Properties" groups="stock.group_locations" colspan="4"/>
|
|
|
|
<field name="property_stock_procurement" domain="[('usage','=','procurement')]"/>
|
|
|
|
<field name="property_stock_production" domain="[('usage','=','production')]"/>
|
|
|
|
<field name="property_stock_inventory" domain="[('usage','=','inventory')]"/>
|
2008-11-27 00:00:02 +00:00
|
|
|
<separator string="Accounting Entries" colspan="4"/>
|
2009-02-26 07:53:04 +00:00
|
|
|
<field name="property_stock_account_input" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
|
|
<field name="property_stock_account_output" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
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="type">form</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2010-04-15 08:55:49 +00:00
|
|
|
<field name="standard_price" position="replace">
|
2011-03-22 12:48:12 +00:00
|
|
|
<label string="Cost Price :" align="1.0"/>
|
2010-10-17 11:59:01 +00:00
|
|
|
<group col="2" colspan="1">
|
|
|
|
<field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" nolabel="1"/>
|
|
|
|
<button name="%(action_view_change_standard_price)d" string="Update"
|
|
|
|
type="action" icon="gtk-execute" attrs="{'invisible':[('cost_method','<>','average')]}"/>
|
2010-04-15 08:55:49 +00:00
|
|
|
</group>
|
|
|
|
</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="type">form</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">
|
2010-09-20 14:20:27 +00:00
|
|
|
<xpath expr="/form/notebook/page/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="type">form</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<group name="status" position="after">
|
2010-12-03 13:06:21 +00:00
|
|
|
<group colspan="2" col="3">
|
2008-09-23 20:56:51 +00:00
|
|
|
<separator string="Stocks" colspan="4"/>
|
2008-08-25 22:20:48 +00:00
|
|
|
<field name="qty_available"/>
|
2010-12-08 07:17:22 +00:00
|
|
|
<button name="%(action_view_change_product_quantity)d" string="Update" attrs="{'invisible': [('type', '=', 'service')]}"
|
2011-12-11 09:14:42 +00:00
|
|
|
type="action" icon="gtk-execute" groups="stock.group_stock_manager,stock.group_stock_user"/>
|
2010-12-03 13:06:21 +00:00
|
|
|
<newline/>
|
2008-08-25 22:20:48 +00:00
|
|
|
<field name="virtual_available"/>
|
|
|
|
</group>
|
2012-04-25 13:56:29 +00:00
|
|
|
<group colspan="2" col="2" name="stock_variations">
|
2011-10-27 08:01:03 +00:00
|
|
|
<separator string="Expected Stock Variations" colspan="2"/>
|
|
|
|
<field name="incoming_qty"/>
|
|
|
|
<field name="outgoing_qty"/>
|
|
|
|
</group>
|
2012-03-22 15:05:11 +00:00
|
|
|
<group colspan="2" col="2" name="lot" groups="stock.group_tracking_lot,stock.group_production_lot">
|
2008-09-20 19:06:25 +00:00
|
|
|
<separator string="Lots" colspan="4"/>
|
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>
|
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="type">kanban</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"/>
|
|
|
|
<field name="product_image"/>
|
|
|
|
<field name="list_price"/>
|
2012-04-26 10:31:33 +00:00
|
|
|
<field name="total_reception"/>
|
|
|
|
<field name="total_delivery"/>
|
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">
|
|
|
|
<a type="edit"><img t-att-src="kanban_image('product.product', 'product_image', record.id.value)" class="oe_product_photo"/></a>
|
|
|
|
</div>
|
|
|
|
<div class="oe_product_desc">
|
|
|
|
<h4><a type="edit"><field name="name"></field></a></h4>
|
|
|
|
<ul>
|
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>
|
|
|
|
<li>Cost: <field name="standard_price"></field></li>
|
|
|
|
</ul>
|
2012-04-27 12:30:09 +00:00
|
|
|
<a name="get_receptions" type="object">
|
|
|
|
<t t-if="record.total_reception.raw_value <= 1">Reception(<t t-esc="record.total_reception.value"/>)</t>
|
|
|
|
<t t-if="record.total_reception.raw_value > 1">Receptions(<t t-esc="record.total_reception.value"/>)</t>
|
|
|
|
</a>
|
|
|
|
<a name="get_deliveries" type="object">
|
|
|
|
<t t-if="record.total_delivery.raw_value <= 1">Delivery(<t t-esc="record.total_delivery.value"/>)</t>
|
|
|
|
<t t-if="record.total_delivery.raw_value > 1">Deliveries(<t t-esc="record.total_delivery.value"/>)</t>
|
|
|
|
</a>
|
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="type">form</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<group name="store" position="after">
|
2012-04-03 09:39:18 +00:00
|
|
|
<group col="2" colspan="2" 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>
|
|
|
|
|
2010-09-15 10:31:58 +00:00
|
|
|
<!-- <record id="view_product_valuation_form" model="ir.ui.view">
|
2010-06-10 12:44:52 +00:00
|
|
|
<field name="name">product.valuation.stock.form.inherit</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="cost_method" position="after">
|
|
|
|
<field name="valuation"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
2010-09-15 10:31:58 +00:00
|
|
|
</record>-->
|
2010-06-10 12:44:52 +00:00
|
|
|
|
2008-08-19 19:42:11 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|