1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/l10n_uy_edi/views/res_config_settings_view.xml
2024-12-10 09:04:09 +07:00

52 lines
3.3 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="Uruware 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 Uruware Account", configure it directly in Uruware'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 Uruware Account" invisible="l10n_uy_edi_ucfe_env not in ['production', 'testing']" 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."/>
</div>
<div class="row mt16">
<label for="l10n_uy_edi_ucfe_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>