[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: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
committed by
Kevin Baptiste
parent
d9057e332d
commit
df4ca7f7ba
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user