[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: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
SimoRubi
2019-04-08 09:26:01 +00:00
committed by Martin Trigaux
parent 3f3d2b2773
commit 6431e366a8
+1 -1
View File
@@ -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):