Tryton - Issues



Title button enabled before the end of execution
Priority bug Status chatting
Superseder Nosy List perilla
Type Components sao
Assigned To Keywords

Created on 2018-02-19.06:59:52 by perilla, last changed by perilla.

msg38470 (view) Author: [hidden] (perilla) Date: 2018-02-19.18:43:23
Same situation happens when user change a value inside form
view and click a button without saving the record.
msg38426 (view) Author: [hidden] (perilla) Date: 2018-02-19.06:59:52
on sao when user create a new record, and then press a button,
this button is enabled, and user can press another clic before
process execution ends.

For example when user create a new internal shipment, and then
press 'Wait' button more than one time, this result on the
execution of sequence assignation more than one time,
and user perceives a sequence jump.

After debugging the code, I can see that it is related to button function
inside screen.js, because when record is not saved, the call to button function
returns immediately.  On the other hand, when record has been saved previously
the call to button function return after save record and execute server side

I can see that it is also related to function, because inside 
this function there is a promise to be returned prm = jQuery.when()
but when id < 0 returns prm.done, and when id > 0 returns directly prm.
Date User Action Args
2018-02-19 18:43:23perillasetstatus: unread -> chatting
messages: + msg38470
2018-02-19 06:59:52perillacreate

Showing 10 items. Show all history (warning: this could be VERY long)