[MIG] partner_statement: Migration to 17.0

This commit is contained in:
ellbristow
2024-06-25 12:22:21 +02:00
committed by Miquel Raïch
parent 3158417c4a
commit fb09ed1ef5
7 changed files with 101 additions and 102 deletions

View File

@@ -42,5 +42,9 @@ class TestResConfigSettings(TransactionCase):
self.assertTrue(
self.user_obj._has_group("partner_statement.group_activity_statement")
)
res = self.env["ir.default"].get("activity.statement.wizard", "aging_type")
self.assertEqual(res, "months")
res = (
self.env["activity.statement.wizard"]
.with_context(active_ids=[1])
.create({})
)
self.assertEqual(res.aging_type, "months")