1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="view_category_property_form" model="ir.ui.view">
6 <field name="name">product.category.stock.property.form.inherit</field>
7 <field name="model">product.category</field>
8 <field name="inherit_id" ref="account.view_category_property_form"/>
9 <field name="arch" type="xml">
11 <group name="account_property" position="after">
12 <group name="account_stock_property" string="Account Stock Properties" colspan="2">
13 <field name="property_stock_account_input_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
14 <field name="property_stock_account_output_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
15 <field name="property_stock_valuation_account_id" domain="[('type','<>','view'), ('type','<>','consolidation')]"/>
16 <field name="property_stock_journal"/>
23 <record id="view_template_property_form" model="ir.ui.view">
24 <field name="name">product.template.stock.property.form.inherit</field>
25 <field name="model">product.template</field>
26 <field name="inherit_id" ref="product.product_template_form_view"/>
27 <field name="arch" type="xml">
28 <xpath expr="//group[@name='weight']" position="after">
29 <group string="Accounting Entries">
30 <field name="property_stock_account_input" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
31 <field name="property_stock_account_output" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
37 <record id="view_product_standard_price_form" model="ir.ui.view">
38 <field name="name">product.product.standard.price.form.inherit</field>
39 <field name="model">product.product</field>
40 <field name="inherit_id" ref="product.product_normal_form_view"/>
41 <field name="arch" type="xml">
42 <field name="standard_price" position="replace">
43 <field name="cost_method" groups="stock_account.group_inventory_valuation"/>
44 <label string="Cost Price" for="standard_price" align="1.0" groups="base.group_user"/>
45 <div groups="base.group_user">
46 <field name="standard_price" attrs="{'readonly':['&', ('valuation','=','real_time'), ('cost_method', 'in', ['standard', 'average'])]}" nolabel="1"/>
47 <button name="%(action_view_change_standard_price)d" string="- update"
48 type="action" attrs="{'invisible':['|', ('valuation','!=', 'real_time'), ('cost_method', 'not in', ['standard', 'average'])]}"
49 class="oe_link" groups="stock_account.group_inventory_valuation"/>
55 <record id="view_normal_property_acc_form" model="ir.ui.view">
56 <field name="name">product.normal.stock.acc.property.form.inherit</field>
57 <field name="model">product.product</field>
58 <field name="inherit_id" ref="product.product_normal_form_view"/>
59 <field name="priority">26</field>
60 <field name="arch" type="xml">
61 <xpath expr="//group[@name='properties']" position="before">
62 <group groups="stock_account.group_inventory_valuation">
63 <separator string="Inventory Valuation" colspan="4"/>
64 <group colspan="2" col="2">
65 <field name="valuation" attrs="{'readonly':[('type', '=', 'service')]}"/>
67 <group colspan="2" col="2">
68 <field name="property_stock_account_input" attrs="{'invisible':[('valuation', '!=', 'real_time')]}"
69 domain="[('type','<>','view'),('type','<>','consolidation')]"/>
70 <field name="property_stock_account_output" attrs="{'invisible':[('valuation', '!=', 'real_time')]}"
71 domain="[('type','<>','view'),('type','<>','consolidation')]"/>