1
<?xml version="1.0" encoding="utf-8"?>
8
<record id="inherit_currency_view_move_form_2" model="ir.ui.view">
9
<field name="name">account.move.form.2</field>
10
<field name="model">account.move</field>
11
<field name="type">form</field>
12
<field name="priority" eval="24" />
13
<field name="inherit_id" ref="account.view_move_form"/>
14
<field name="arch" type="xml">
16
<xpath expr="/form//field[@name='ref']" position="after">
17
<field name="block_manual_currency_id" invisible="1"/>
18
<group colspan="2" col="2">
19
<field name="manual_currency_id" attrs="{'required': [('status', '=', 'manu')], 'readonly': ['|', '|', ('status', '=', 'sys'), ('block_manual_currency_id', '=', True), ('state', '=', 'posted')], 'invisible': [('status', '=', 'sys')]}"/>
20
<field name="currency_id" readonly="True" attrs="{'invisible': [('status', '=', 'manu')]}"/>
23
<xpath expr="/form/notebook/page/field[@name='line_id']/tree/field[@name='currency_id']" position="attributes">
24
<attribute name="readonly">1</attribute>