Issue 11729

Title
Wrong type on modification of existing attendance record
Priority
bug
Status
testing
Nosy list
acaubet, pokoli, reviewbot
Assigned to
Keywords
backport, review

Created on 2022-09-23.16:00:15 by acaubet, last changed 2 days ago by acaubet.

Messages

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2022-09-23.19:04:38

Yes, we should exclude the current record to compute the right type in such case.

Author: [hidden] (acaubet)
Date: 2022-09-23.16:00:15

Steps to reproduce:
record1 = Create a in at 9am
record2 = Create a out at 10am
Try to modify the out time (record2) setting at=11am
The on_change_type when it does the search finds the record2 ( last one ) so it recomputes the type to in.
Result:
record1 = in, 9am
record2= in, 11am

For me we need to exclude the actual record id on the search.

History
Date User Action Args
2022-10-04 13:24:16acaubetsetstatus: chatting -> testing
2022-10-04 11:37:18reviewbotsetmessages: + msg78556
nosy: + reviewbot
2022-10-04 11:28:31acaubetsetkeyword: + review
reviews: 435911044
2022-09-23 19:04:38pokolisetkeyword: + backport
messages: + msg78285
nosy: + pokoli
2022-09-23 16:00:15acaubetcreate

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