Tryton - Issues

 

Issue7817

Title One2Many ordering arrow wrongly stays after save
Priority bug Status chatting
Superseder Nosy List ced, uha4
Type behavior Components tryton
Assigned To Keywords
Reviews

Created on 2018-10-26.12:48:18 by uha4, last changed by ced.

Messages
msg44606 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-10-26.14:26:13
For me, there is a bug because the arrow stays and it is not the coded behavior because there is no code to reapply the previous order.
If you think the behavior could be improved then fill a new feature request for the new behavior.
msg44605 (view) Author: [hidden] (uha4) Date: 2018-10-26.14:07:25
I never used sao before, but its the same on http://demo5.0.tryton.org accessed with the browser.

If you say, it is normal behavior to reset the order at reload, perpaps i should change this from bug to feature or wish? My main point is, that it would be much more convienient if the order stays, especialy when just saving the record.
msg44604 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-10-26.13:23:00
Indeed the behavior on order is the expected one, on reload it should have the default order but the arrow on columns should be reset.
Could you check if the same happen on sao.
msg44602 (view) Author: [hidden] (uha4) Date: 2018-10-26.12:48:17
When you save or reload a record with one2many field, the sort order is lost. 

Reproduce:
Open a record with several lines in a one2many field, for example a shipment.
Sort the lines by clicking on the head of a column. than click save or reload. The lins are in their original order (by id i suppose) again.
The client remembers the prefered order, as the little arrow in the head of the column stays, but the lines ar not sorted any more, so to restore my order i have to click 3 times at the column again.

by the way: in the mail list view were all the records of a model are listed, this works fine.
History
Date User Action Args
2018-10-28 00:46:57cedsettitle: one2many widget: order lost when saving record -> One2Many ordering arrow wrongly stays after save
2018-10-26 14:26:13cedsetmessages: + msg44606
2018-10-26 14:07:26uha4setmessages: + msg44605
2018-10-26 13:23:00cedsetstatus: unread -> chatting
nosy: + ced
messages: + msg44604
2018-10-26 12:48:18uha4create

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