From 6431e366a8e29e367d1908177b706bd8418d9d41 Mon Sep 17 00:00:00 2001 From: SimoRubi Date: Wed, 3 Apr 2019 08:48:26 +0000 Subject: [PATCH] [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) --- addons/website/models/ir_actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/models/ir_actions.py b/addons/website/models/ir_actions.py index 7d5c831a9fd..1c2c19d4bf6 100644 --- a/addons/website/models/ir_actions.py +++ b/addons/website/models/ir_actions.py @@ -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):