[FIX] core: fixup of convert cleanup

_tag_delete was not properly converted when the _tag_ calling
convention was modified in 4d581e26c2,
so <delete> tags would all blow up if encountered.

closes odoo/odoo#29149
This commit is contained in:
Xavier Morel
2018-11-29 13:46:14 +00:00
parent 9c793253d7
commit 4d7aa97da3
+2 -2
View File
@@ -250,8 +250,8 @@ form: module.record_id""" % (xml_id,)
modcnt = self.env['ir.module.module'].search_count([('name', '=', module), ('state', '=', 'installed')])
assert modcnt == 1, """The ID "%s" refers to an uninstalled module""" % (xml_id,)
def _tag_delete(self, rec, _data_node):
d_model = rec["model"]
def _tag_delete(self, rec):
d_model = rec.get("model")
records = self.env[d_model]
d_search = rec.get("search")