[FIX] base_action_rule: fix
bzr revid: hmo@tinyerp.com-20121004124352-r0nz9mihc5cmbh34
This commit is contained in:
parent
b33ca4139a
commit
5738c0cca8
|
@ -111,7 +111,7 @@ trigger date, like sending a reminder 15 minutes before a meeting."),
|
||||||
# Searching for action rules
|
# Searching for action rules
|
||||||
cr.execute("SELECT model.model, rule.id FROM base_action_rule rule \
|
cr.execute("SELECT model.model, rule.id FROM base_action_rule rule \
|
||||||
LEFT JOIN ir_model model on (model.id = rule.model_id) \
|
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()
|
res = cr.fetchall()
|
||||||
# Check if any rule matching with current object
|
# Check if any rule matching with current object
|
||||||
for obj_name, rule_id in res:
|
for obj_name, rule_id in res:
|
||||||
|
|
Loading…
Reference in New Issue