openspp-modules icon indicating copy to clipboard operation
openspp-modules copied to clipboard

Implement order of calculation for calculated field

Open gonzalesedwin1123 opened this issue 3 years ago • 3 comments

We need to define a clear order in which calculated fields are re-calculated.

gonzalesedwin1123 avatar Aug 18 '22 07:08 gonzalesedwin1123

Proposed solution:

  • Add a sequence field in "ir.model.fields" and will be used as the default sort order.
  • Customize the "ir.model.fields" tree view in spp_custom_fields_ui to provide a handle using the sequence field for drag-and-drop ordering of fields.
  • Use the order of sequence in "res.partner" "_get_calculated_group_fields" function in generating the list of fields to be processed by the function "_recompute_parent_groups".

gonzalesedwin1123 avatar Aug 26 '22 01:08 gonzalesedwin1123

Order by type of field

gonzalesedwin1123 avatar Aug 26 '22 02:08 gonzalesedwin1123

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Feb 26 '23 12:02 github-actions[bot]

This ticket is now tracked in https://projects.acn.fr/wp/256

celinenilla avatar Aug 11 '25 09:08 celinenilla