mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Avoid possible sql injection in bi_view_editor
This commit is contained in:
@@ -280,9 +280,8 @@ class IrModel(models.Model):
|
||||
# this sql update is necessary since a write method here would
|
||||
# be not working (an orm constraint is restricting the modification
|
||||
# of the state field while updating ir.model)
|
||||
q = ("""UPDATE ir_model SET state = 'manual'
|
||||
WHERE id = """ + str(res.id))
|
||||
self.env.cr.execute(q)
|
||||
q = "UPDATE ir_model SET state = 'manual' WHERE id = %s"
|
||||
self.env.cr.execute(q, (res.id, ))
|
||||
|
||||
# # update registry
|
||||
if self._context.get('bve'):
|
||||
|
||||
Reference in New Issue
Block a user