I know how to override any Js class or functions or methods. The question is how can i do it dynamically?
Requirement is to use both existing class/functions and overriden class/functions as per choice in the same odoo database. Let say I add a field (Boolean). When it is unchecked (False), then the override should not be done on class/function and only existing class/function should be used and if checked (True) then overrided class/functions should be used.