From 70ee342ba904b46d8237c5d6042bc0367d7231fd Mon Sep 17 00:00:00 2001 From: RemiFr82 Date: Wed, 29 May 2024 20:25:53 +0200 Subject: [PATCH] [FIX] hierarchy compute --- ffck_commons/models/res_partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffck_commons/models/res_partner.py b/ffck_commons/models/res_partner.py index d1a2125..45139a0 100644 --- a/ffck_commons/models/res_partner.py +++ b/ffck_commons/models/res_partner.py @@ -140,7 +140,7 @@ class ResPartner(models.Model): partner.hierarchy_id = ( partner.id if partner.ffck_network - and int(partner.partner_scale) in range(1, 4) + and int(partner.partner_scale) in list(range(1, 5)) and partner.partner_code else partner.local_partner_id.id or partner.cdck_partner_id.id