Files
Odoo-18.0-20251222/account_manual_currency/views/account_move_view.xml
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

54 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_move_form" model="ir.ui.view">
<field name="name">account.move.form</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<xpath
expr="//group[@id='header_right_group']/div[@name='journal_div']"
position="after"
>
<field name="is_manual" invisible="1" />
<label
for="manual_currency"
groups="base.group_multi_currency"
invisible="not is_manual"
/>
<div groups="base.group_multi_currency" invisible="not is_manual">
<field name="manual_currency" readonly="state != 'draft'" />
<label for="manual_currency_rate" invisible='1' />
<div class="o_row" invisible="not manual_currency">
<field
name="manual_currency_rate"
readonly="state != 'draft'"
/>
<field
name="type_currency"
required="manual_currency"
readonly="state != 'draft'"
/>
<button
aria-label="Opened"
type="object"
name="action_refresh_currency"
class="btn-link"
invisible="state != 'draft'"
>
<i title="Update Currency" class="fa fa-fw fa-refresh" />
</button>
</div>
</div>
</xpath>
<xpath expr="//field[@name='tax_totals']" position="before">
<field name="total_company_currency" invisible="not currency_diff" />
<field name="company_currency_id" invisible="1" />
<field name="currency_diff" invisible="1" />
</xpath>
<xpath expr="//field[@name='invoice_line_ids']/list" position="inside">
<field name="currency_rate" optional="show" />
</xpath>
</field>
</record>
</odoo>