summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorSimoRubi <simone.rubino@agilebg.com>2019-04-03 08:48:26 +0000
committerMartin Trigaux <mat@odoo.com>2019-04-08 09:26:01 +0000
commit6431e366a8e29e367d1908177b706bd8418d9d41 (patch)
tree2b14996932c276f22d40eea2ac5f75f40cc98696 /addons
parent3f3d2b2773377c707be110aeb3edf9c8fd689d07 (diff)
[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>
Diffstat (limited to 'addons')
-rw-r--r--addons/website/models/ir_actions.py2
1 files changed, 1 insertions, 1 deletions
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):