From 803a9f2406fa5c339a28627a2e9ac97178f0a1be Mon Sep 17 00:00:00 2001 From: Franck Plazanet Date: Thu, 31 Oct 2024 09:35:42 +0000 Subject: [PATCH] [FIX] Remove UserWarning: Field res.partner.industry.display_name should be declared with recursive=True --- partner_industry_secondary/models/res_partner_industry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/partner_industry_secondary/models/res_partner_industry.py b/partner_industry_secondary/models/res_partner_industry.py index 534219f5cb8..30b040e95c0 100644 --- a/partner_industry_secondary/models/res_partner_industry.py +++ b/partner_industry_secondary/models/res_partner_industry.py @@ -15,6 +15,7 @@ class ResPartnerIndustry(models.Model): _parent_store = True name = fields.Char(required=True) + display_name = fields.Char(recursive=True) parent_id = fields.Many2one( comodel_name="res.partner.industry", ondelete="restrict" )