Skip to content

Commit

Permalink
[MIG] sequence_check_digit: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yankinmax committed Jan 21, 2025
1 parent 8fc3a3f commit 899f0f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sequence_check_digit/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Check Digit on Sequences",
"version": "16.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Reporting",
"website": "https://github.com/OCA/server-ux",
"author": "Creu Blanca, Odoo Community Association (OCA)",
Expand Down
5 changes: 5 additions & 0 deletions sequence_check_digit/tests/test_check_digit.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ def test_mod37_36(self):
def test_mod97_10(self):
sequence = self.get_sequence("ISO7064_97_10")
self.assertTrue(mod_97_10.validate(sequence.next_by_id()))

def test_no_mode_imported(self):
sequence = self.get_sequence(None)
with self.assertRaises(ValidationError):
sequence.get_check_digit("ABC")

0 comments on commit 899f0f3

Please sign in to comment.