-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX acc_factor_eurofactor: remove / in move_name
- Loading branch information
Showing
3 changed files
with
22 additions
and
5 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
1 change: 1 addition & 0 deletions
1
account_factoring_receivable_balance_eurofactor/tests/__init__.py
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 @@ | ||
from . import test_module |
17 changes: 17 additions & 0 deletions
17
account_factoring_receivable_balance_eurofactor/tests/test_module.py
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,17 @@ | ||
from odoo.tests.common import TransactionCase | ||
from ..models.subrogation_receipt import get_piece_factor | ||
import logging | ||
logger = logging.getLogger(__name__) | ||
|
||
|
||
class Test(TransactionCase): | ||
|
||
def test_get_piece_factor(self): | ||
def check_move_name(piece): | ||
move_name = get_piece_factor(piece) | ||
logger.debug(f" >>>> {move_name}") | ||
print(f" >>>> '{move_name}'") | ||
assert len(move_name) == 14, f"Move name {move_name}" | ||
|
||
for piece in ("FAC/2025/00001", "RFAC/2025/00001", "FAC/2024/02704", "RFAC/2025/00016"): | ||
check_move_name(piece) |