From 369eab5503d312941fff4a75828159b737ef883a Mon Sep 17 00:00:00 2001 From: mav-adhoc Date: Wed, 29 Jan 2025 12:58:33 -0300 Subject: [PATCH] [FIX]hr_expense_cancel:rename of action_sheet_move_cancel into action_sheet_move_post --- hr_expense_cancel/tests/test_hr_expense_cancel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hr_expense_cancel/tests/test_hr_expense_cancel.py b/hr_expense_cancel/tests/test_hr_expense_cancel.py index d730b20c4..6628f920d 100644 --- a/hr_expense_cancel/tests/test_hr_expense_cancel.py +++ b/hr_expense_cancel/tests/test_hr_expense_cancel.py @@ -17,7 +17,7 @@ def setUpClass(cls): cls.expense = cls.create_expense(cls) res = cls.expense.action_submit_expenses() cls.expense_sheet = cls.env[res["res_model"]].browse(res["res_id"]) - cls.expense_sheet.action_submit_sheet() + # cls.expense_sheet.action_submit_sheet() cls.expense_sheet.action_approve_expense_sheets() def _get_payment_wizard(self): @@ -28,7 +28,7 @@ def _get_payment_wizard(self): return register_form.save() def test_action_cancel_posted(self): - self.expense_sheet.action_sheet_move_create() + self.expense_sheet.action_sheet_move_post() self.assertFalse(len(self.expense_sheet.payment_ids), 1) self.assertTrue(self.expense_sheet.account_move_ids) @@ -50,13 +50,13 @@ def test_action_cancel_no_update_posted(self): def test_action_cancel_company_account(self): self.expense.payment_mode = "company_account" self.expense_sheet.journal_id = self.company_data["default_journal_bank"] - self.expense_sheet.action_sheet_move_create() + self.expense_sheet.action_sheet_move_post() self.assertTrue(self.expense_sheet.account_move_ids) self.expense_sheet.action_cancel() self.assertFalse(self.expense_sheet.account_move_ids) def test_action_cancel_own_account(self): - self.expense_sheet.action_sheet_move_create() + self.expense_sheet.action_sheet_move_post() payment_wizard = self._get_payment_wizard() payment_wizard.action_create_payments() self.assertTrue(self.expense_sheet.payment_ids)