Improve test for unit category
Currently we use the following code to test if the uom category is valid:
self.unit not in category.uoms
But this loads the uoms One2Many, which is not necessary as we can directly compare the categories with:
self.unit.category != category
I have detected it on sale and purchase modules, but we must review if this pattern is used on other modules.