Tryton - Issues

 

Issue6473

Title Client - One2Many wrong item opening after refreshing view
Priority bug Status chatting
Superseder Nosy List Pijuli, afibanez, pokoli
Type behavior Components tryton
Assigned To Keywords
Reviews

Created on 2017-04-26.16:48:03 by Pijuli, last changed by afibanez.

Messages
msg33634 (view) Author: [hidden] (afibanez) Date: 2017-05-11.17:09:49
I have done the bisect and the bug was introduced between 4.0 and 4.2, in this commit: https://hg.tryton.org/tryton/rev/33c1a31d27bc

But I don't have any idea of tryton client development and how to solve it except by removing the two new returns.
msg33633 (view) Author: [hidden] (pokoli) (Tryton committer) Date: 2017-05-11.16:27:52
I confirm I can reproduce it with tryton, but I can not reproduce it with sao. So it seems sao is not afected. 

@Pijuli, can you do an hg bisect to determine which changeset introduced it? From your comments, it must be something introduced after 4.0 release.
msg33632 (view) Author: [hidden] (Pijuli) Date: 2017-05-11.16:14:34
If you disable "options -> form -> save tree state" it stops behaving unexpectedly.
But this is just a workaround.
It's not happening in 4.0 and before. It is for 4.2 and 4.4
msg33631 (view) Author: [hidden] (Pijuli) Date: 2017-05-11.15:40:37
This bug is also reproducible in tryton client v4.4
msg33427 (view) Author: [hidden] (Pijuli) Date: 2017-04-26.16:48:03
When you reload a view that has a One2Many list and you have already opened one item, the next item you open will be the last you opened before reloading

How to reproduce:
Login into demo4.2 with client 4.2.5
Financial -> Invoices -> Customer Invoices
Create a customer invoice
Create 2 lines with different products so it's easily distinguishable
open line2
reload view
open line1

As you can see line2 has opened altough you chose line1
History
Date User Action Args
2017-05-11 17:09:49afibanezsetnosy: + afibanez
messages: + msg33634
2017-05-11 16:27:52pokolisetstatus: unread -> chatting
nosy: + pokoli
messages: + msg33633
2017-05-11 16:14:34Pijulisetstatus: chatting -> unread
messages: + msg33632
2017-05-11 15:40:37Pijulisetstatus: unread -> chatting
messages: + msg33631
2017-04-26 16:48:03Pijulicreate

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