Skip to content

Commit

Permalink
[FIX] website: method should be called with action not with self
Browse files Browse the repository at this point in the history
to avoid 'Expected singleton error'

OPW: 1909205

closes odoo#28648
  • Loading branch information
Sanjay Jamod committed Nov 14, 2018
1 parent 21976ca commit 8f99013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website/models/ir_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _compute_website_url(self, website_path, xml_id):
def _get_website_url(self):
for action in self:
if action.state == 'code' and action.website_published:
action.website_url = self._compute_website_url(action.website_path, action.xml_id)
action.website_url = action._compute_website_url(action.website_path, action.xml_id)

@api.model
def _get_eval_context(self, action):
Expand Down

0 comments on commit 8f99013

Please sign in to comment.