[FIX] anonymization: xmlid_to_res_id doesn't have a context argument
This is related to the revision 2e66c489e3
`xmlid_to_res_id` doesn't have a `context` argument,
trying to do a call with this `context` failed.
A simple attempt to anonymize the database raised the error.
opw-657858
This commit is contained in:
@@ -476,8 +476,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory):
|
||||
|
||||
# handle the view:
|
||||
view_id = self.pool['ir.model.data'].xmlid_to_res_id(
|
||||
cr, uid, 'anonymization.view_ir_model_fields_anonymize_wizard_form',
|
||||
context=context
|
||||
cr, uid, 'anonymization.view_ir_model_fields_anonymize_wizard_form'
|
||||
)
|
||||
|
||||
return {
|
||||
@@ -583,8 +582,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory):
|
||||
|
||||
# handle the view:
|
||||
view_id = self.pool['ir.model.data'].xmlid_to_res_id(
|
||||
cr, uid, 'anonymization.view_ir_model_fields_anonymize_wizard_form',
|
||||
context=context
|
||||
cr, uid, 'anonymization.view_ir_model_fields_anonymize_wizard_form'
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user