diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-06-08 12:17:15 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-06-08 12:17:15 +0200 |
| commit | 4f5f0de47d153a616ec2cb3d33e70db2de411289 (patch) | |
| tree | 88abcdd6805bd626275906fc3bd3c90d85143eb7 /addons/document_ftp/wizard | |
| parent | 0a2146ebb3e620e7a29c9a62610d27a71a33cd60 (diff) | |
[FIX] rename ir.actions.url to match action's type
bzr revid: xmo@openerp.com-20120608101715-ri3upmywr6kl850q
Diffstat (limited to 'addons/document_ftp/wizard')
| -rw-r--r-- | addons/document_ftp/wizard/ftp_browse.py | 2 | ||||
| -rw-r--r-- | addons/document_ftp/wizard/ftp_configuration.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/document_ftp/wizard/ftp_browse.py b/addons/document_ftp/wizard/ftp_browse.py index b1120bc6511..8260424d653 100644 --- a/addons/document_ftp/wizard/ftp_browse.py +++ b/addons/document_ftp/wizard/ftp_browse.py @@ -39,7 +39,7 @@ class document_ftp_browse(osv.osv_memory): data_pool = self.pool.get('ir.model.data') aid = data_pool._get_id(cr, uid, 'document_ftp', 'action_document_browse') aid = data_pool.browse(cr, uid, aid, context=context).res_id - ftp_url = self.pool.get('ir.actions.url').browse(cr, uid, aid, context=context) + ftp_url = self.pool.get('ir.actions.act_url').browse(cr, uid, aid, context=context) url = ftp_url.url and ftp_url.url.split('ftp://') or [] if url: url = url[1] diff --git a/addons/document_ftp/wizard/ftp_configuration.py b/addons/document_ftp/wizard/ftp_configuration.py index 5da2ddf11e8..d0679973c5a 100644 --- a/addons/document_ftp/wizard/ftp_configuration.py +++ b/addons/document_ftp/wizard/ftp_configuration.py @@ -44,7 +44,7 @@ class document_ftp_configuration(osv.osv_memory): # Update the action for FTP browse. aid = data_pool._get_id(cr, uid, 'document_ftp', 'action_document_browse') aid = data_pool.browse(cr, uid, aid, context=context).res_id - self.pool.get('ir.actions.url').write(cr, uid, [aid], + self.pool.get('ir.actions.act_url').write(cr, uid, [aid], {'url': 'ftp://'+(conf.host or 'localhost:8021')+'/' + cr.dbname+'/'}) document_ftp_configuration() |
