Tryton - Issues



Author ced
Date 2019-07-19.13:09:59
The One2Many widget does not know there is a sequence because the tree view is not yet loaded.

I think the sequence definition should be changed. It should not be linked to the view but instead they should be bind to the Model and applied if the screen domain match a specific domain pattern or has a specific parent.
So it could be something like:

SaleLine.sequences = {
   'sequence': {
         'domain': [('sale', '=')],
    'sequence': {
         'parent': 'sale',
    'other_sequence': {
          'domain': [('type', '=', 'total')],
          'parent': 'sale',

One sequence to be used when sale is fixed or if parent is the sale field.
And another sequence to be used when only total are shown inside the sale.

And only if the order is None or starts with [(<sequence field>, 'ASC NULLS FIRST')].
Date User Action Args
2019-07-19 13:09:59cedsetmessageid: <>
2019-07-19 13:09:59cedlinkissue8512 messages
2019-07-19 13:09:59cedcreate

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