~unifield-team/unifield-wm/us-903

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
                    <separator string="Amount &amp; Currency" colspan="4"/>
                    <group col="8" colspan="4">
                        <field name="currency_choice" on_change="onchange_currency_choice(currency_choice, functional_currency_id, amount_from, amount_to)"/>
                        <field name="currency_id" attrs="{'readonly': [('currency_choice', '=', 'functional')]}" widget="selection" on_change="onchange_currency(currency_choice, currency_id)" domain="[('currency_table_id', '=', False)]"/>
                        <field name="fx_table_id" on_change="onchange_fx_table(fx_table_id)"/>
                        <field name="display_in_output_currency" domain="[('active', 'in', ['True', 'False']), ('currency_table_id', '=', fx_table_id)]"/>
                        <field name="amount_from" string="Amount from" on_change="onchange_amount(currency_choice, amount_from, 'from')"/>
                        <field name="amount_to" string="to" on_change="onchange_amount(currency_choice, amount_to, 'to')"/>
                    </group>
                    <group col="8" colspan="4">
                        <field name="functional_currency_id" invisible="1"/>
                        <field name="amount_func_from" string="Amount" invisible="1"/>
                        <field name="amount_func_to" string="to" invisible="1"/>
                        <field name="booking_currency_id" widget="selection" invisible="1"/>
                        <field name="amount_book_from" string="Amount" invisible="1"/>
                        <field name="amount_book_to" string="to" invisible="1"/>
                    </group>