Skip to content

Commit

Permalink
[FIX] joint_buying_base : strip company name when preparing partner name
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Sep 11, 2023
1 parent 0c078eb commit c254e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joint_buying_base/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _prepare_joint_buying_partner_vals(self):
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("|", "")
sanitized_name = self.name.replace("|", "").strip()
vals = {
"name": f"{sanitized_name} {suffix}",
"active": self.active,
Expand Down

0 comments on commit c254e73

Please sign in to comment.