Is there a way how to validate on a model level? Let say I have integer field:
comp_min = fields.Integer(string='Min. component item')
comp_max = fields.Integer(string='Max. component item')
How do I set that comp_min have to be greater than 0 and lower than comp_max at the same time?
I know I can set min in template, but it would make sence to define this on model level, other wise I have to add check in template in model on change and possibly other places so I am sure that I do not have mismatched data.