Deuxième constat faux du même outil, et la même cause : un indicateur
jamais confronté à la vraie condition.
Le contrôle cherchait l'xmlid `product.list0`. Or la réparation laisse
Odoo créer « Par défaut » SANS le poser. Mesuré sur la migration qui
vient de tourner : une liste de prix bien présente, quatre modèles de
rapprochement recréés, et mon rapport annonçait toujours « absente ». Il
aurait signalé de même la base d'un client ayant créé la sienne à la
main.
On cherche donc une LIGNE dans product_pricelist, protégée par
to_regclass pour le cas où le module n'est pas installé.
--- EN ---
Second false finding from the same tool, and the same cause: a proxy
never checked against the real condition.
It looked for the xmlid `product.list0`. But the repair lets Odoo create
« Par défaut » WITHOUT setting it. Measured on the migration that just
ran: a pricelist plainly there, four reconciliation models recreated —
and my report still said "missing". It would have flagged a customer
database whose pricelist was made by hand just the same.
So we look for a ROW in product_pricelist, guarded by to_regclass in case
the module is not installed.
Assisted-by: Claude Opus 5