Skip to content
Snippets Groups Projects
Commit 6431e366 authored by SimoRubi's avatar SimoRubi Committed by Martin Trigaux
Browse files

[FIX] web: call method with correct record


_compute_website_url can only be called on singletons
It should not be called with self but the record we are iterating on

closes odoo/odoo#32369

Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
parent 3f3d2b27
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ class ServerAction(models.Model):
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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment