diff options
| author | Antony Lesuisse <al@openerp.com> | 2014-03-26 14:04:17 +0100 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2014-03-26 14:04:17 +0100 |
| commit | e58f289aebff7dabd37b72f8b4d334a89e4e9fd5 (patch) | |
| tree | bf9a6c6533642d37f2e7ccab39f56054e2a18261 /addons/document_ftp/res_config.py | |
| parent | 502d6770152e13c7560ea3adb25dddd4265dc016 (diff) | |
[REM] move document_ftp to openerp-extra
bzr revid: al@openerp.com-20140326130417-8226lcfoojop1j5e
Diffstat (limited to 'addons/document_ftp/res_config.py')
| -rw-r--r-- | addons/document_ftp/res_config.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/addons/document_ftp/res_config.py b/addons/document_ftp/res_config.py deleted file mode 100644 index 93b3aa69974..00000000000 --- a/addons/document_ftp/res_config.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Business Applications -# Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# -############################################################################## - -from openerp.osv import fields, osv -from openerp.tools import config - -class documnet_ftp_setting(osv.osv_memory): - _name = 'knowledge.config.settings' - _inherit = 'knowledge.config.settings' - _columns = { - 'document_ftp_url': fields.char('Browse Documents', size=128, - help ="""Click the url to browse the documents""", readonly=True), - } - - def get_default_ftp_config(self, cr, uid, fields, context=None): - action = self.pool.get('ir.model.data').get_object(cr, uid, 'document_ftp', 'action_document_browse') - return {'document_ftp_url': action.url} - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
