237 lines
14 KiB
XML
237 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="product_search_form_view_stock" model="ir.ui.view">
|
|
<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">
|
|
<field name="pricelist_id" position="before">
|
|
<field name="location_id" context="{'location': self}"/>
|
|
<field name="warehouse_id" context="{'warehouse': self}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<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">
|
|
<data>
|
|
<xpath expr="/form/sheet//group[@name='account_stock_property']" position="inside">
|
|
<field name="property_stock_account_input_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
<field name="property_stock_account_output_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
<field name="property_stock_valuation_account_id" domain="[('type','<>','view'), ('type','<>','consolidation')]"/>
|
|
<field name="property_stock_journal"/>
|
|
</xpath>
|
|
</data>
|
|
</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">
|
|
<page position="after" string="Information">
|
|
<page string="Properties">
|
|
<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>
|
|
</page>
|
|
</page>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_product_standard_price_form" model="ir.ui.view">
|
|
<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">
|
|
<field name="standard_price" position="replace" version="7.0">
|
|
<label string="Cost Price" for="standard_price" align="1.0" groups="base.group_user"/>
|
|
<div groups="base.group_user">
|
|
<field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" nolabel="1"/> -
|
|
<button name="%(action_view_change_standard_price)d" string="Update"
|
|
type="action" attrs="{'invisible':[('cost_method','<>','average')]}"
|
|
class="oe_link"/>
|
|
</div>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_normal_property_acc_form" model="ir.ui.view">
|
|
<field name="name">product.normal.stock.acc.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="priority">26</field>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[@name='properties']" position="before">
|
|
<group groups="stock.group_inventory_valuation">
|
|
<separator string="Inventory Valuation" colspan="4"/>
|
|
<group colspan="2" col="2">
|
|
<field name="valuation" attrs="{'readonly':[('type', '=', 'service')]}"/>
|
|
</group>
|
|
<group colspan="2" col="2">
|
|
<field name="property_stock_account_input" attrs="{'readonly':[('valuation', '!=', 'real_time')]}"
|
|
domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
<field name="property_stock_account_output" attrs="{'readonly':[('valuation', '!=', 'real_time')]}"
|
|
domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
</group>
|
|
</group>
|
|
<newline/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<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="before" version="7.0">
|
|
<group string="Stock and Expected Variations">
|
|
<field name="qty_available"/>
|
|
<field name="incoming_qty" groups="base.group_user"/>
|
|
<label for="virtual_available" groups="base.group_user"/>
|
|
<div groups="base.group_user">
|
|
<field name="virtual_available" class="oe_inline"/>
|
|
|
|
<button name="%(action_view_change_product_quantity)d" string="Update" attrs="{'invisible': [('type', '=', 'service')]}"
|
|
type="action" icon="gtk-execute" groups="stock.group_stock_manager,stock.group_stock_user" class="oe_inline"/>
|
|
</div>
|
|
<field name="outgoing_qty" groups="base.group_user"/>
|
|
</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"/>
|
|
</group>
|
|
</group>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_receive_move" model="ir.actions.act_window">
|
|
<field name="name">Receptions</field>
|
|
<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>
|
|
<field name="domain">[('picking_id.type','=','in')]</field>
|
|
<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"/>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
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>
|
|
</record>
|
|
|
|
<record id="action_deliver_move" model="ir.actions.act_window">
|
|
<field name="name">Deliveries</field>
|
|
<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>
|
|
<field name="domain">[('picking_id.type','=','out')]</field>
|
|
<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"/>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
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>
|
|
</record>
|
|
|
|
<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">
|
|
<kanban>
|
|
<field name="color"/>
|
|
<field name="type"/>
|
|
<field name="image_medium"/>
|
|
<field name="list_price"/>
|
|
<field name="reception_count"/>
|
|
<field name="delivery_count"/>
|
|
<templates>
|
|
<t t-name="kanban-box">
|
|
<div class="oe_product_vignette">
|
|
<div class="oe_product_img">
|
|
<a type="edit"><img t-att-src="kanban_image('product.product', 'image_medium', 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>
|
|
<li t-if="record.code.raw_value">Code: <field name="code"/></li>
|
|
<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>
|
|
<li>Price: <field name="lst_price"></field></li>
|
|
<!-- TODO the 'groups' attribute doesn't work in kanban views -->
|
|
<li groups="base.group_user">Cost: <field name="standard_price"></field></li>
|
|
</ul>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$('.oe_product_photo').load(function() { if($(this).width() > $(this).height()) { $(this).addClass('oe_product_photo_wide') } });
|
|
</script>
|
|
<div></div>
|
|
</t>
|
|
</templates>
|
|
</kanban>
|
|
</field>
|
|
</record>
|
|
|
|
<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">
|
|
<group name="store" groups="stock.group_locations">
|
|
<separator string="Counter-Part Locations Properties" colspan="2"/>
|
|
<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>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|