File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1096,20 +1096,18 @@ def __update_record_from_xml(
1096
1096
1097
1097
cr .execute (
1098
1098
"""
1099
- UPDATE ir_model_data d
1100
- SET noupdate = false
1101
- FROM ir_model_data o
1102
- WHERE o.id = d.id
1103
- AND d.module = %s
1104
- AND d.name = %s
1105
- RETURNING d.model, d.res_id, o.noupdate
1099
+ SELECT model, res_id, noupdate
1100
+ FROM ir_model_data
1101
+ WHERE module = %s
1102
+ AND name = %s
1106
1103
""" ,
1107
1104
[module , name ],
1108
1105
)
1109
1106
if cr .rowcount :
1110
1107
model , res_id , noupdate = cr .fetchone ()
1111
1108
if model == "ir.model" :
1112
1109
return
1110
+ force_noupdate (cr , xmlid , noupdate = False )
1113
1111
elif not force_create :
1114
1112
_logger .warning ("Record %r not found in database. Skip update." , xmlid )
1115
1113
return
You can’t perform that action at this time.
0 commit comments