| 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='account_vendor_bills']" position="after"> |
| 9 |
<block title="Malaysian Electronic Invoicing" id='malaysian_edi' invisible="country_code != 'MY'"> |
| 10 |
<setting class="col-lg-12" string="MyInvois mode" company_dependent="1"> |
| 11 |
<field name="l10n_my_edi_proxy_user_id" invisible="1"/> |
| 12 |
<div class="content-group"> |
| 13 |
<field name="l10n_my_edi_mode" widget="radio"/> |
| 14 |
</div> |
| 15 |
<div class="mt8 content-group col-9" invisible="l10n_my_edi_mode == 'prod'"> |
| 16 |
<span invisible="l10n_my_edi_mode != 'test'">• In Pre-Production mode Odoo will send the invoices to a non-production service.</span> |
| 17 |
</div> |
| 18 |
<!-- No need to show the button if there is already a user for the selected mode and company. --> |
| 19 |
<div class="mt8 content-group" invisible="not l10n_my_edi_mode or l10n_my_edi_proxy_user_id"> |
| 20 |
<span><field name="l10n_my_accept_processing"/> I accept that Odoo will process my e-invoices.</span> |
| 21 |
<div class="text-muted" invisible="not l10n_my_edi_company_vat"> |
| 22 |
The TIN |
| 23 |
<a name="action_open_company_form" type="object" role="button" class="btn-link"> |
| 24 |
<field name="l10n_my_edi_company_vat" class="oe_inline"/> |
| 25 |
</a> |
| 26 |
will be used when sending e-invoices.<br/> |
| 27 |
</div> |
| 28 |
<button name="action_l10n_my_edi_allow_processing" type="object" string="Register" class="btn btn-secondary mt-1" noSaveDialog="true" invisible="not l10n_my_accept_processing"/> |
| 29 |
</div> |
| 30 |
<div class="mt8 text-success" invisible="not l10n_my_edi_proxy_user_id"> |
| 31 |
<div>The electronic invoicing service is in use.</div> |
| 32 |
<button name="action_l10n_my_edi_unregister" type="object" string="Unregister" class="btn btn-secondary mt-1" noSaveDialog="true"/> |
| 33 |
</div> |
| 34 |
</setting> |
| 35 |
</block> |
| 36 |
</xpath> |
| 37 |
</field> |
| 38 |
</record> |
| 39 |
</odoo> |