| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<data> |
| 4 |
<record id="res_config_settings_view_form" model="ir.ui.view"> |
| 5 |
<field name="name">res.config.settings.view.form</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="//field[@name='tax_calculation_rounding_method']" position="attributes"> |
| 10 |
<attribute name="readonly" separator="or" add="country_code == 'JO'"/> |
| 11 |
</xpath> |
| 12 |
|
| 13 |
<xpath expr="//block[@id='invoicing_settings']" position="after"> |
| 14 |
<block title="Electronic Invoicing (Jordan)" id="l10n_jo_co_settings" invisible="country_code != 'JO'"> |
| 15 |
<setting string="JoFotara Credentials" help="Configure your Production credentials here"> |
| 16 |
<div class="content-group"> |
| 17 |
<div class="row"> |
| 18 |
<label string="Activity Number" for="l10n_jo_edi_sequence_income_source" class="o_light_label col-lg-4"/> |
| 19 |
<field name="l10n_jo_edi_sequence_income_source"/> |
| 20 |
</div> |
| 21 |
<div class="row"> |
| 22 |
<label string="Secret Key" for="l10n_jo_edi_secret_key" class="col-lg-4 o_light_label"/> |
| 23 |
<field name="l10n_jo_edi_secret_key"/> |
| 24 |
</div> |
| 25 |
<div class="row"> |
| 26 |
<label string="Client ID" for="l10n_jo_edi_client_identifier" class="col-lg-4 o_light_label"/> |
| 27 |
<field name="l10n_jo_edi_client_identifier"/> |
| 28 |
</div> |
| 29 |
<div class="row"> |
| 30 |
<label string="Taxpayer Type" for="l10n_jo_edi_taxpayer_type" class="col-lg-4 o_light_label"/> |
| 31 |
<field name="l10n_jo_edi_taxpayer_type"/> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
</setting> |
| 35 |
<setting |
| 36 |
id="l10n_jo_edi_demo_mode" |
| 37 |
help="Activate this mode to test the electronic invoicing flows with internal validations only" |
| 38 |
groups="base.group_no_one"> |
| 39 |
<field string="Demo Mode" name="l10n_jo_edi_demo_mode"/> |
| 40 |
</setting> |
| 41 |
</block> |
| 42 |
</xpath> |
| 43 |
</field> |
| 44 |
</record> |
| 45 |
</data> |
| 46 |
</odoo> |