Skip to content

Commit

Permalink
[REM] remove '|' in res company name
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Oct 11, 2024
1 parent 7b6a4c9 commit 28f6e4c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions joint_buying_base/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ def _prepare_joint_buying_partner_vals(self):
self.ensure_one()
icp = self.env["ir.config_parameter"].sudo()
group_name = icp.get_param("joint_buying_base.group_name", "")
suffix = group_name and ("(" + group_name + ")") or ""
sanitized_name = self.name.replace("|", "").strip()
suffix = group_name and (" (" + group_name + ")") or ""
vals = {
"name": f"{sanitized_name} {suffix}",
"name": f"{self.name}{suffix}",
"active": self.active,
"is_joint_buying": True,
"is_joint_buying_stage": True,
Expand Down

0 comments on commit 28f6e4c

Please sign in to comment.