Standardize the declaration order of Model classes
I noticed a strange behaviour when creating a subclass of ModelView
and ModelStorage
using those to inherit (in the tryton sense) a base tryton object : python complained about the MRO not being resolvable.
The issue is that the order of the declaration of the subclasses of Model*
was different than the order used for the base object. The issue arose probably since I switched to python3.10 and previous versions where not as strict as 3.10.
We should standardize the declaration order of the Model classes:
~/p/tryton/tryton-env/6.4 - 6.4
❯ rg -l "SQL.*View" | wc -l
329
~/p/tryton/tryton-env/6.4 - 6.4
❯ rg -l "View.*SQL" | wc -l
20