cr.execute('SELECT id FROM "%s" WHERE website_published IS FALSE AND id = ANY (%%s)'%(self._table),(ids,))
ifcr.fetchall():
raiseosv.except_osv(
_('Access Denied'),
_('The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: %s, Operation: %s)')%(self._description,operation))
cr.execute('SELECT id FROM "%s" WHERE website_published IS FALSE AND id = ANY (%%s)'%(self._table),(ids,))
ifcr.fetchall():
raiseosv.except_osv(
_('Access Denied'),
_('The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: %s, Operation: %s)')%(self._description,operation))