| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="res_config_settings_view_form" model="ir.ui.view"> |
| 5 |
<field name="name">res.config.settings.view.form.inherit.l10n.tr.nilvera</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="//block[@id='peppol']" position="after"> |
| 10 |
<block title="Türkiye Electronic Integrations" id="l10n_tr_nilvera_settings" invisible="country_code != 'TR'"> |
| 11 |
<div class="col-12 col-lg-12 o_setting_box"> |
| 12 |
<div class="o_setting_right_pane border-0"> |
| 13 |
<div class="mb-2"> |
| 14 |
<span class="o_form_label"> |
| 15 |
Nilvera Details |
| 16 |
</span> |
| 17 |
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific."/> |
| 18 |
</div> |
| 19 |
<div class="text-muted oe_inline mb-3"> |
| 20 |
<div> |
| 21 |
You are sending and receiving e-documents using the following Tax ID: |
| 22 |
<strong><field class="d-inline" name="l10n_tr_nilvera_vat" nolabel="1"/></strong> |
| 23 |
</div> |
| 24 |
<div class="mb-1"> |
| 25 |
<div> |
| 26 |
Configure your Nilvera integration settings below to securely send and |
| 27 |
receive e-documents directly within Odoo. |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
<ul> |
| 31 |
<li>API Key: Your Nilvera API key for authenticating with the platform.</li> |
| 32 |
<li>Incoming Invoices Journal: Incoming documents will be auto-recorded as journal entries</li> |
| 33 |
<li>Nilvera Portal: Link to the Nilvera dashboard.</li> |
| 34 |
<li>Test Connection: Validates the API connection to Nilvera with the provided credentials.</li> |
| 35 |
<li>Test Environment: Enable to test the integration in sandbox</li> |
| 36 |
</ul> |
| 37 |
</div> |
| 38 |
<div class="row"> |
| 39 |
<label string="API Key" for="l10n_tr_nilvera_api_key" class="col-lg-3 o_light_label" /> |
| 40 |
<field name="l10n_tr_nilvera_api_key"/> |
| 41 |
</div> |
| 42 |
<div class="row"> |
| 43 |
<label string="Incoming Invoices Journal" for="l10n_tr_nilvera_purchase_journal_id" |
| 44 |
class="col-lg-3 o_light_label"/> |
| 45 |
<field name="l10n_tr_nilvera_purchase_journal_id"/> |
| 46 |
</div> |
| 47 |
<div class="mt16" invisible="not l10n_tr_nilvera_api_key"> |
| 48 |
<a href="https://portal.nilvera.com/" target="_new" invisible="l10n_tr_nilvera_use_test_env"> |
| 49 |
<i title="Go to Nilvera portal" role="img" aria-label="Go to Nilvera portal" |
| 50 |
class="fa fa-external-link-square fa-fw"/> |
| 51 |
Nilvera portal |
| 52 |
</a> |
| 53 |
<a href="https://portaltest.nilvera.com/" target="_new" invisible="not l10n_tr_nilvera_use_test_env"> |
| 54 |
<i title="Go to Nilvera portal" role="img" aria-label="Go to Nilvera portal" |
| 55 |
class="fa fa-external-link-square fa-fw"/> |
| 56 |
Nilvera portal (Test) |
| 57 |
</a> |
| 58 |
<button name="nilvera_ping" type="object" class="btn-link"> |
| 59 |
<i title="Test connection" role="img" aria-label="Test connection" class="fa fa-plug fa-fw"/> |
| 60 |
Test connection |
| 61 |
</button> |
| 62 |
</div> |
| 63 |
<setting id="l10n_tr_nilvera_use_test_env" class="mt-3" |
| 64 |
help="Activate to send e-documents to sandbox"> |
| 65 |
<field name="l10n_tr_nilvera_use_test_env"/> |
| 66 |
</setting> |
| 67 |
</div> |
| 68 |
</div> |
| 69 |
</block> |
| 70 |
</xpath> |
| 71 |
</field> |
| 72 |
</record> |
| 73 |
|
| 74 |
</odoo> |