[FIX] resource: conditions on id
[FIX] resource: conditions on id

Don't check ids with "id is None" statements, as it won't match if id is False. This caused some bugs with MRP when confirming a MO with no calendar defined, if mrp_operations was installed.

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