forked from OCA/l10n-spain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
account_asset_view.xml
55 lines (52 loc) · 2.92 KB
/
account_asset_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<openerp>
<data>
<record model="ir.ui.view" id="view_account_asset_category_form_l10n_es">
<field name="name">account.asset.category.form.l10n_es</field>
<field name="model">account.asset.category</field>
<field name="inherit_id" ref="account_asset.view_account_asset_category_form"/>
<field name="arch" type="xml">
<field name="method_time" position="attributes">
<attribute name="attrs">{'invisible': True}</attribute>
</field>
<field name="method_time" position="after">
<field name="ext_method_time" on_change="onchange_ext_method_time(ext_method_time)"/>
<field name="method_percentage" attrs="{'invisible':[('ext_method_time','!=','percentage')], 'required':[('ext_method_time','=','percentage')]}"/>
</field>
<field name="method_number" position="attributes">
<attribute name="attrs">{'invisible':[('ext_method_time','!=','number')], 'required':[('ext_method_time','=','number')]}</attribute>
</field>
<field name="method_end" position="attributes">
<attribute name="attrs">{'invisible':[('ext_method_time','!=','end')], 'required':[('ext_method_time','=','end')]}</attribute>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_account_asset_asset_form_l10n_es">
<field name="name">account.asset.asset.form.l10n_es</field>
<field name="model">account.asset.asset</field>
<field name="inherit_id" ref="account_asset.view_account_asset_asset_form"/>
<field name="arch" type="xml">
<label for="method_time" position="replace">
<label for="ext_method_time"/>
</label>
<field name="method_time" position="attributes">
<attribute name="attrs">{'invisible': True}</attribute>
</field>
<field name="method_time" position="after">
<field name="ext_method_time" on_change="onchange_ext_method_time(ext_method_time)"/>
</field>
<field name="method_number" position="after">
<field name="method_percentage" attrs="{'invisible':[('ext_method_time','!=','percentage')], 'required':[('ext_method_time','=','percentage')]}"/>
</field>
<field name="method_number" position="attributes">
<attribute name="attrs">{'invisible':[('ext_method_time','!=','number')], 'required':[('ext_method_time','=','number')]}</attribute>
</field>
<field name="method_end" position="attributes">
<attribute name="attrs">{'invisible':[('ext_method_time','!=','end')], 'required':[('ext_method_time','=','end')]}</attribute>
</field>
<field name="prorata" position="after">
<field name="move_end_period"/>
</field>
</field>
</record>
</data>
</openerp>