diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 888c2cd7f2b..2ae910a36b3 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1196,7 +1196,7 @@ - + diff --git a/addons/base_crypt/i18n/es_CL.po b/addons/base_crypt/i18n/es_CL.po index fafe03b997b..98e08733973 100644 --- a/addons/base_crypt/i18n/es_CL.po +++ b/addons/base_crypt/i18n/es_CL.po @@ -8,19 +8,19 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-01-11 11:14+0000\n" -"PO-Revision-Date: 2011-06-06 18:09+0000\n" -"Last-Translator: doingit.cl \n" +"PO-Revision-Date: 2011-10-03 17:17+0000\n" +"Last-Translator: David Acevedo Toledo \n" "Language-Team: Spanish (Chile) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-09-05 05:58+0000\n" -"X-Generator: Launchpad (build 13830)\n" +"X-Launchpad-Export-Date: 2011-10-04 05:02+0000\n" +"X-Generator: Launchpad (build 14071)\n" #. module: base_crypt #: sql_constraint:res.users:0 msgid "You can not have two users with the same login !" -msgstr "" +msgstr "¡No puede tener dos usuarios con el mismo nombre!" #. module: base_crypt #: model:ir.model,name:base_crypt.model_res_users @@ -31,18 +31,19 @@ msgstr "res.users" #: constraint:res.users:0 msgid "The chosen company is not in the allowed companies for this user" msgstr "" -"La compañía seleccionada no está autorizada como compañía para este usuario" +"La compañía seleccionada no está dentro de las compañías autorizadas para " +"este usuario" #. module: base_crypt #: code:addons/base_crypt/crypt.py:132 #, python-format msgid "Please specify the password !" -msgstr "" +msgstr "¡Por favor, escriba una contraseña!" #. module: base_crypt #: model:ir.module.module,shortdesc:base_crypt.module_meta_information msgid "Base - Password Encryption" -msgstr "" +msgstr "Base - Encriptación de la Contraseña" #. module: base_crypt #: code:addons/base_crypt/crypt.py:132 @@ -70,3 +71,19 @@ msgid "" "unless you are using a secure protocol such as XML-RPCS.\n" " " msgstr "" +"Este módulo sustituye la contraseña escrita en texto plano por una " +"codificada,\n" +"previniendo que alguien pueda leer la contraseña original.\n" +"Para un usuario existente, el sustitución de la contraseña en texto plano se " +"realiza la primera vez\n" +"que el usuario se conecte después de instalar base_crypt.\n" +"Después de instalar este módulo los usuarios no podrán recuperar su " +"contraseña olvidada,\n" +"un administrador tendrá que cambiarla por una nueva.\n" +"\n" +"Nota: instalar este módulo no significa que pueda ignorar las medidas " +"básicas de seguridad,\n" +"como la contraseña que es enviada por el cliente que sigue sin ser " +"codificada en la red,\n" +"a menos que utilice un protocolo seguro como XML-RPCS.\n" +" " diff --git a/addons/base_tools/i18n/es_CL.po b/addons/base_tools/i18n/es_CL.po new file mode 100644 index 00000000000..47ebd7bd625 --- /dev/null +++ b/addons/base_tools/i18n/es_CL.po @@ -0,0 +1,32 @@ +# Spanish (Chile) translation for openobject-addons +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-01-11 11:14+0000\n" +"PO-Revision-Date: 2011-10-03 16:53+0000\n" +"Last-Translator: David Acevedo Toledo \n" +"Language-Team: Spanish (Chile) \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-10-04 05:02+0000\n" +"X-Generator: Launchpad (build 14071)\n" + +#. module: base_tools +#: model:ir.module.module,shortdesc:base_tools.module_meta_information +msgid "Common base for tools modules" +msgstr "Base común para módulos de herramientas" + +#. module: base_tools +#: model:ir.module.module,description:base_tools.module_meta_information +msgid "" +"\n" +" " +msgstr "" +"\n" +" " diff --git a/addons/board/i18n/es_CL.po b/addons/board/i18n/es_CL.po new file mode 100644 index 00000000000..1a603deddb1 --- /dev/null +++ b/addons/board/i18n/es_CL.po @@ -0,0 +1,395 @@ +# Spanish (Chile) translation for openobject-addons +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-01-11 11:14+0000\n" +"PO-Revision-Date: 2011-10-03 16:58+0000\n" +"Last-Translator: David Acevedo Toledo \n" +"Language-Team: Spanish (Chile) \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-10-04 05:01+0000\n" +"X-Generator: Launchpad (build 14071)\n" + +#. module: board +#: view:res.log.report:0 +msgid " Year " +msgstr " Año " + +#. module: board +#: model:ir.model,name:board.model_board_menu_create +msgid "Menu Create" +msgstr "Crear menú" + +#. module: board +#: view:board.note:0 +#: field:board.note.type,name:0 +#: model:ir.model,name:board.model_board_note_type +msgid "Note Type" +msgstr "Tipo de nota" + +#. module: board +#: view:board.note:0 +#: field:board.note,user_id:0 +msgid "Author" +msgstr "Autor" + +#. module: board +#: model:ir.module.module,shortdesc:board.module_meta_information +msgid "Dashboard main module" +msgstr "Módulo principal de tableros" + +#. module: board +#: view:res.users:0 +msgid "Latest Connections" +msgstr "Últimas conexiones" + +#. module: board +#: code:addons/board/wizard/board_menu_create.py:45 +#, python-format +msgid "User Error!" +msgstr "¡Error de usuario!" + +#. module: board +#: view:board.board:0 +#: model:ir.actions.act_window,name:board.open_board_administration_form +#: model:ir.ui.menu,name:board.menu_board_admin +msgid "Administration Dashboard" +msgstr "Tablero de Administración" + +#. module: board +#: view:board.note:0 +#: field:board.note,note:0 +#: model:ir.model,name:board.model_board_note +msgid "Note" +msgstr "Nota" + +#. module: board +#: view:board.note:0 +#: view:res.log.report:0 +msgid "Group By..." +msgstr "Agrupar por..." + +#. module: board +#: model:ir.model,name:board.model_board_board +msgid "Board" +msgstr "Tablero" + +#. module: board +#: view:board.board:0 +#: model:ir.actions.act_window,name:board.board_weekly_res_log_report_action +#: view:res.log.report:0 +msgid "Weekly Global Activity" +msgstr "Actividad global semanal" + +#. module: board +#: field:board.board.line,name:0 +msgid "Title" +msgstr "Título" + +#. module: board +#: field:res.log.report,nbr:0 +msgid "# of Entries" +msgstr "Nº de entradas" + +#. module: board +#: view:res.log.report:0 +#: field:res.log.report,month:0 +msgid "Month" +msgstr "Mes" + +#. module: board +#: model:ir.actions.act_window,name:board.dashboard_open +msgid "Open Dashboard" +msgstr "Abrir tablero" + +#. module: board +#: view:board.board:0 +#: model:ir.actions.act_window,name:board.board_monthly_res_log_report_action +#: view:res.log.report:0 +msgid "Monthly Activity per Document" +msgstr "Actividad mensual por documento" + +#. module: board +#: view:res.log.report:0 +msgid "Log Analysis" +msgstr "Análisis de registro" + +#. module: board +#: model:ir.actions.act_window,name:board.action_view_board_list_form +#: model:ir.ui.menu,name:board.menu_view_board_form +msgid "Dashboard Definition" +msgstr "Definición de tablero" + +#. module: board +#: selection:res.log.report,month:0 +msgid "March" +msgstr "Marzo" + +#. module: board +#: selection:res.log.report,month:0 +msgid "August" +msgstr "Agosto" + +#. module: board +#: view:board.board:0 +#: model:ir.actions.act_window,name:board.action_user_connection_tree +msgid "User Connections" +msgstr "Conexiones de usuario" + +#. module: board +#: field:res.log.report,creation_date:0 +msgid "Creation Date" +msgstr "Fecha de Creación" + +#. module: board +#: model:ir.actions.act_window,name:board.action_view_board_note_form +#: model:ir.ui.menu,name:board.menu_view_board_note_form +msgid "Publish a note" +msgstr "Publicar una nota" + +#. module: board +#: view:board.menu.create:0 +msgid "Menu Information" +msgstr "Información del menú" + +#. module: board +#: selection:res.log.report,month:0 +msgid "June" +msgstr "Junio" + +#. module: board +#: field:board.note,type:0 +msgid "Note type" +msgstr "Tipo de nota" + +#. module: board +#: field:board.board,line_ids:0 +msgid "Action Views" +msgstr "Vistas de acciones" + +#. module: board +#: model:ir.model,name:board.model_res_log_report +msgid "Log Report" +msgstr "Informe de registro" + +#. module: board +#: view:board.note:0 +#: field:board.note,date:0 +msgid "Date" +msgstr "Fecha" + +#. module: board +#: selection:res.log.report,month:0 +msgid "July" +msgstr "Julio" + +#. module: board +#: view:res.log.report:0 +msgid "Extended Filters..." +msgstr "Filtros extendidos..." + +#. module: board +#: view:res.log.report:0 +#: field:res.log.report,day:0 +msgid "Day" +msgstr "Dia" + +#. module: board +#: view:board.menu.create:0 +msgid "Create Menu For Dashboard" +msgstr "Crear menú para tablero" + +#. module: board +#: selection:res.log.report,month:0 +msgid "February" +msgstr "Febrero" + +#. module: board +#: selection:res.log.report,month:0 +msgid "October" +msgstr "Octubre" + +#. module: board +#: model:ir.model,name:board.model_board_board_line +msgid "Board Line" +msgstr "Línea tablero" + +#. module: board +#: field:board.menu.create,menu_parent_id:0 +msgid "Parent Menu" +msgstr "Menú padre" + +#. module: board +#: view:res.log.report:0 +msgid " Month-1 " +msgstr " Mes-1 " + +#. module: board +#: selection:res.log.report,month:0 +msgid "January" +msgstr "Enero" + +#. module: board +#: view:board.note:0 +msgid "Notes" +msgstr "Notas" + +#. module: board +#: selection:res.log.report,month:0 +msgid "November" +msgstr "Noviembre" + +#. module: board +#: help:board.board.line,sequence:0 +msgid "" +"Gives the sequence order when displaying a list of " +"board lines." +msgstr "" +"Indica el orden de secuencia cuando se muestra una lista de líneas de " +"tablero." + +#. module: board +#: selection:res.log.report,month:0 +msgid "April" +msgstr "Abril" + +#. module: board +#: view:board.board:0 +#: field:board.board,name:0 +#: field:board.board.line,board_id:0 +#: model:ir.ui.menu,name:board.admin_menu_dasboard +#: model:ir.ui.menu,name:board.menu_dasboard +msgid "Dashboard" +msgstr "Tablero" + +#. module: board +#: model:ir.module.module,description:board.module_meta_information +msgid "Base module for all dashboards." +msgstr "Módulo base para todos los tableros." + +#. module: board +#: field:board.board.line,action_id:0 +msgid "Action" +msgstr "Acción." + +#. module: board +#: field:board.board.line,position:0 +msgid "Position" +msgstr "Posición" + +#. module: board +#: view:res.log.report:0 +msgid "Model" +msgstr "Modelo" + +#. module: board +#: field:board.menu.create,menu_name:0 +msgid "Menu Name" +msgstr "Nombre del menú" + +#. module: board +#: view:board.board:0 +#: model:ir.actions.act_window,name:board.action_latest_activities_tree +msgid "Latest Activities" +msgstr "Últimas actividades" + +#. module: board +#: selection:board.board.line,position:0 +msgid "Left" +msgstr "Izquieda" + +#. module: board +#: field:board.board,view_id:0 +msgid "Board View" +msgstr "Vista de tablero" + +#. module: board +#: selection:board.board.line,position:0 +msgid "Right" +msgstr "Derecha" + +#. module: board +#: field:board.board.line,width:0 +msgid "Width" +msgstr "Ancho" + +#. module: board +#: view:res.log.report:0 +msgid " Month " +msgstr " Mes " + +#. module: board +#: field:board.board.line,sequence:0 +msgid "Sequence" +msgstr "Secuencia" + +#. module: board +#: selection:res.log.report,month:0 +msgid "September" +msgstr "Septiembre" + +#. module: board +#: selection:res.log.report,month:0 +msgid "December" +msgstr "Diciembre" + +#. module: board +#: view:board.board:0 +#: view:board.menu.create:0 +msgid "Create Menu" +msgstr "Crear Menú" + +#. module: board +#: field:board.board.line,height:0 +msgid "Height" +msgstr "Alto" + +#. module: board +#: model:ir.actions.act_window,name:board.action_board_menu_create +msgid "Create Board Menu" +msgstr "Crear menú del tablero" + +#. module: board +#: selection:res.log.report,month:0 +msgid "May" +msgstr "Mayo" + +#. module: board +#: field:res.log.report,res_model:0 +msgid "Object" +msgstr "Objeto" + +#. module: board +#: view:res.log.report:0 +#: field:res.log.report,name:0 +msgid "Year" +msgstr "Año" + +#. module: board +#: view:board.menu.create:0 +msgid "Cancel" +msgstr "Cancelar" + +#. module: board +#: view:board.board:0 +msgid "Dashboard View" +msgstr "Vista de tablero" + +#. module: board +#: code:addons/board/wizard/board_menu_create.py:46 +#, python-format +msgid "Please Insert Dashboard View(s) !" +msgstr "¡Por favor inserte alguna vista de tablero!" + +#. module: board +#: view:board.note:0 +#: field:board.note,name:0 +msgid "Subject" +msgstr "Asunto" diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index e7f7250458b..d1e23f49166 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -25,6 +25,14 @@ from imaplib import IMAP4 from imaplib import IMAP4_SSL from poplib import POP3 from poplib import POP3_SSL +try: + import cStringIO as StringIO +except ImportError: + import StringIO + +import zipfile +import base64 +import addons import netsvc from osv import osv, fields @@ -46,11 +54,12 @@ class fetchmail_server(osv.osv): ('draft', 'Not Confirmed'), ('done', 'Confirmed'), ], 'State', select=True, readonly=True), - 'server' : fields.char('Server Name', size=256, required=True, readonly=True, help="Hostname or IP of the mail server", states={'draft':[('readonly', False)]}), - 'port' : fields.integer('Port', required=True, readonly=True, states={'draft':[('readonly', False)]}), + 'server' : fields.char('Server Name', size=256, readonly=True, help="Hostname or IP of the mail server", states={'draft':[('readonly', False)]}), + 'port' : fields.integer('Port', readonly=True, states={'draft':[('readonly', False)]}), 'type':fields.selection([ ('pop', 'POP Server'), ('imap', 'IMAP Server'), + ('local', 'Local Server'), ], 'Server Type', select=True, required=True, readonly=False), 'is_ssl':fields.boolean('SSL/TLS', help="Connections are encrypted with SSL/TLS through a dedicated port (default: IMAPS=993, POP3S=995)"), 'attach':fields.boolean('Keep Attachments', help="Whether attachments should be downloaded. " @@ -58,8 +67,8 @@ class fetchmail_server(osv.osv): 'original':fields.boolean('Keep Original', help="Whether a full original copy of each email should be kept for reference" "and attached to each processed message. This will usually double the size of your message database."), 'date': fields.datetime('Last Fetch Date', readonly=True), - 'user' : fields.char('Username', size=256, required=True, readonly=True, states={'draft':[('readonly', False)]}), - 'password' : fields.char('Password', size=1024, required=True, readonly=True, states={'draft':[('readonly', False)]}), + 'user' : fields.char('Username', size=256, readonly=True, states={'draft':[('readonly', False)]}), + 'password' : fields.char('Password', size=1024, readonly=True, states={'draft':[('readonly', False)]}), 'action_id':fields.many2one('ir.actions.server', 'Server Action', help="Optional custom server action to trigger for each incoming mail, " "on the record that was created or updated by this mail"), 'object_id': fields.many2one('ir.model', "Create a New Record", required=True, help="Process each incoming mail as part of a conversation " @@ -69,6 +78,8 @@ class fetchmail_server(osv.osv): 'priority': fields.integer('Server Priority', readonly=True, states={'draft':[('readonly', False)]}, help="Defines the order of processing, " "lower values mean higher priority"), 'message_ids': fields.one2many('mail.message', 'fetchmail_server_id', 'Messages', readonly=True), + 'configuration' : fields.text('Configuration'), + 'script' : fields.char('Script', readonly=True, size=64), } _defaults = { 'state': "draft", @@ -76,31 +87,36 @@ class fetchmail_server(osv.osv): 'active': True, 'priority': 5, 'attach': True, + 'script': '/mail/static/scripts/openerp_mailgate.py', } - def default_get(self, cr, uid, fields, context=None): - if context is None: - context = {} - result = super(fetchmail_server, self).default_get(cr, uid, fields, context=context) - - model = context.pop('fetchmail_model', False) or False - - if isinstance(model, basestring): - model_id = self.pool.get('ir.model').search(cr, uid, [('model', '=', model)], context=context) - result.update( - object_id = model_id[0], - ) - - return result - - def onchange_server_type(self, cr, uid, ids, server_type=False, ssl=False): + def onchange_server_type(self, cr, uid, ids, server_type=False, ssl=False, object_id=False): port = 0 + values = {} if server_type == 'pop': port = ssl and 995 or 110 elif server_type == 'imap': port = ssl and 993 or 143 - return {'value':{'port':port}} + else: + values['server'] = '' + values['port'] = port + + conf = { + 'dbname' : cr.dbname, + 'uid' : uid, + 'model' : 'MODELNAME', + } + if object_id: + m = self.pool.get('ir.model') + r = m.read(cr,uid,[object_id],['model']) + conf['model']=r[0]['model'] + values['configuration'] = """Use the below script with the following command line options with your Mail Transport Agent (MTA) + +openerp_mailgate.py -u %(uid)d -p PASSWORD -o %(model)s -d %(dbname)s --host=HOSTNAME --port=PORT +""" % conf + + return {'value':values} def set_draft(self, cr, uid, ids, context=None): self.write(cr, uid, ids , {'state':'draft'}) diff --git a/addons/fetchmail/fetchmail_view.xml b/addons/fetchmail/fetchmail_view.xml index 61992629b2a..4cd182c0818 100644 --- a/addons/fetchmail/fetchmail_view.xml +++ b/addons/fetchmail/fetchmail_view.xml @@ -25,29 +25,34 @@ form
- + - + - + - - + + - + - - + + - + + + + + + @@ -59,7 +64,7 @@ - +