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" attrs="{'readonly':[('type', '=', 'service')]}"/>
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 model="ir.ui.view" id="product.product_kanban_view">
125 <field name="name">Product Kanban</field>
126 <field name="model">product.product</field>
127 <field name="type">kanban</field>
128 <field name="arch" type="xml">
129 <kanban default_group_by="type">
131 <t t-name="kanban-box">
132 <t t-set="color" t-value="kanban_color(record.color.raw_value || record.type.raw_value)"/>
133 <div t-att-class="color + (record.color.raw_value == 1 ? ' oe_kanban_color_alert' : '')">
134 <div class="oe_kanban_box oe_kanban_color_border">
135 <table class="oe_kanban_table oe_kanban_box_header oe_kanban_color_bgdark oe_kanban_color_border oe_kanban_draghandle">
137 <td class="oe_kanban_title1" align="left" valign="middle">
138 <t t-if="record.default_code.raw_value">[<field name="default_code"/>]</t>
141 <td align="right" valign="top" width="22">
142 <img t-att-src="kanban_gravatar(record.product_manager.raw_value, 22)" class="oe_kanban_gravatar"/>
146 <div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_box_show_onclick_trigger">
147 <table class="oe_kanban_table">
149 <td valign="top" width="22">
150 <t t-if="record.product_image.raw_value">
151 <img t-att-src="'data:image/png;base64,'+record.product_image.raw_value" width='48' height='48'/>
153 <t t-if="!record.product_image.raw_value">
154 <img src="/web/static/src/img/product_default.png"/>
158 <div class="oe_kanban_title2">
159 <t t-if="record.type.raw_value=='service'">No Stock</t>
160 <t t-if="record.type.raw_value!='service'">
161 <div><field name="qty_available"/> On Hand , <field name="virtual_available"/> Available</div>
162 <div><t t-if="record.list_price.raw_value!=0">Public Price : <field name="lst_price"/> ,</t> Cost : <field name="standard_price"/></div>
169 <div class="oe_kanban_buttons_set oe_kanban_color_border oe_kanban_color_bglight oe_kanban_box_show_onclick">
170 <div class="oe_kanban_left">
171 <a string="Edit" icon="gtk-edit" type="edit"/>
172 <a string="Change Color" icon="color-picker" type="color" name="color"/>
173 <a string="Update Stock" name="%(stock.action_view_change_product_quantity)d" icon="gtk-execute" type="action"/>
175 <br class="oe_kanban_clear"/>
185 <record id="view_normal_property_form" model="ir.ui.view">
186 <field name="name">product.normal.stock.property.form.inherit</field>
187 <field name="model">product.product</field>
188 <field name="type">form</field>
189 <field name="inherit_id" ref="product.product_normal_form_view"/>
190 <field name="arch" type="xml">
191 <group name="store" position="after">
192 <group col="2" colspan="2" name="store" groups="base.group_extended">
193 <separator string="Counter-Part Locations Properties" colspan="2"/>
194 <field name="property_stock_procurement" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','procurement')]"/>
195 <field name="property_stock_production" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','production')]"/>
196 <field name="property_stock_inventory" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','inventory')]"/>
202 <!-- <record id="view_product_valuation_form" model="ir.ui.view">
203 <field name="name">product.valuation.stock.form.inherit</field>
204 <field name="model">product.product</field>
205 <field name="type">form</field>
206 <field name="inherit_id" ref="product.product_normal_form_view"/>
207 <field name="arch" type="xml">
208 <field name="cost_method" position="after">
209 <field name="valuation"/>