Skip to content
Snippets Groups Projects
Commit 80c28189 authored by Julien CHEVREAU (JCU)'s avatar Julien CHEVREAU (JCU)
Browse files

[FIX] account: Check Move Status Before Posting


Beforehand, if two users independently opened a draft
invoice on their respective sessions, then both of them
clicked on the "Post" button, then the invoice was
posted twice.
On a more general aspect, the view currently "prevents" users
from posting moves several times, but technically speaking,
nothing stops users from posting moves several times.

Now, after checking that the user indeed has the right to post
a move, the next check is about verifying that the move is
not already posted.

opw-2479201

closes odoo/odoo#68837

X-original-commit: 71b82693
Related: odoo/enterprise#17511
Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: default avatarJulien CHEVREAU <Julien-CHEVREAU@users.noreply.github.com>
parent f0a1bb36
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment