Skip to content

Commit

Permalink
[REF] l10n_do_accounting: hide unnecessary fields and use correct key…
Browse files Browse the repository at this point in the history
… name (#1079)
  • Loading branch information
jose-pcg authored Aug 13, 2023
1 parent 2ffafa6 commit ee6592d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion l10n_do_accounting/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"category": "Localization",
"license": "LGPL-3",
"website": "https://github.com/odoo-dominicana",
"version": "16.0.1.1.0",
"version": "16.0.1.1.1",
# any module necessary for this one to work correctly
"depends": ["l10n_latam_invoice_document", "l10n_do"],
# always loaded
Expand Down
8 changes: 4 additions & 4 deletions l10n_do_accounting/tests/test_account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def test_002_invoice_ecf_types(self):
)

# Credit Note
ecf_sale_credito_fiscal_invoice.with_context(testing=True)._post()
ecf_sale_credito_fiscal_invoice.with_context(l10n_do_active_test=True)._post()
fiscal_sale_credit_note_wizard = (
self.env["account.move.reversal"]
.with_context(
Expand Down Expand Up @@ -428,7 +428,7 @@ def test_002_invoice_ecf_types(self):
)

# Credit Note
ecf_purchase_credito_fiscal_invoice.with_context(testing=True)._post()
ecf_purchase_credito_fiscal_invoice.with_context(l10n_do_active_test=True)._post()
fiscal_purchase_credit_note_wizard = (
self.env["account.move.reversal"]
.with_context(
Expand Down Expand Up @@ -577,7 +577,7 @@ def test_005_company_in_contingency(self):
"document_number": "E310000000001",
}
)
sale_invoice_1_id.with_context(testing=True)._post()
sale_invoice_1_id.with_context(l10n_do_active_test=True)._post()

self.do_company.l10n_do_ecf_issuer = False

Expand Down Expand Up @@ -613,7 +613,7 @@ def test_006_invoice_electronic_stamp(self):
"l10n_do_ecf_sign_date": sign_date,
}
)
sale_invoice_1_id.with_context(testing=True)._post()
sale_invoice_1_id.with_context(l10n_do_active_test=True)._post()
self.assertEqual(sale_invoice_1_id.l10n_do_electronic_stamp, stamp)

def test_007_unique_sequence_number(self):
Expand Down
7 changes: 3 additions & 4 deletions l10n_do_accounting/views/res_company_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
<field name="arch" type="xml">
<field name="vat" position="after">
<field name="l10n_do_ecf_issuer" attrs="{'invisible': [('country_code', '!=', 'DO')]}"/>
<field name="l10n_do_ecf_deferred_submissions" groups="base.group_no_one"
attrs="{'invisible': [('country_code', '!=', 'DO')]}"/>
<field name="l10n_do_default_client" attrs="{'invisible': [('country_code', '!=', 'DO')]}"/>
<field name="l10n_do_dgii_start_date" attrs="{'invisible': [('country_code', '!=', 'DO')]}"/>
<field name="l10n_do_ecf_deferred_submissions" groups="base.group_no_one" invisible="1"/>
<field name="l10n_do_default_client" invisible="1"/>
<field name="l10n_do_dgii_start_date" invisible="1"/>
</field>
</field>
</record>
Expand Down

0 comments on commit ee6592d

Please sign in to comment.