• Jérome Perrin's avatar
    ERP5Form: implement a basic checkConsistency for ProxyField · 459093f3
    Jérome Perrin authored
    For now this only checks that every entries in .tales are also in .values
    so that .has_value works as expected. This also supports repairing the
    structures with fixit argument.
    
    We could check more, because there are other problems with proxy fields
    internal structures:
     - sometimes some keys are in .values / .tales but not in .delegated_list
       this seem to happen after changing the target to a field of a different
       type, with different keys.
     - .delegated_list are not always sorted
    459093f3
ProxyField.py 29.9 KB