[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:
Denis Ledoux
2015-12-01 17:39:27 +01:00
parent 53dab127e1
commit c99122cdb9
+2 -4
View File
@@ -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'
)