mirror of
https://github.com/bringout/oca-edi.git
synced 2026-04-22 09:52:08 +02:00
Initial commit: OCA Edi packages (42 packages)
This commit is contained in:
commit
df976c03db
2184 changed files with 571602 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import test_einvoice_generate
|
||||
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue