Cancel installation is shown after installing my module in Odoo

I have created a custom module which I am trying to install but it shows me cancel installation button after I try to install it. This issue is not seen in any other custom modules or other modules. But installation is not working for my module. >Solution : "Cancel Installation" button could be visible on… Read More Cancel installation is shown after installing my module in Odoo

How to delete records in a different model in Odoo

I have added a Boolean attribute to res_config_settings. When the Boolean is False I want to delete all records in a custom Model (‘my.device’). I have tried three different approaches: 1.In res_config_settings: devices = self.env[‘my.device’].browse() devices.unlink() also in res_config_settings: devices = self.env[‘my.device’].browse() for d in devices: d.unlink() in my.device model def unlink_all(self): for rec in… Read More How to delete records in a different model in Odoo