Files
odoo_source/addons/privacy_lookup/models/res_partner.py
T
Philippe Wauthy 7f35035f9c [FIX] privacy_lookup: fix xml id not found error
In privacy_lookup, an action is called with a XML id that is not existing.
This commit fixes the traceback received by pointing to the correct XML id.

closes odoo/odoo#92499

Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-05-31 14:59:28 +02:00

18 lines
503 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class ResPartner(models.Model):
_inherit = 'res.partner'
def action_privacy_lookup(self):
self.ensure_one()
action = self.env['ir.actions.act_window']._for_xml_id('privacy_lookup.action_privacy_lookup_wizard')
action['context'] = {
'default_email': self.email,
'default_name': self.name,
}
return action