odoo-shopinvader
odoo-shopinvader copied to clipboard
[14.0][IMP] shopinvader_variant: main product: add hooks
This pr adds the ability to modify the way variants are sorted to compute main variants.
For instance now, you can add new fields in _get_sort_read_fields
in order to be able to filter out variants that cannot be the main variant for a given product.
FTR tests are red on whole 14.0. See https://github.com/shopinvader/odoo-shopinvader/pull/1532
Forward-port in version 16 here: https://github.com/shopinvader/odoo-shopinvader/pull/1524
@mmequignon Can you rebase to trigger tests plz?