Skip to content
Snippets Groups Projects
Commit df4ca7f7 authored by tuyenphung's avatar tuyenphung Committed by Kevin Baptiste
Browse files

[FIX] hr_expense: clean context when click cancel for expense sheet


The context before click button cancel in expense sheet not cleaned yet.

closes odoo/odoo#100288

X-original-commit: 6f8d3d989cc024c8e5b3e9e1a6b2f4af636721d6
Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
parent d9057e33
Branches
Tags
No related merge requests found
......@@ -1076,6 +1076,7 @@ class HrExpenseSheet(models.Model):
return res
def action_unpost(self):
self = self.with_context(clean_context(self.env.context))
for sheet in self:
move = sheet.account_move_id
sheet.account_move_id = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment