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