[FIX] models: no warning when using `api.constrains` on an inherited field
[FIX] models: no warning when using `api.constrains` on an inherited field

Fixes #17312

diagramsoftware/odoo,NeovaHealth/odoo,CatsAndDogsbvba/odoo,glovebx/odoo,hip-odoo/odoo,glovebx/odoo,OpenUpgrade/OpenUpgrade,tvibliani/odoo,spadae22/odoo,vnsofthe/odoo,odootr/odoo,hip-odoo/odoo,Adel-Magebinary/odoo,alexcuellar/odoo,tvibliani/odoo,ygol/odoo,hip-odoo/odoo,CatsAndDogsbvba/odoo,makinacorpus/odoo,synconics/odoo,Nowheresly/odoo,Elico-Corp/odoo_OCB,ygol/odoo,odootr/odoo,datenbetrieb/odoo,synconics/odoo,makinacorpus/odoo,ygol/odoo,makinacorpus/odoo,vnsofthe/odoo,hip-odoo/odoo,glovebx/odoo,tvibliani/odoo,ygol/odoo,Adel-Magebinary/odoo,hip-odoo/odoo,leorochael/odoo,datenbetrieb/odoo,diagramsoftware/odoo,Elico-Corp/odoo_OCB,spadae22/odoo,Nowheresly/odoo,OpenUpgrade/OpenUpgrade,funkring/fdoo,CatsAndDogsbvba/odoo,funkring/fdoo,NeovaHealth/odoo,leorochael/odoo,alexcuellar/odoo,odootr/odoo,Adel-Magebinary/odoo,leorochael/odoo,NeovaHealth/odoo,diagramsoftware/odoo,diagramsoftware/odoo,alexcuellar/odoo,datenbetrieb/odoo,ygol/odoo,ygol/odoo,funkring/fdoo,funkring/fdoo,spadae22/odoo,tvibliani/odoo,funkring/fdoo,Elico-Corp/odoo_OCB,diagramsoftware/odoo,glovebx/odoo,Adel-Magebinary/odoo,synconics/odoo,makinacorpus/odoo,Adel-Magebinary/odoo,odootr/odoo,synconics/odoo,NeovaHealth/odoo,leorochael/odoo,synconics/odoo,makinacorpus/odoo,makinacorpus/odoo,vnsofthe/odoo,OpenUpgrade/OpenUpgrade,NeovaHealth/odoo,spadae22/odoo,datenbetrieb/odoo,leorochael/odoo,Adel-Magebinary/odoo,OpenUpgrade/OpenUpgrade,alexcuellar/odoo,spadae22/odoo,NeovaHealth/odoo,leorochael/odoo,Nowheresly/odoo,spadae22/odoo,ygol/odoo,glovebx/odoo,Nowheresly/odoo,funkring/fdoo,synconics/odoo,CatsAndDogsbvba/odoo,Elico-Corp/odoo_OCB,odootr/odoo,CatsAndDogsbvba/odoo,datenbetrieb/odoo,tvibliani/odoo,datenbetrieb/odoo,Nowheresly/odoo,odootr/odoo,alexcuellar/odoo,leorochael/odoo,CatsAndDogsbvba/odoo,makinacorpus/odoo,glovebx/odoo,diagramsoftware/odoo,Nowheresly/odoo,Elico-Corp/odoo_OCB,diagramsoftware/odoo,spadae22/odoo,OpenUpgrade/OpenUpgrade,vnsofthe/odoo,Nowheresly/odoo,Adel-Magebinary/odoo,vnsofthe/odoo,CatsAndDogsbvba/odoo,vnsofthe/odoo,Elico-Corp/odoo_OCB,glovebx/odoo,odootr/odoo,alexcuellar/odoo,funkring/fdoo,tvibliani/odoo,OpenUpgrade/OpenUpgrade,datenbetrieb/odoo,hip-odoo/odoo,NeovaHealth/odoo,OpenUpgrade/OpenUpgrade,alexcuellar/odoo,vnsofthe/odoo,synconics/odoo,tvibliani/odoo