[FIX] base_action_rule: fix

bzr revid: hmo@tinyerp.com-20121004124352-r0nz9mihc5cmbh34
This commit is contained in:
Harry (OpenERP) 2012-10-04 18:13:52 +05:30
parent b33ca4139a
commit 5738c0cca8
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ trigger date, like sending a reminder 15 minutes before a meeting."),
# Searching for action rules
cr.execute("SELECT model.model, rule.id FROM base_action_rule rule \
LEFT JOIN ir_model model on (model.id = rule.model_id) \
WHERE active and model = %%s", model)
WHERE active and model = %s", (model,))
res = cr.fetchall()
# Check if any rule matching with current object
for obj_name, rule_id in res: