Skip to content
Snippets Groups Projects
Commit d1d12574 authored by Guillaume (guva)'s avatar Guillaume (guva)
Browse files

[FIX] hr_expense: expense{_sheet} state reset move to draft


Override the button_draft method, in order to
reset the expense and expense_sheet state
when resetting a move to draft.

Steps:

- Create an expense
- Submit and approve the report
- Post journal entry and register payment
- Reset the JE to draft
-> The expense and expense sheet states
   remain the same as before resetting
   to draft. They should be respectively
   'approved' and 'post'

opw-3279364

closes odoo/odoo#120286

Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
parent 51fd5d3c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment