| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record model="ir.ui.view" id="res_config_settings_view_form"> |
| 5 |
<field name="name">res.config.settings.view.form.inherit.l10n_sa_edi</field> |
| 6 |
<field name="model">res.config.settings</field> |
| 7 |
<field name="inherit_id" ref="account.res_config_settings_view_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//app[@name='account']/block" position="after"> |
| 10 |
<field name="country_code" invisible="1"/> |
| 11 |
<block title="Saudi Arabia Electronic Invoicing" name="zatca_einvoicing_setting_container" invisible="country_code != 'SA'"> |
| 12 |
<setting class="col-lg-12" string="ZATCA API Modes" company_dependent="1"> |
| 13 |
<div class="text-muted"> |
| 14 |
<div>1. There are three modes available:</div> |
| 15 |
<ul class="mb8"> |
| 16 |
<li><span class="o_form_label">Sandbox</span> - Common pre-configured testing environment</li> |
| 17 |
<li><span class="o_form_label">Simulation</span> - Unique testing environment</li> |
| 18 |
<li><span class="o_form_label">Production</span> - Live environment</li> |
| 19 |
</ul> |
| 20 |
<div>2. After selecting the mode, please go to <span class="o_form_label">Journals > Sales Type > ZATCA Tab > Onboard.</span></div> |
| 21 |
<div>3. Once the Journal is onboarded, you can begin using the selected mode.</div> |
| 22 |
</div> |
| 23 |
<div class="content-group col-lg-6"> |
| 24 |
<div class="row mt16"> |
| 25 |
<label for="l10n_sa_api_mode" string="API Mode" class="col-3 o_light_label"/> |
| 26 |
<field name="l10n_sa_api_mode" help="Set whether the system should use the Production API"/> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
<div class="alert alert-warning mt8 col-lg-6" role="alert" invisible="l10n_sa_api_mode != 'prod'"> |
| 30 |
<h4 class="alert-heading" role="alert"> |
| 31 |
<i class="fa fa-warning me-2" /> Warning |
| 32 |
</h4> |
| 33 |
Once the mode is set to <strong>Production</strong> and an Invoice has been submitted to ZATCA, |
| 34 |
then the API mode cannot be changed. Any invoice submitted in the Production mode will be officially |
| 35 |
recorded with ZATCA and considered in the calculation of the VAT Liability. |
| 36 |
</div> |
| 37 |
</setting> |
| 38 |
</block> |
| 39 |
</xpath> |
| 40 |
</field> |
| 41 |
</record> |
| 42 |
|
| 43 |
</odoo> |