diff --git a/l10n_do_accounting/__manifest__.py b/l10n_do_accounting/__manifest__.py
index 521b5f182..0c175a47c 100644
--- a/l10n_do_accounting/__manifest__.py
+++ b/l10n_do_accounting/__manifest__.py
@@ -18,17 +18,17 @@
"security/res_groups.xml",
# "data/l10n_latam.document.type.csv",
# "wizard/account_move_reversal_views.xml",
- # "wizard/account_move_cancel_views.xml",
- # "wizard/account_debit_note_views.xml",
- # "views/res_config_settings_view.xml",
- # "views/account_move_views.xml",
- # "views/res_partner_views.xml",
- # "views/res_company_views.xml",
- # "views/account_dgii_menuitem.xml",
- # "views/account_journal_views.xml",
- # "views/l10n_latam_document_type_views.xml",
- # "views/report_templates.xml",
- # "views/report_invoice.xml",
+ "wizard/account_move_cancel_views.xml",
+ "wizard/account_debit_note_views.xml",
+ "views/res_config_settings_view.xml",
+ "views/account_move_views.xml",
+ "views/res_partner_views.xml",
+ "views/res_company_views.xml",
+ "views/account_dgii_menuitem.xml",
+ "views/account_journal_views.xml",
+ "views/l10n_latam_document_type_views.xml",
+ "views/report_templates.xml",
+ "views/report_invoice.xml",
],
# only loaded in demonstration mode
"demo": [
diff --git a/l10n_do_accounting/views/account_move_views.xml b/l10n_do_accounting/views/account_move_views.xml
index 6be7d4bdc..a41e0d49c 100644
--- a/l10n_do_accounting/views/account_move_views.xml
+++ b/l10n_do_accounting/views/account_move_views.xml
@@ -33,9 +33,7 @@
invisible="state in ('draft', 'cancel') or country_code != 'DO'"/>
- restrict_mode_hash_table
- or (state not in ('posted', 'cancel') and country_code != 'DO')
- or (state != 'cancel' and country_code == 'DO')
+ restrict_mode_hash_table == True or (state not in ('posted', 'cancel') and country_code != 'DO') or (state != 'cancel' and country_code == 'DO')
@@ -46,21 +44,16 @@
l10n_do_enable_first_sequence or l10n_latam_manual_document_number and (l10n_latam_use_documents and country_code == 'DO')
-
- (not l10n_latam_use_documents and country_code == 'DO')
- or (not l10n_do_enable_first_sequence and not l10n_latam_manual_document_number and state == 'draft')
- or (not l10n_do_enable_first_sequence and l10n_latam_manual_document_number and state == 'draft')
- and (move_type in ('out_invoice', 'out_refund', 'in_refund') and country_code == 'DO')
-
+ (not l10n_latam_use_documents and country_code == 'DO') or (not l10n_do_enable_first_sequence and not l10n_latam_manual_document_number and state == 'draft') or (not l10n_do_enable_first_sequence and l10n_latam_manual_document_number and state == 'draft') and (move_type in ('out_invoice', 'out_refund', 'in_refund') and country_code == 'DO')
(state != 'draft' and country_code == 'DO') or (posted_before and country_code == 'DO')
+ readonly="state != 'draft'"/>
diff --git a/l10n_do_accounting/views/report_invoice.xml b/l10n_do_accounting/views/report_invoice.xml
index fc072ea35..6b4a8314a 100644
--- a/l10n_do_accounting/views/report_invoice.xml
+++ b/l10n_do_accounting/views/report_invoice.xml
@@ -303,7 +303,7 @@
-
+
Monto descuento
@@ -340,7 +340,7 @@
-
+
diff --git a/l10n_do_accounting/views/report_templates.xml b/l10n_do_accounting/views/report_templates.xml
index 85d1b3c45..36fc24a21 100644
--- a/l10n_do_accounting/views/report_templates.xml
+++ b/l10n_do_accounting/views/report_templates.xml
@@ -3,7 +3,7 @@
-
+
doc_model != "account.move" or (doc_model == "account.move" and o.country_code != "DO")
|