Skip to content

Commit 1e6a047

Browse files
committed
[DEL] l10n_do_ecf_invoicing: remove ECF file fields and related updates
- Removed l10n_do_ecf_edi_file and l10n_do_ecf_edi_file_name fields from the AccountInvoice model. - Eliminated corresponding SQL updates in the post-init hook for ECF file handling.
1 parent 77b6743 commit 1e6a047

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

l10n_do_ecf_invoicing/__init__.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,3 @@ def post_init_hook(cr, registry):
3333
AND ai.l10n_do_electronic_stamp IS NULL
3434
AND ed.ecf_stamp IS NOT NULL;"""
3535
)
36-
37-
cr.execute(
38-
"""UPDATE account_invoice ai
39-
SET l10n_do_ecf_edi_file = ed.xml_file
40-
FROM ecf_document ed
41-
WHERE ai.ecf_document = ed.id
42-
AND ai.l10n_do_ecf_edi_file IS NULL
43-
AND ed.xml_file IS NOT NULL;"""
44-
)
45-
46-
cr.execute(
47-
"UPDATE account_invoice SET l10n_do_ecf_edi_file_name = dgii_document_number;"
48-
)

l10n_do_ecf_invoicing/models/account_invoice.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@ class AccountInvoice(models.Model):
1313
string="Electronic Stamp",
1414
store=True,
1515
)
16-
l10n_do_ecf_edi_file = fields.Binary("ECF XML File", copy=False, readonly=True)
17-
18-
l10n_do_ecf_edi_file_name = fields.Char(
19-
"ECF XML File Name", copy=False, readonly=True
20-
)

0 commit comments

Comments
 (0)