From e05997884eca4f6d92a86351ac1d0ab08d0fe6f4 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 11 Feb 2019 13:50:41 +0100 Subject: [PATCH] [FIX] show the redundant property's res_id, not the default one's --- database_cleanup/models/purge_properties.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database_cleanup/models/purge_properties.py b/database_cleanup/models/purge_properties.py index 82936d4b5..0e362a3eb 100644 --- a/database_cleanup/models/purge_properties.py +++ b/database_cleanup/models/purge_properties.py @@ -87,7 +87,8 @@ class CleanupPurgeWizardProperty(models.TransientModel): for redundant_property in self.env['ir.property'].search(domain): result.append({ 'name': '%s@%s: %s' % ( - prop.name, prop.res_id, prop.get_by_record() + prop.name, redundant_property.res_id, + prop.get_by_record() ), 'property_id': redundant_property.id, 'reason': REASON_DEFAULT,