Skip to content

Commit 48bb075

Browse files
committed
[FIX] records: remove double quote_ident
The results of get_fk are quote_idented by default. Adding more quotes may result in sql syntax errors when the table names or column names are not standard. closes #11 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent 7681fac commit 48bb075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def remove_group(cr, xml_id=None, group_id=None):
505505
return
506506

507507
# Get all fks from table res_groups
508-
fks = get_fk(cr, "res_groups")
508+
fks = get_fk(cr, "res_groups", quote_ident=False)
509509

510510
# Remove records referencing the group_id from the referencing tables (restrict fks)
511511
standard_tables = ["ir_model_access", "rule_group_rel"]

0 commit comments

Comments
 (0)