[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:
Thibault Delavallée 2014-08-08 09:43:43 +02:00
parent dce11788fa
commit ac212e2758
1 changed files with 1 additions and 1 deletions

View File

@ -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}