[FIX] ir_actions in website: allow to compute website_path even when creating a new server action (avoid crash then)
This commit is contained in:
parent
dce11788fa
commit
ac212e2758
|
@ -44,7 +44,7 @@ class actions_server(osv.Model):
|
|||
|
||||
def on_change_website_path(self, cr, uid, ids, website_path, xml_id, context=None):
|
||||
values = {
|
||||
'website_url': self._compute_website_url(cr, uid, ids[0], website_path, xml_id, context=context)
|
||||
'website_url': self._compute_website_url(cr, uid, ids and ids[0] or None, website_path, xml_id, context=context)
|
||||
}
|
||||
return {'value': values}
|
||||
|
||||
|
|
Loading…
Reference in New Issue