| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="res_config_settings_view_form" model="ir.ui.view"> |
| 4 |
<field name="name">res.config.settings.view.form.inherit.proxy.user</field> |
| 5 |
<field name="model">res.config.settings</field> |
| 6 |
<field name="inherit_id" ref="account.res_config_settings_view_form"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//block[@id='peppol']" position="after"> |
| 9 |
<block title="Nemhandel E-Delivery" id="nemhandel" invisible="country_code != 'DK'"> |
| 10 |
<div id="l10n_dk_nemhandel" class="col-12 o_setting_box"> |
| 11 |
<div class="o_setting_right_pane border-0"> |
| 12 |
|
| 13 |
<div invisible="l10n_dk_nemhandel_proxy_state != 'receiver'"> |
| 14 |
You are sending and receiving your e-invoices via Odoo with this Nemhandel ID <field name="nemhandel_edi_identification" class="oe_inline o_form_label" readonly="1"/>. |
| 15 |
</div> |
| 16 |
<div invisible="l10n_dk_nemhandel_proxy_state != 'receiver'" class="mt-4"> |
| 17 |
<div class="row" name="nemhandel_journal_config"> |
| 18 |
<label string="Incoming Invoices Journal" |
| 19 |
for="nemhandel_purchase_journal_id" |
| 20 |
class="col-lg-3"/> |
| 21 |
<field name="nemhandel_purchase_journal_id" |
| 22 |
required="l10n_dk_nemhandel_proxy_state == 'receiver'"/> |
| 23 |
</div> |
| 24 |
<div class="row" name="nemhandel_contact_email"> |
| 25 |
<label string="Contact Email" |
| 26 |
for="nemhandel_contact_email" |
| 27 |
class="col-lg-3"/> |
| 28 |
<field name="nemhandel_contact_email" |
| 29 |
required="l10n_dk_nemhandel_proxy_state == 'receiver'"/> |
| 30 |
</div> |
| 31 |
</div> |
| 32 |
|
| 33 |
<!-- Info in case of rejected. --> |
| 34 |
<div invisible="l10n_dk_nemhandel_proxy_state != 'rejected'"> |
| 35 |
You registration has been rejected, the reason has been sent to you via email. |
| 36 |
Please contact our support if you need further assistance. |
| 37 |
</div> |
| 38 |
|
| 39 |
<div class="d-flex gap-1 action_buttons mt-2" |
| 40 |
invisible="l10n_dk_nemhandel_proxy_state != 'receiver'"> |
| 41 |
<button name="button_update_nemhandel_user_data" |
| 42 |
type="object" |
| 43 |
class="btn btn-primary me-1" |
| 44 |
string="Update contact details"/> |
| 45 |
<button name="button_deregister_nemhandel_participant" |
| 46 |
type="object" |
| 47 |
string="Deregister" |
| 48 |
confirm="This will delete your Nemhandel registration." |
| 49 |
class="btn btn-secondary me-1"/> |
| 50 |
</div> |
| 51 |
|
| 52 |
<div class="d-flex gap-1 action_buttons" colspan="3"> |
| 53 |
<!-- Not yet registered on Nemhandel --> |
| 54 |
<div invisible="l10n_dk_nemhandel_proxy_state not in ('not_registered', 'in_verification')"> |
| 55 |
<div class="text-muted"> |
| 56 |
Allow sending and receiving invoices through the Nemhandel network |
| 57 |
</div> |
| 58 |
<button name="action_open_nemhandel_form" |
| 59 |
type="object" |
| 60 |
string="Start sending via Nemhandel" |
| 61 |
class="oe_highlight mt-2"/> |
| 62 |
</div> |
| 63 |
</div> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
</block> |
| 67 |
</xpath> |
| 68 |
</field> |
| 69 |
</record> |
| 70 |
</odoo> |