Skip to content

Commit

Permalink
[FIX] sale_planner_calendar: Remove partner name from default locatio…
Browse files Browse the repository at this point in the history
…n address

By passing `True` to the `_display_address` method,
the company/partner name is omitted from the address
format, ensuring that only address details are displayed.
This change was to calculate the GPS location exactly.

TT51008
  • Loading branch information
pilarvargas-tecnativa committed Sep 30, 2024
1 parent 3704f72 commit c86c361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_planner_calendar/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def action_calendar_planner(self):
action["context"] = {
"default_target_partner_id": self.id,
"default_categ_ids": [(4, categ.id)],
"default_location": self._display_address(),
"default_location": self._display_address(True),
"default_duration": categ.duration,
"default_name": categ.name,
"default_start": fields.Datetime.now(),
Expand Down

0 comments on commit c86c361

Please sign in to comment.