[FIX] ir.rule: use rules at most once (#15843)
[FIX] ir.rule: use rules at most once (#15843)

When a user belongs to multiple groups, and an ir.rule is applicable for some of
them, the rule is added multiple times in the domain. Just do it once. This
makes the query shorter and easier to debug.

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