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 <group name="sale_condition" position="inside">
29 <field name="sale_delay" attrs="{'readonly':[('sale_ok','=',False)]}"/>
31 <group name="procurement_uom" position="after">
32 <group name="store" string="Storage Location">
33 <field name="loc_rack"/>
34 <field name="loc_row"/>
35 <field name="loc_case"/>
38 <xpath expr="//group[@name='weight']" position="after">
39 <group string="Accounting Entries">
40 <field name="property_stock_account_input" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
41 <field name="property_stock_account_output" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
44 <xpath expr="//field[@name='standard_price']" position='replace'>
45 <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"/>
46 <field name="cost_method" groups="product.group_costing_method"/>
51 <record id="view_product_standard_price_form" model="ir.ui.view">
52 <field name="name">product.product.standard.price.form.inherit</field>
53 <field name="model">product.product</field>
54 <field name="inherit_id" ref="product.product_normal_form_view"/>
55 <field name="arch" type="xml">
56 <field name="standard_price" position="replace" version="7.0">
57 <field name="cost_method" groups="product.group_costing_method" attrs="{'readonly': [('is_only_child', '=', False)]}"/>
58 <label string="Cost Price" for="standard_price" align="1.0" groups="base.group_user"/>
59 <div groups="base.group_user">
60 <field name="standard_price" attrs="{'readonly':['|', ('is_only_child', '=', False), '&', ('valuation','=','real_time'), ('cost_method', 'in', ['standard', 'average'])]}" nolabel="1"/>
61 <button name="%(action_view_change_standard_price)d" string="- update"
62 type="action" attrs="{'invisible':['|', |', ('is_only_child', '=', False), ('valuation','!=', 'real_time'), ('cost_method', 'not in', ['standard', 'average'])]}"
63 class="oe_link" groups="product.group_costing_method"/>
69 <record id="view_normal_property_acc_form" model="ir.ui.view">
70 <field name="name">product.normal.stock.acc.property.form.inherit</field>
71 <field name="model">product.product</field>
72 <field name="inherit_id" ref="product.product_normal_form_view"/>
73 <field name="priority">26</field>
74 <field name="arch" type="xml">
75 <xpath expr="//group[@name='properties']" position="before">
77 <separator string="Inventory Valuation" colspan="4"/>
78 <group colspan="2" col="2">
79 <field name="valuation" attrs="{'readonly':[('type', '=', 'service')]}"/>
81 <group colspan="2" col="2">
82 <field name="property_stock_account_input" attrs="{'invisible':[('valuation', '!=', 'real_time')]}"
83 domain="[('type','<>','view'),('type','<>','consolidation')]"/>
84 <field name="property_stock_account_output" attrs="{'invisible':[('valuation', '!=', 'real_time')]}"
85 domain="[('type','<>','view'),('type','<>','consolidation')]"/>