Browse Source

[FIX] hierarchy compute

16.0
RemiFr82 6 months ago
parent
commit
70ee342ba9
  1. 2
      ffck_commons/models/res_partner.py

2
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

Loading…
Cancel
Save