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 @@ -1098,20 +1098,18 @@ def __update_record_from_xml(
1098
1098
1099
1099
cr .execute (
1100
1100
"""
1101
- UPDATE ir_model_data d
1102
- SET noupdate = false
1103
- FROM ir_model_data o
1104
- WHERE o.id = d.id
1105
- AND d.module = %s
1106
- AND d.name = %s
1107
- RETURNING d.model, d.res_id, o.noupdate
1101
+ SELECT model, res_id, noupdate
1102
+ FROM ir_model_data
1103
+ WHERE module = %s
1104
+ AND name = %s
1108
1105
""" ,
1109
1106
[module , name ],
1110
1107
)
1111
1108
if cr .rowcount :
1112
1109
model , res_id , noupdate = cr .fetchone ()
1113
1110
if model == "ir.model" :
1114
1111
return
1112
+ force_noupdate (cr , xmlid , noupdate = False )
1115
1113
elif not force_create :
1116
1114
_logger .warning ("Record %r not found in database. Skip update." , xmlid )
1117
1115
return
You can’t perform that action at this time.
0 commit comments