Community mailing list archives
Re: Dynamic / conditional module dependenciesby
In many cases we want to build a module that affects for ex. sale, product and POS.
but we don't want the functions that affect POS to be executed in case that POS is not installed.
the way we can build a general module that doesn't depend on POS but affects it if only installed.
How can we achieve this behaviour in odoo 8 or 9 without building module for sale and another for POS ?
You can use an installed validator it is technically feasible, but, bad things happen, What I recommend is work with some kind of hooks or contextual validations.