diff --git a/l10n_br_fiscal/tests/__init__.py b/l10n_br_fiscal/tests/__init__.py index dae7f5062928..af12db8fd4f7 100644 --- a/l10n_br_fiscal/tests/__init__.py +++ b/l10n_br_fiscal/tests/__init__.py @@ -14,4 +14,5 @@ test_service_type, test_subsequent_operation, test_uom_uom, + test_operation, ) diff --git a/l10n_br_fiscal/tests/test_operation.py b/l10n_br_fiscal/tests/test_operation.py new file mode 100644 index 000000000000..1ae2f8542252 --- /dev/null +++ b/l10n_br_fiscal/tests/test_operation.py @@ -0,0 +1,13 @@ +# Copyright 2024 KMEE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests.common import TransactionCase + + +class TestOperation(TransactionCase): + def test_copy(self): + """Test Operation copy()""" + operation_venda = self.env.ref("l10n_br_fiscal.fo_venda") + operation_venda_copy = operation_venda.copy() + self.assertEqual(operation_venda_copy.name, "Venda") + self.assertEqual(operation_venda_copy.code, "Venda (Copy)")