-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] l10n_br_fiscal: add test operation copy
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ | |
test_service_type, | ||
test_subsequent_operation, | ||
test_uom_uom, | ||
test_operation, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)") |