[MIG] account_sequence_option: Migration to 16.0

This commit is contained in:
Saran440
2024-01-25 17:18:21 +07:00
parent 051ad6e8ea
commit 248101c717
4 changed files with 12 additions and 15 deletions

View File

@@ -37,8 +37,6 @@ class TestAccountSequenceOption(TransactionCase):
"default_move_journal_types": ("bank", "cash"),
}
move_form = Form(self.env["account.payment"].with_context(**ctx))
move_form.payment_type = payment_type
move_form.partner_type = partner_type
move_form.partner_id = self.partner_id
payment = move_form.save()
return payment
@@ -93,5 +91,4 @@ class TestAccountSequenceOption(TransactionCase):
self.invoice.action_post()
self.assertEqual(old_name, self.invoice.name)
def test_constrains_date_sequence_true(self):
self.assertTrue(self.env["account.move"]._constrains_date_sequence())
self.invoice._constrains_date_sequence()