[IMP] base_setup, project: move model of project settings into project

bzr revid: rco@openerp.com-20120326144952-3gn46dewqi21zdoq
This commit is contained in:
Raphael Collet
2012-03-26 16:49:52 +02:00
parent 03a5d9e56c
commit c4941feee3
2 changed files with 2 additions and 19 deletions
-6
View File
@@ -210,10 +210,4 @@ class sale_config_settings(osv.osv_memory):
_name = 'sale.config.settings'
_inherit = 'res.config.settings'
# Preferences wizard for Projects & CRM.
# It is defined here because it must be inherited independently in modules project and crm_claim.
class project_config_settings(osv.osv_memory):
_name = 'project.config.settings'
_inherit = 'res.config.settings'
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+2 -13
View File
@@ -22,7 +22,8 @@
from osv import osv, fields
class project_configuration(osv.osv_memory):
_inherit = 'project.config.settings'
_name = 'project.config.settings'
_inherit = 'res.config.settings'
_columns = {
'module_project_mrp': fields.boolean('Create tasks directly from a sale order',
@@ -57,16 +58,4 @@ class project_configuration(osv.osv_memory):
This installs the module project_issue_sheet."""),
}
def onchange_server_type(self, cr, uid, ids, server_type=False, ssl=False , type=[]):
port = 0
values = {}
if server_type == 'pop':
port = ssl and 995 or 110
elif server_type == 'imap':
port = ssl and 993 or 143
else:
values[type+'_server'] = ''
values[type+'_port'] = port
return {'value': values}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: