Debian Codegraph @

addons/stock_account/views/stock_location_views.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <data>
4 <record id="view_location_form_inherit" model="ir.ui.view">
5 <field name="name">stock.location.form.inherit</field>
6 <field name="model">stock.location</field>
7 <field name="inherit_id" ref="stock.view_location_form"/>
8 <field name="arch" type="xml">
9 <xpath expr="//group[@name='additional_info']" position="after">
10 <div>
11 <group string="Accounting Information" invisible="usage not in ('inventory', 'production')">
12 <label for="valuation_account_id" string="Cost of Production" invisible="usage != 'production'"/>
13 <label for="valuation_account_id" string="Loss Account" invisible="usage != 'inventory'"/>
14 <field name="valuation_account_id" nolabel="1" options="{'no_create': True}"/>
15 </group>
16 </div>
17 </xpath>
18 </field>
19 </record>
20 </data>
21 </odoo>