Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Problem when 2 person click same button on the same state at the same time.
Re: How to import old invoices from legacy system
Problem when 2 person click same button on the same state at the same time.
by
Ecosoft Co. Ltd., Kitti Upariphutthiphong
Dear community,
I don't know technical word to describe this. As we knew, Odoo's view is not refreshed in real time as data got updated backend. And this is problematic.
For example,
- 2 users open the same document at state Draft, and a Confirm Button visible.
- 1st user clicks Confirm, and document sequence set to 1001
- 2nd user still see the same Confirm button (as page not refreshed), and click it, sequence now change to 1002 without consent of the first person.
Because Odoo don't have mechanism to prevent this by the framework, and this can happen easily on less mature code.
Anyone have good techniques to prevent this, rather than writing the blocking everywhere?
Thanks!
Follow-Ups
-
Re: Problem when 2 person click same button on the same state at the same time.
byEcosoft Co. Ltd., Kitti Upariphutthiphong -
Re: Problem when 2 person click same button on the same state at the same time.
by "Raphaël Valyi" <rvalyi@akretion.com> - 10/06/2022 05:43:07 - 0 -
Re: Problem when 2 person click same button on the same state at the same time.
byEcosoft Co. Ltd., Kitti Upariphutthiphong -
Re: Problem when 2 person click same button on the same state at the same time.
byEcosoft Co. Ltd., Kitti Upariphutthiphong -
Re: Problem when 2 person click same button on the same state at the same time.
byEcosoft Co. Ltd., Kitti Upariphutthiphong -
Re: Problem when 2 person click same button on the same state at the same time.
bySunflower IT, Tom Blauwendraat