'Update the registry after a modification on action rules.'

def _update_registry(self):

    if (self.env.registry.ready and (not self.env.context.get('import_file'))):
        self._cr.commit()
        self.env.reset()
        registry = Registry.new(self._cr.dbname)
        registry.signal_registry_change()
