[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user