From 4a748678ee15841f3d1ee3f3dbc2f7b4fd68d978 Mon Sep 17 00:00:00 2001 From: Alejandro Capellan Date: Tue, 21 Nov 2023 20:44:30 -0400 Subject: [PATCH] [IMP] Performing the division of the l10n_do_accounting_plus module --- .idea/workspace.xml | 19 ++++++- l10n_do_accounting/__manifest__.py | 2 - .../models/res_config_settings.py | 35 ------------ .../views/account_fiscal_sequence.xml | 53 ------------------- .../views/account_journal_views.xml | 8 --- .../views/res_company_views.xml | 1 - .../views/res_config_settings_view.xml | 49 +---------------- 7 files changed, 19 insertions(+), 148 deletions(-) delete mode 100644 l10n_do_accounting/models/res_config_settings.py delete mode 100644 l10n_do_accounting/views/account_fiscal_sequence.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b2f94cccc..2318db402 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,6 +3,12 @@ + + + + + + @@ -122,4 +135,8 @@ + + + \ No newline at end of file diff --git a/l10n_do_accounting/__manifest__.py b/l10n_do_accounting/__manifest__.py index 7f5f96b22..b75c26b6c 100644 --- a/l10n_do_accounting/__manifest__.py +++ b/l10n_do_accounting/__manifest__.py @@ -16,11 +16,9 @@ "security/ir.model.access.csv", "security/res_groups.xml", "data/l10n_latam.document.type.csv", - "data/ir_config_parameter_data.xml", "wizard/account_move_reversal_views.xml", "wizard/account_move_cancel_views.xml", "wizard/account_debit_note_views.xml", - "views/account_fiscal_sequence.xml", "views/res_config_settings_view.xml", "views/account_move_views.xml", "views/res_partner_views.xml", diff --git a/l10n_do_accounting/models/res_config_settings.py b/l10n_do_accounting/models/res_config_settings.py deleted file mode 100644 index f907bb00c..000000000 --- a/l10n_do_accounting/models/res_config_settings.py +++ /dev/null @@ -1,35 +0,0 @@ -from odoo import fields, models, api - - -class ResConfigSettings(models.TransientModel): - _inherit = ['res.config.settings'] - - date_equal_to_invoice_retention = fields.Boolean( - string='Date Retention Equal to Date Invoice', - related='company_id.date_equal_to_invoice_retention', - readonly=False) - - l10n_do_fiscal_sequence_control = fields.Boolean( - string='Activate Fiscal Sequence Control', - related='company_id.l10n_do_fiscal_sequence_control', - required=False) - - view_discount_in_account = fields.Boolean( - string='Visualizar descuentos', - config_parameter='l10n_dominicana.view_discount_in_account', - required=False) - - view_delivered_received = fields.Boolean( - string='Delivered/Received', - config_parameter='l10n_do_accounting.view_delivered_received', - required=False) - - label_one_report = fields.Char( - string='Show name in report label left', - config_parameter='l10n_do_accounting.label_one_report', - required=False) - - label_one_report_2 = fields.Char( - string='Show name in report label right', - config_parameter='l10n_do_accounting.label_one_report_2', - required=False) diff --git a/l10n_do_accounting/views/account_fiscal_sequence.xml b/l10n_do_accounting/views/account_fiscal_sequence.xml deleted file mode 100644 index cafe396a9..000000000 --- a/l10n_do_accounting/views/account_fiscal_sequence.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - account.fiscal.sequence.form - account.fiscal.sequence - -
- - - - - - - - - - - - -
-
-
- - - account.fiscal.sequence.tree - account.fiscal.sequence - - - - - - - - - - - - Fiscal Sequence - account.fiscal.sequence - - - - - -
-
\ No newline at end of file diff --git a/l10n_do_accounting/views/account_journal_views.xml b/l10n_do_accounting/views/account_journal_views.xml index 447317130..f93e3a941 100644 --- a/l10n_do_accounting/views/account_journal_views.xml +++ b/l10n_do_accounting/views/account_journal_views.xml @@ -6,19 +6,11 @@ - - - - - - - diff --git a/l10n_do_accounting/views/res_company_views.xml b/l10n_do_accounting/views/res_company_views.xml index 81b99d446..b28cd4e62 100644 --- a/l10n_do_accounting/views/res_company_views.xml +++ b/l10n_do_accounting/views/res_company_views.xml @@ -11,7 +11,6 @@ attrs="{'invisible': [('country_code', '!=', 'DO')]}"/> - diff --git a/l10n_do_accounting/views/res_config_settings_view.xml b/l10n_do_accounting/views/res_config_settings_view.xml index 388f3bce8..ddc19ec23 100644 --- a/l10n_do_accounting/views/res_config_settings_view.xml +++ b/l10n_do_accounting/views/res_config_settings_view.xml @@ -11,54 +11,7 @@

Dominican Localization

-
-
- -
-
-
-
- - - - - - - - - - - -
-
- -
-
-
-
-
- Show name in report left -
- -
-
-
- Show name in report right -
- -
-
-
-
+ groups="account.group_account_manager"/>