From cc1ede9868cce3bb9d0f71219f631493dcc68c64 Mon Sep 17 00:00:00 2001 From: "Maximilien (malb)" Date: Wed, 6 Sep 2023 11:51:22 +0200 Subject: [PATCH] [IMP] l10n_ec: UI clean up This commit aims at changing some tooltip to help the users Task: 3270458 Part-of: odoo/odoo#134617 --- addons/l10n_ec/models/account_journal.py | 14 ++++++++++++-- addons/l10n_ec/models/account_move.py | 1 + addons/l10n_ec/models/account_tax.py | 6 +++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/addons/l10n_ec/models/account_journal.py b/addons/l10n_ec/models/account_journal.py index 525f9e07c52..4d42fa67685 100644 --- a/addons/l10n_ec/models/account_journal.py +++ b/addons/l10n_ec/models/account_journal.py @@ -9,12 +9,22 @@ class AccountJournal(models.Model): compute='_compute_l10n_ec_require_emission', help='True if an entity and emission point must be set on the journal' ) - l10n_ec_entity = fields.Char(string="Emission Entity", size=3, copy=False) - l10n_ec_emission = fields.Char(string="Emission Point", size=3, copy=False) + l10n_ec_entity = fields.Char( + string="Emission Entity", + size=3, + copy=False, + help="Ecuador: Emission entity number that is given by the SRI." + ) + l10n_ec_emission = fields.Char( + string="Emission Point", + size=3, copy=False, + help="Ecuador: Emission point number that is given by the SRI." + ) l10n_ec_emission_address_id = fields.Many2one( comodel_name="res.partner", string="Emission address", domain="['|', ('id', '=', company_partner_id), '&', ('id', 'child_of', company_partner_id), ('type', '!=', 'contact')]", + help="Ecuador: Address for electronic invoicing.", ) @api.depends('type', 'country_code', 'l10n_latam_use_documents') diff --git a/addons/l10n_ec/models/account_move.py b/addons/l10n_ec/models/account_move.py index e8e3e1322a4..e995cc78926 100644 --- a/addons/l10n_ec/models/account_move.py +++ b/addons/l10n_ec/models/account_move.py @@ -133,6 +133,7 @@ class AccountMove(models.Model): l10n_ec_sri_payment_id = fields.Many2one( comodel_name="l10n_ec.sri.payment", string="Payment Method (SRI)", + help="Ecuador: Payment Methods Defined by the SRI.", ) @api.model diff --git a/addons/l10n_ec/models/account_tax.py b/addons/l10n_ec/models/account_tax.py index 3084d4277ad..1144e94917b 100644 --- a/addons/l10n_ec/models/account_tax.py +++ b/addons/l10n_ec/models/account_tax.py @@ -10,13 +10,13 @@ class AccountTax(models.Model): l10n_ec_code_base = fields.Char( string="Code base", - help="Tax declaration code of the base amount prior to the calculation of the tax", + help="Ecuador: Tax declaration code of the base amount prior to the calculation of the tax.", ) l10n_ec_code_applied = fields.Char( string="Code applied", - help="Tax declaration code of the resulting amount after the calculation of the tax", + help="Ecuador: Tax declaration code of the resulting amount after the calculation of the tax.", ) l10n_ec_code_ats = fields.Char( string="Code ATS", - help="Tax Identification Code for the Simplified Transactional Annex", + help="Ecuador: Indicates if the purchase invoice supports tax credit or cost or expenses, conforming table 5 of ATS.", )