From ba63c09622cc8e4aa16e1ca6b9b5c6af6f0ef135 Mon Sep 17 00:00:00 2001 From: "Maximilien (malb)" Date: Wed, 6 Sep 2023 11:51:33 +0200 Subject: [PATCH] [IMP] l10n_ar: UI clean up This commit aims at changing some tooltip, labels and changing the place of some fields. Also adding some invisible tags to avoid the fields to be displayed on other companies task: 3270458 Part-of: odoo/odoo#134617 --- addons/l10n_ar/models/account_journal.py | 9 +++++++-- addons/l10n_ar/models/res_partner.py | 2 +- addons/l10n_ar/models/uom_uom.py | 2 +- addons/l10n_ar/views/account_move_view.xml | 14 ++++++-------- addons/l10n_ar/views/res_partner_view.xml | 11 +++++++---- addons/l10n_ar/views/uom_uom_view.xml | 4 ++-- 6 files changed, 24 insertions(+), 18 deletions(-) diff --git a/addons/l10n_ar/models/account_journal.py b/addons/l10n_ar/models/account_journal.py index e15eab7b0ff..bb7e8f0dd66 100644 --- a/addons/l10n_ar/models/account_journal.py +++ b/addons/l10n_ar/models/account_journal.py @@ -10,7 +10,9 @@ class AccountJournal(models.Model): l10n_ar_afip_pos_system = fields.Selection( selection='_get_l10n_ar_afip_pos_types_selection', string='AFIP POS System', - compute='_compute_l10n_ar_afip_pos_system', store=True, readonly=False) + compute='_compute_l10n_ar_afip_pos_system', store=True, readonly=False, + help="Argentina: Specify which type of system will be used to create the electronic invoice. This will depend on the type of invoice to be created.", + ) l10n_ar_afip_pos_number = fields.Integer( 'AFIP POS Number', help='This is the point of sale number assigned by AFIP in order to generate invoices') company_partner = fields.Many2one('res.partner', related='company_id.partner_id') @@ -19,7 +21,10 @@ class AccountJournal(models.Model): domain="['|', ('id', '=', company_partner), '&', ('id', 'child_of', company_partner), ('type', '!=', 'contact')]" ) l10n_ar_is_pos = fields.Boolean( - compute="_compute_l10n_ar_is_pos", store=True, readonly=False, string="Is AFIP POS?") + compute="_compute_l10n_ar_is_pos", store=True, readonly=False, + string="Is AFIP POS?", + help="Argentina: Specify if this Journal will be used to send electronic invoices to AFIP.", + ) @api.depends('country_code', 'type', 'l10n_latam_use_documents') def _compute_l10n_ar_is_pos(self): diff --git a/addons/l10n_ar/models/res_partner.py b/addons/l10n_ar/models/res_partner.py index 914ef74c15e..b734d77c761 100644 --- a/addons/l10n_ar/models/res_partner.py +++ b/addons/l10n_ar/models/res_partner.py @@ -22,7 +22,7 @@ class ResPartner(models.Model): l10n_ar_gross_income_number = fields.Char('Gross Income Number') l10n_ar_gross_income_type = fields.Selection( [('multilateral', 'Multilateral'), ('local', 'Local'), ('exempt', 'Exempt')], - 'Gross Income Type', help='Type of gross income: exempt, local, multilateral') + 'Gross Income Type', help='Argentina: Type of gross income: exempt, local, multilateral.') l10n_ar_afip_responsibility_type_id = fields.Many2one( 'l10n_ar.afip.responsibility.type', string='AFIP Responsibility Type', index='btree_not_null', help='Defined by AFIP to' ' identify the type of responsibilities that a person or a legal entity could have and that impacts in the' diff --git a/addons/l10n_ar/models/uom_uom.py b/addons/l10n_ar/models/uom_uom.py index 6b865563736..0bc0f9d98c9 100644 --- a/addons/l10n_ar/models/uom_uom.py +++ b/addons/l10n_ar/models/uom_uom.py @@ -6,4 +6,4 @@ class Uom(models.Model): _inherit = 'uom.uom' - l10n_ar_afip_code = fields.Char('AFIP Code', help='This code will be used on electronic invoice') + l10n_ar_afip_code = fields.Char('Code', help='Argentina: This code will be used on electronic invoice.') diff --git a/addons/l10n_ar/views/account_move_view.xml b/addons/l10n_ar/views/account_move_view.xml index 9b813ebe8a6..e75704d8cb1 100644 --- a/addons/l10n_ar/views/account_move_view.xml +++ b/addons/l10n_ar/views/account_move_view.xml @@ -21,14 +21,12 @@ account.move - - - - + + + diff --git a/addons/l10n_ar/views/res_partner_view.xml b/addons/l10n_ar/views/res_partner_view.xml index 72643513872..6f362741933 100644 --- a/addons/l10n_ar/views/res_partner_view.xml +++ b/addons/l10n_ar/views/res_partner_view.xml @@ -7,7 +7,10 @@ - + @@ -25,8 +28,8 @@ -