65 lines
4.2 KiB
XML
65 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record model="ir.ui.view" id="res_config_settings_view_form_inherit_l10n_uy_edi">
|
|
<field name="name">res.config.settings.view.form.inherit.l10n_uy_dgi</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//app[@name='account']/block" position="after">
|
|
<block title="Uruguay Localization" id="uy_localization" invisible="country_code != 'UY'">
|
|
|
|
<setting id="uy_env" string="UCFE Web Services" company_dependent="1">
|
|
<div class="content-group">
|
|
<field name="l10n_uy_edi_ucfe_env" class="col-lg-3 o_light_label" widget="radio"/>
|
|
</div>
|
|
</setting>
|
|
|
|
<setting id="uy_ucfe" string="Electronic Invoicing Provider (UCFE) Credentials" company_dependent="1" invisible="l10n_uy_edi_ucfe_env not in ['testing', 'production']">
|
|
|
|
<div class="text-muted" invisible="l10n_uy_edi_ucfe_password">
|
|
<span>To create your account, ensure you have a valid subscription. Click "Create UCFE Provider Account", configure it directly in UCFE Provider's portal, get the WS password, Commerce Code, and Terminal Code from them, and enter these parameters here. Test your connection. Note: Only one test and production environment are allowed per subscription</span>
|
|
</div>
|
|
|
|
<div class="mt16" invisible="l10n_uy_edi_ucfe_password">
|
|
<button name="l10n_uy_edi_action_create_uruware_account"
|
|
icon="oi-arrow-right"
|
|
type="object"
|
|
class="oe_link oe_inline"
|
|
string="Create UCFE Provider Test Account"
|
|
invisible="l10n_uy_edi_ucfe_env != 'testing'"
|
|
confirm="Your login email will be used as the contact that UCFE Provider will send the credentials to. Make sure it is correct. This process will take around 24 to 48 hours."/>
|
|
<button name="l10n_uy_edi_action_create_uruware_account"
|
|
icon="oi-arrow-right"
|
|
type="object"
|
|
class="oe_link oe_inline"
|
|
string="Create UCFE Provider Account"
|
|
invisible="l10n_uy_edi_ucfe_env != 'production'"
|
|
confirm="Do you want to create an account? Please check first if you already have one. This step is irreversible. Your login credentials will be sent to the email associated with your Odoo subscription account. This process will take around 24 to 48 hours."/>
|
|
</div>
|
|
|
|
<div class="row mt16">
|
|
<label for="l10n_uy_edi_ucfe_password" string="UCFE Provider WS Password" class="col-lg-3 o_light_label" />
|
|
<field name="l10n_uy_edi_ucfe_password" password="True"/>
|
|
</div>
|
|
<div class="row mt16">
|
|
<label for="l10n_uy_edi_ucfe_commerce_code" string="Commerce Code" class="col-lg-3 o_light_label" />
|
|
<field name="l10n_uy_edi_ucfe_commerce_code"/>
|
|
</div>
|
|
<div class="row mt16">
|
|
<label for="l10n_uy_edi_ucfe_terminal_code" string="Terminal Code" class="col-lg-3 o_light_label" />
|
|
<field name="l10n_uy_edi_ucfe_terminal_code"/>
|
|
</div>
|
|
<div class="mt16">
|
|
<button name="l10n_uy_edi_action_check_credentials" icon="oi-arrow-right" type="object" class="oe_link oe_inline" string="Check Credentials" invisible="l10n_uy_edi_ucfe_env not in ['production', 'testing']"/>
|
|
</div>
|
|
</setting>
|
|
|
|
</block>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|