account-closing/account_multicurrency_revaluation/views/res_config_view.xml
2023-05-19 10:19:13 +02:00

183 lines
9.5 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<flectra>
<record id="view_account_config_settings" model="ir.ui.view">
<field name="name">account settings currency revaluation</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="account.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[@id='invoicing_settings']" position="after">
<h2>Multicurrency revaluation</h2>
<div
class="row mt16 o_settings_container"
id="multicurrency_revaluation_settings"
>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="auto_post_entries" />
</div>
<div class="o_setting_right_pane">
<div class="content-group">
<label for="auto_post_entries" />
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
groups="base.group_multi_company"
/>
<div class="text-muted">
If marked, the entries created in the process will be posted automatically.
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="reversable_revaluations" />
</div>
<div class="o_setting_right_pane">
<div class="content-group">
<label for="reversable_revaluations" />
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
groups="base.group_multi_company"
/>
<div class="text-muted">
Revaluations entries will be created as 'To Be Reversed'.
</div>
</div>
</div>
</div>
</div>
<div
class="row mt16 o_settings_container"
id="multicurrency_revaluation_settings"
>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane" />
<div class="o_setting_right_pane">
<b>Default revaluation journal</b>
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
groups="base.group_multi_company"
/>
<div class="text-muted">
Currency gain &amp; loss Default Journal
</div>
<div class="content-group">
<div class="row mt16">
<label
for="default_currency_reval_journal_id"
class="col-md-3 o_light_label"
/>
<field
name="default_currency_reval_journal_id"
options="{'no_create_edit': True, 'no_open': True}"
/>
</div>
</div>
</div>
</div>
<div class="col-xs-24 col-md-12 o_setting_box">
<div class="content-group">
<table>
<tr class="row">
<th class="col-xs-6 col-md-3" />
<th class="col-xs-6 col-md-3">
<b>Loss</b>
</th>
<th class="col-xs-6 col-md-3">
<b>Gain</b>
</th>
<th class="col-xs-6 col-md-3">
<b>Analytic account</b>
</th>
</tr>
<tr class="row">
<th class="col-xs-6 col-md-3">
<b>Revaluation accounts</b>
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
groups="base.group_multi_company"
/>
</th>
<td class="col-xs-6 col-md-3">
<field
name="revaluation_loss_account_id"
nolabel="1"
/>
</td>
<td class="col-xs-6 col-md-3">
<field
name="revaluation_gain_account_id"
nolabel="1"
/>
</td>
<td class="col-xs-6 col-md-3">
<field
name="revaluation_analytic_account_id"
nolabel="1"
/>
</td>
</tr>
<tr class="row">
<th class="col-xs-6 col-md-3">
<b>Provision B.S accounts</b>
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
groups="base.group_multi_company"
/>
</th>
<td class="col-xs-6 col-md-3">
<field
name="provision_bs_loss_account_id"
nolabel="1"
/>
</td>
<td class="col-xs-6 col-md-3">
<field
name="provision_bs_gain_account_id"
nolabel="1"
/>
</td>
<td class="col-xs-6 col-md-3" />
</tr>
<tr class="row">
<th class="col-xs-6 col-md-3">
<b>Provision P&amp;L accounts</b>
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
groups="base.group_multi_company"
/>
</th>
<td class="col-xs-6 col-md-3">
<field
name="provision_pl_loss_account_id"
nolabel="1"
/>
</td>
<td class="col-xs-6 col-md-3">
<field
name="provision_pl_gain_account_id"
nolabel="1"
/>
</td>
<td class="col-xs-6 col-md-3">
<field
name="provision_pl_analytic_account_id"
nolabel="1"
/>
</td>
</tr>
</table>
</div>
</div>
</div>
</xpath>
</field>
</record>
</flectra>