Skip to content
Snippets Groups Projects
Commit 45d1b79f authored by Nasreddin Boulif (bon)'s avatar Nasreddin Boulif (bon)
Browse files

[FIX] hr_expense: don't submit expense report on creation


Steps to reproduce:

  - Install Expenses module
  - Go to Expenses (list view)
  - Select multiple expense in `To Submit` stage
  - Click on Action -> Create report

Issue:

  Report is directly in Submitted stage.

Cause:

  Submitting report on creation.

Solution:

  Do not sumbit report on creation.

opw-2586184

closes odoo/odoo#74547

Signed-off-by: default avatarbon-odoo <nboulif@users.noreply.github.com>
parent def3f4ad
No related branches found
No related tags found
No related merge requests found
......@@ -330,7 +330,6 @@ Or send your receipts at <a href="mailto:%(email)s?subject=Lunch%%20with%%20cust
def action_submit_expenses(self):
sheet = self._create_sheet_from_expenses()
sheet.action_submit_sheet()
return {
'name': _('New Expense Report'),
'type': 'ir.actions.act_window',
......
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