Browse Source

[IMP] partner name_get() for website

16.0
RemiFr82 7 months ago
parent
commit
ab568030f9
  1. 2
      ffck_commons/models/res_partner.py

2
ffck_commons/models/res_partner.py

@ -369,6 +369,8 @@ class ResPartner(models.Model):
return super()._compute_display_name()
def name_get(self):
if self.env.context.get("website_id", False):
return super().name_get()
res = []
ffck_partners = self.filtered("ffck_network")
others = self - ffck_partners

Loading…
Cancel
Save