1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="product_search_form_view_stock" model="ir.ui.view">
6 <field name="name">product.search.stock.form</field>
7 <field name="model">product.product</field>
8 <field name="type">search</field>
9 <field name="inherit_id" ref="product.product_search_form_view"/>
10 <field name="arch" type="xml">
11 <field name="pricelist_id" position="before">
12 <field name="location_id" widget="selection" context="{'location': self}"/>
13 <field name="warehouse_id" widget="selection" context="{'warehouse': self}"/>
14 <separator orientation="vertical"/>
19 <record id="view_category_property_form" model="ir.ui.view">
20 <field name="name">product.category.stock.property.form.inherit</field>
21 <field name="model">product.category</field>
22 <field name="type">form</field>
23 <field name="inherit_id" ref="product.product_category_form_view"/>
24 <field name="arch" type="xml">
25 <form position="inside">
26 <group col="2" colspan="2">
27 <separator string="Accounting Stock Properties" colspan="2"/>
28 <field name="property_stock_account_input_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
29 <field name="property_stock_account_output_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
30 <field name="property_stock_variation"/>
31 <field name="property_stock_journal"/>
37 <record id="view_template_property_form" model="ir.ui.view">
38 <field name="name">product.template.stock.property.form.inherit</field>
39 <field name="model">product.template</field>
40 <field name="type">form</field>
41 <field name="inherit_id" ref="product.product_template_form_view"/>
42 <field name="arch" type="xml">
43 <page position="after" string="Information">
44 <page string="Properties">
45 <separator string="Counter-Part Locations Properties" colspan="4"/>
46 <field name="property_stock_procurement" domain="[('usage','=','procurement')]"/>
47 <field name="property_stock_production" domain="[('usage','=','production')]"/>
48 <field name="property_stock_inventory" domain="[('usage','=','inventory')]"/>
49 <separator string="Accounting Entries" colspan="4"/>
50 <field name="property_stock_account_input" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
51 <field name="property_stock_account_output" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
57 <record id="view_product_standard_price_form" model="ir.ui.view">
58 <field name="name">product.product.standard.price.form.inherit</field>
59 <field name="model">product.product</field>
60 <field name="type">form</field>
61 <field name="inherit_id" ref="product.product_normal_form_view"/>
62 <field name="arch" type="xml">
63 <field name="standard_price" position="replace">
64 <label string="Cost Price :" align="1.0"/>
65 <group col="2" colspan="1">
66 <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" nolabel="1"/>
67 <button name="%(action_view_change_standard_price)d" string="Update"
68 type="action" icon="gtk-execute" attrs="{'invisible':[('cost_method','<>','average')]}"/>
74 <record id="view_normal_property_acc_form" model="ir.ui.view">
75 <field name="name">product.normal.stock.acc.property.form.inherit</field>
76 <field name="model">product.product</field>
77 <field name="type">form</field>
78 <field name="inherit_id" ref="product.product_normal_form_view"/>
79 <field name="priority">26</field>
80 <field name="arch" type="xml">
81 <xpath expr="/form/notebook/page/group[@name='properties']" position="before">
82 <group groups="base.group_extended">
83 <separator string="Inventory Valuation" colspan="4"/>
84 <group colspan="2" col="2">
85 <field name="valuation"/>
87 <group colspan="2" col="2">
88 <field name="property_stock_account_input" attrs="{'readonly':[('valuation', '!=', 'real_time')]}"
89 domain="[('type','<>','view'),('type','<>','consolidation')]" groups="base.group_extended"/>
90 <field name="property_stock_account_output" attrs="{'readonly':[('valuation', '!=', 'real_time')]}"
91 domain="[('type','<>','view'),('type','<>','consolidation')]" groups="base.group_extended"/>
99 <record id="view_normal_stock_property_form" model="ir.ui.view">
100 <field name="name">product.normal.stock.form.inherit</field>
101 <field name="model">product.product</field>
102 <field name="type">form</field>
103 <field name="inherit_id" ref="product.product_normal_form_view"/>
104 <field name="arch" type="xml">
105 <group name="status" position="after">
106 <group colspan="2" col="3">
107 <separator string="Stocks" colspan="4"/>
108 <field name="qty_available"/>
109 <button name="%(action_view_change_product_quantity)d" string="Update" attrs="{'invisible': [('type', '=', 'service')]}"
110 type="action" icon="gtk-execute" groups = "stock.group_stock_manager,stock.group_stock_user"/>
112 <field name="virtual_available"/>
114 <group colspan="2" col="2" name="lot" groups="base.group_extended">
115 <separator string="Lots" colspan="4"/>
116 <field name="track_production" />
117 <field name="track_incoming" />
118 <field name="track_outgoing" />
124 <record id="view_normal_property_form" model="ir.ui.view">
125 <field name="name">product.normal.stock.property.form.inherit</field>
126 <field name="model">product.product</field>
127 <field name="type">form</field>
128 <field name="inherit_id" ref="product.product_normal_form_view"/>
129 <field name="arch" type="xml">
130 <group name="store" position="after">
131 <group col="2" colspan="2" name="store" groups="base.group_extended">
132 <separator string="Counter-Part Locations Properties" colspan="2"/>
133 <field name="property_stock_procurement" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','procurement')]"/>
134 <field name="property_stock_production" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','production')]"/>
135 <field name="property_stock_inventory" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','inventory')]"/>
141 <!-- <record id="view_product_valuation_form" model="ir.ui.view">
142 <field name="name">product.valuation.stock.form.inherit</field>
143 <field name="model">product.product</field>
144 <field name="type">form</field>
145 <field name="inherit_id" ref="product.product_normal_form_view"/>
146 <field name="arch" type="xml">
147 <field name="cost_method" position="after">
148 <field name="valuation"/>