Initial commit: OCA Edi packages (42 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:05 +02:00
commit df976c03db
2184 changed files with 571602 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import test_einvoice_generate

View file

@ -0,0 +1,17 @@
# Copyright 2019-2022 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestEInvoiceGenerate(TransactionCase):
def test_config(self):
"""Test configuration of Electronic Invoices."""
conf = self.env["res.config.settings"].create(
{"xml_format_in_pdf_invoice": "none"}
)
conf.execute()
self.assertTrue(self.env.company.xml_format_in_pdf_invoice)
conf.xml_format_in_pdf_invoice = False
conf.execute()
self.assertFalse(self.env.company.xml_format_in_pdf_invoice)