diff options
Diffstat (limited to 'addons/thunderbird')
29 files changed, 436 insertions, 101 deletions
diff --git a/addons/thunderbird/i18n/de.po b/addons/thunderbird/i18n/de.po index b475e32e102..ee24710fb72 100644 --- a/addons/thunderbird/i18n/de.po +++ b/addons/thunderbird/i18n/de.po @@ -8,14 +8,15 @@ msgid "" msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" -"POT-Creation-Date: 2010-10-18 17:47+0000\n" -"PO-Revision-Date: 2010-11-08 08:28+0000\n" -"Last-Translator: OpenERP Administrators <Unknown>\n" +"POT-Creation-Date: 2010-11-18 16:13+0000\n" +"PO-Revision-Date: 2010-12-01 08:14+0000\n" +"Last-Translator: Thorsten Vocks (OpenBig.org) <thorsten.vocks@big-" +"consulting.net>\n" "Language-Team: German <de@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-11-09 04:49+0000\n" +"X-Launchpad-Export-Date: 2010-12-02 04:50+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: thunderbird @@ -27,9 +28,9 @@ msgstr "" "beinhalten" #. module: thunderbird -#: constraint:ir.ui.menu:0 -msgid "Error ! You can not create recursive Menu." -msgstr "Fehler! Sie können keine rekursiven Menüeinträge erstellen." +#: constraint:ir.actions.act_window:0 +msgid "Invalid model name in the action definition." +msgstr "Ungültiger Modellname in der Aktionsdefinition." #. module: thunderbird #: field:thunderbird.installer,plugin_file:0 @@ -38,6 +39,11 @@ msgid "Thunderbird Plug-in" msgstr "Thunderbird Plug-in" #. module: thunderbird +#: sql_constraint:ir.module.module:0 +msgid "The name of the module must be unique !" +msgstr "Die Modulbezeichnung sollte eindeutig sein !" + +#. module: thunderbird #: help:thunderbird.installer,thunderbird:0 msgid "" "Allows you to select an object that you’d like to add to your email and its " @@ -45,13 +51,9 @@ msgid "" msgstr "Sie können ein Objekt zu Ihr EMail oder zu dem Anhang hizufügen" #. module: thunderbird -#: help:thunderbird.installer,plugin_file:0 -msgid "" -"Thunderbird plug-in file. Save as this file and install this plug-in in " -"thunderbird." -msgstr "" -"Thunderbird Plugin-Datei. Sichern Sie diese und installieren Sie diese in " -"Thunderbird" +#: constraint:ir.ui.menu:0 +msgid "Error ! You can not create recursive Menu." +msgstr "Fehler! Sie können keine rekursiven Menüeinträge erstellen." #. module: thunderbird #: help:thunderbird.installer,pdf_file:0 @@ -60,11 +62,6 @@ msgstr "" "Die Dokumentationsdatei : Wie wird das Thunderbird Plugin installiert" #. module: thunderbird -#: constraint:ir.actions.act_window:0 -msgid "Invalid model name in the action definition." -msgstr "Ungültiger Modellname in der Aktionsdefinition." - -#. module: thunderbird #: model:ir.model,name:thunderbird.model_email_server_tools msgid "Email Server Tools" msgstr "EMail Server HIlfsprogramme" @@ -75,6 +72,11 @@ msgid "_Close" msgstr "_Close" #. module: thunderbird +#: sql_constraint:ir.module.module:0 +msgid "The certificate ID of the module must be unique !" +msgstr "Die Zertifikat ID des Moduls sollte eindeutig sein !" + +#. module: thunderbird #: field:thunderbird.installer,pdf_file:0 msgid "Installation Manual" msgstr "Installationhandbuch" @@ -105,6 +107,15 @@ msgid "Thunderbird Interface" msgstr "Thunderbird Schnittstelle" #. module: thunderbird +#: help:thunderbird.installer,plugin_file:0 +msgid "" +"Thunderbird plug-in file. Save as this file and install this plug-in in " +"thunderbird." +msgstr "" +"Thunderbird Plugin-Datei. Sichern Sie diese und installieren Sie diese in " +"Thunderbird" + +#. module: thunderbird #: constraint:ir.ui.view:0 msgid "Invalid XML for View Architecture!" msgstr "Fehlerhafter xml Code für diese Ansicht!" @@ -151,6 +162,11 @@ msgstr "Überspringen" msgid "Image" msgstr "Bild / Photo" +#. module: thunderbird +#: sql_constraint:ir.model.fields:0 +msgid "Size of the field can never be less than 1 !" +msgstr "Die Größe des Feldes sollte niemals kleiner als 1 sein !" + #~ msgid "Reference" #~ msgstr "Referenz" diff --git a/addons/thunderbird/i18n/pt.po b/addons/thunderbird/i18n/pt.po new file mode 100644 index 00000000000..baa6cfd109c --- /dev/null +++ b/addons/thunderbird/i18n/pt.po @@ -0,0 +1,152 @@ +# Portuguese translation for openobject-addons +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2010-12-03 15:44+0000\n" +"PO-Revision-Date: 2010-12-03 07:49+0000\n" +"Last-Translator: OpenERP Administrators <Unknown>\n" +"Language-Team: Portuguese <pt@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2010-12-04 05:15+0000\n" +"X-Generator: Launchpad (build Unknown)\n" + +#. module: thunderbird +#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_installer +#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_wizard +msgid "Thunderbird Plug-In Configuration" +msgstr "Configuração do 'plug-in' para o Thunderbird" + +#. module: thunderbird +#: field:thunderbird.installer,pdf_file:0 +msgid "Installation Manual" +msgstr "Manual de Instalação" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "Configure" +msgstr "Configurar" + +#. module: thunderbird +#: model:ir.model,name:thunderbird.model_thunderbird_installer +msgid "thunderbird.installer" +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,description:0 +msgid "Description" +msgstr "Descrição" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "title" +msgstr "título" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "Skip" +msgstr "Ignorar" + +#. module: thunderbird +#: field:thunderbird.installer,name:0 +#: field:thunderbird.installer,pdf_name:0 +msgid "File name" +msgstr "Nome do ficheiro" + +#. module: thunderbird +#: model:ir.model,name:thunderbird.model_thunderbird_partner +msgid "Thunderbid mails" +msgstr "" + +#. module: thunderbird +#: model:ir.ui.menu,name:thunderbird.menu_base_config_plugins_thunderbird +msgid "Thunderbird Plug-In" +msgstr "'Plug-in' para o Thunderbird" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "_Close" +msgstr "_Fechar" + +#. module: thunderbird +#: help:thunderbird.installer,thunderbird:0 +msgid "" +"Allows you to select an object that you’d like to add to your email and its " +"attachments." +msgstr "" +"Permite-lhe selecionar um objeto que gostasse de adicionar à mensagem e aos " +"seus anexos" + +#. module: thunderbird +#: field:thunderbird.installer,plugin_file:0 +#: field:thunderbird.installer,thunderbird:0 +msgid "Thunderbird Plug-in" +msgstr "Plug-in para o Thunderbird" + +#. module: thunderbird +#: help:thunderbird.installer,pdf_file:0 +msgid "The documentation file :- how to install Thunderbird Plug-in." +msgstr "" +"Ficheiro de documentação :- como instalar o 'plug-in' para o Thunderbird" + +#. module: thunderbird +#: model:ir.model,name:thunderbird.model_email_server_tools +msgid "Email Server Tools" +msgstr "" + +#. module: thunderbird +#: model:ir.module.module,shortdesc:thunderbird.module_meta_information +msgid "Thunderbird Interface" +msgstr "Interface do Thunderbird" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "Installation and Configuration Steps" +msgstr "Instalação e passos da configuração" + +#. module: thunderbird +#: field:thunderbird.installer,config_logo:0 +msgid "Image" +msgstr "Imagem" + +#. module: thunderbird +#: help:thunderbird.installer,plugin_file:0 +msgid "" +"Thunderbird plug-in file. Save as this file and install this plug-in in " +"thunderbird." +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,progress:0 +msgid "Configuration Progress" +msgstr "Processo de configuração" + +#~ msgid "" +#~ "The Object name must start with x_ and not contain any special character !" +#~ msgstr "" +#~ "O nome do Objecto deve começar com x_ e não pode conter nenhum caracter " +#~ "especial !" + +#~ msgid "Error ! You can not create recursive Menu." +#~ msgstr "Erro! Não pode criar menus recursivos." + +#~ msgid "Invalid model name in the action definition." +#~ msgstr "Nome de modelo inválido na definição da ação" + +#~ msgid "The certificate ID of the module must be unique !" +#~ msgstr "O ID do certificado do módulo tem de ser único!" + +#~ msgid "The name of the module must be unique !" +#~ msgstr "O nome do módulo deve ser único!" + +#~ msgid "Invalid XML for View Architecture!" +#~ msgstr "XML inválido para a arquitetura de vista" + +#~ msgid "Size of the field can never be less than 1 !" +#~ msgstr "O tamanho do campo não pode ser inferior a 1 !" diff --git a/addons/thunderbird/i18n/pt_BR.po b/addons/thunderbird/i18n/pt_BR.po index 3996a3fe84b..91286969379 100644 --- a/addons/thunderbird/i18n/pt_BR.po +++ b/addons/thunderbird/i18n/pt_BR.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" "POT-Creation-Date: 2010-11-18 16:13+0000\n" -"PO-Revision-Date: 2010-11-25 03:39+0000\n" -"Last-Translator: Alexsandro Haag <Unknown>\n" +"PO-Revision-Date: 2010-11-25 19:17+0000\n" +"Last-Translator: OpenERP Administrators <Unknown>\n" "Language-Team: Brazilian Portuguese <pt_BR@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-11-25 04:57+0000\n" +"X-Launchpad-Export-Date: 2010-11-26 04:53+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: thunderbird diff --git a/addons/thunderbird/i18n/sr@latin.po b/addons/thunderbird/i18n/sr@latin.po new file mode 100644 index 00000000000..c1e6fcbc208 --- /dev/null +++ b/addons/thunderbird/i18n/sr@latin.po @@ -0,0 +1,175 @@ +# Serbian translation for openobject-addons +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2010-10-18 17:47+0000\n" +"PO-Revision-Date: 2010-07-21 07:40+0000\n" +"Last-Translator: novta <Unknown>\n" +"Language-Team: Serbian <sr@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2010-10-30 05:51+0000\n" +"X-Generator: Launchpad (build Unknown)\n" + +#. module: thunderbird +#: constraint:ir.model:0 +msgid "" +"The Object name must start with x_ and not contain any special character !" +msgstr "" +"Ime objekta mora da počne sa x_ i ne sme da sadrži specijalne karaktere !" + +#. module: thunderbird +#: constraint:ir.ui.menu:0 +msgid "Error ! You can not create recursive Menu." +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,plugin_file:0 +#: field:thunderbird.installer,thunderbird:0 +msgid "Thunderbird Plug-in" +msgstr "" + +#. module: thunderbird +#: help:thunderbird.installer,thunderbird:0 +msgid "" +"Allows you to select an object that you’d like to add to your email and its " +"attachments." +msgstr "" + +#. module: thunderbird +#: help:thunderbird.installer,plugin_file:0 +msgid "" +"Thunderbird plug-in file. Save as this file and install this plug-in in " +"thunderbird." +msgstr "" + +#. module: thunderbird +#: help:thunderbird.installer,pdf_file:0 +msgid "The documentation file :- how to install Thunderbird Plug-in." +msgstr "" + +#. module: thunderbird +#: constraint:ir.actions.act_window:0 +msgid "Invalid model name in the action definition." +msgstr "" + +#. module: thunderbird +#: model:ir.model,name:thunderbird.model_email_server_tools +msgid "Email Server Tools" +msgstr "" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "_Close" +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,pdf_file:0 +msgid "Installation Manual" +msgstr "" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "Configure" +msgstr "" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "title" +msgstr "" + +#. module: thunderbird +#: model:ir.model,name:thunderbird.model_thunderbird_partner +msgid "Thunderbid mails" +msgstr "Thunderbird pisma" + +#. module: thunderbird +#: model:ir.ui.menu,name:thunderbird.menu_base_config_plugins_thunderbird +msgid "Thunderbird Plug-In" +msgstr "" + +#. module: thunderbird +#: model:ir.module.module,shortdesc:thunderbird.module_meta_information +msgid "Thunderbird Interface" +msgstr "Thunderbird interfejs" + +#. module: thunderbird +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "" + +#. module: thunderbird +#: model:ir.model,name:thunderbird.model_thunderbird_installer +msgid "thunderbird.installer" +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,name:0 +#: field:thunderbird.installer,pdf_name:0 +msgid "File name" +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,progress:0 +msgid "Configuration Progress" +msgstr "" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "Installation and Configuration Steps" +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,description:0 +msgid "Description" +msgstr "Opis" + +#. module: thunderbird +#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_installer +#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_wizard +msgid "Thunderbird Plug-In Configuration" +msgstr "" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "Skip" +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,config_logo:0 +msgid "Image" +msgstr "" + +#~ msgid "Copy To" +#~ msgstr "Kopiraj u" + +#~ msgid "Date" +#~ msgstr "Datum" + +#~ msgid "Reference" +#~ msgstr "Referenca" + +#~ msgid "Subject" +#~ msgstr "Tema" + +#~ msgid "Receiver" +#~ msgstr "Primalac" + +#~ msgid "User" +#~ msgstr "Korisnik" + +#~ msgid "Attached Files" +#~ msgstr "Prikačeni fajlovi" + +#~ msgid "Sender" +#~ msgstr "Pošiljalac" + +#, python-format +#~ msgid "Archive" +#~ msgstr "Arhiva" diff --git a/addons/thunderbird/i18n/thunderbird.pot b/addons/thunderbird/i18n/thunderbird.pot index 3467a5fe068..cf7cf6905aa 100644 --- a/addons/thunderbird/i18n/thunderbird.pot +++ b/addons/thunderbird/i18n/thunderbird.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-11-18 16:13:19+0000\n" -"PO-Revision-Date: 2010-11-18 16:13:19+0000\n" +"POT-Creation-Date: 2010-12-03 15:44:39+0000\n" +"PO-Revision-Date: 2010-12-03 15:44:39+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,69 +16,45 @@ msgstr "" "Plural-Forms: \n" #. module: thunderbird -#: constraint:ir.model:0 -msgid "The Object name must start with x_ and not contain any special character !" -msgstr "" - -#. module: thunderbird -#: constraint:ir.actions.act_window:0 -msgid "Invalid model name in the action definition." -msgstr "" - -#. module: thunderbird -#: field:thunderbird.installer,plugin_file:0 -#: field:thunderbird.installer,thunderbird:0 -msgid "Thunderbird Plug-in" -msgstr "" - -#. module: thunderbird -#: sql_constraint:ir.module.module:0 -msgid "The name of the module must be unique !" +#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_installer +#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_wizard +msgid "Thunderbird Plug-In Configuration" msgstr "" #. module: thunderbird -#: help:thunderbird.installer,thunderbird:0 -msgid "Allows you to select an object that you’d like to add to your email and its attachments." +#: field:thunderbird.installer,pdf_file:0 +msgid "Installation Manual" msgstr "" #. module: thunderbird -#: constraint:ir.ui.menu:0 -msgid "Error ! You can not create recursive Menu." +#: view:thunderbird.installer:0 +msgid "Configure" msgstr "" #. module: thunderbird -#: help:thunderbird.installer,pdf_file:0 -msgid "The documentation file :- how to install Thunderbird Plug-in." +#: model:ir.model,name:thunderbird.model_thunderbird_installer +msgid "thunderbird.installer" msgstr "" #. module: thunderbird -#: model:ir.model,name:thunderbird.model_email_server_tools -msgid "Email Server Tools" +#: field:thunderbird.installer,description:0 +msgid "Description" msgstr "" #. module: thunderbird #: view:thunderbird.installer:0 -msgid "_Close" -msgstr "" - -#. module: thunderbird -#: sql_constraint:ir.module.module:0 -msgid "The certificate ID of the module must be unique !" -msgstr "" - -#. module: thunderbird -#: field:thunderbird.installer,pdf_file:0 -msgid "Installation Manual" +msgid "title" msgstr "" #. module: thunderbird #: view:thunderbird.installer:0 -msgid "Configure" +msgid "Skip" msgstr "" #. module: thunderbird -#: view:thunderbird.installer:0 -msgid "title" +#: field:thunderbird.installer,name:0 +#: field:thunderbird.installer,pdf_name:0 +msgid "File name" msgstr "" #. module: thunderbird @@ -92,34 +68,34 @@ msgid "Thunderbird Plug-In" msgstr "" #. module: thunderbird -#: model:ir.module.module,shortdesc:thunderbird.module_meta_information -msgid "Thunderbird Interface" +#: view:thunderbird.installer:0 +msgid "_Close" msgstr "" #. module: thunderbird -#: help:thunderbird.installer,plugin_file:0 -msgid "Thunderbird plug-in file. Save as this file and install this plug-in in thunderbird." +#: help:thunderbird.installer,thunderbird:0 +msgid "Allows you to select an object that you’d like to add to your email and its attachments." msgstr "" #. module: thunderbird -#: constraint:ir.ui.view:0 -msgid "Invalid XML for View Architecture!" +#: field:thunderbird.installer,plugin_file:0 +#: field:thunderbird.installer,thunderbird:0 +msgid "Thunderbird Plug-in" msgstr "" #. module: thunderbird -#: model:ir.model,name:thunderbird.model_thunderbird_installer -msgid "thunderbird.installer" +#: help:thunderbird.installer,pdf_file:0 +msgid "The documentation file :- how to install Thunderbird Plug-in." msgstr "" #. module: thunderbird -#: field:thunderbird.installer,name:0 -#: field:thunderbird.installer,pdf_name:0 -msgid "File name" +#: model:ir.model,name:thunderbird.model_email_server_tools +msgid "Email Server Tools" msgstr "" #. module: thunderbird -#: field:thunderbird.installer,progress:0 -msgid "Configuration Progress" +#: model:ir.module.module,shortdesc:thunderbird.module_meta_information +msgid "Thunderbird Interface" msgstr "" #. module: thunderbird @@ -128,28 +104,17 @@ msgid "Installation and Configuration Steps" msgstr "" #. module: thunderbird -#: field:thunderbird.installer,description:0 -msgid "Description" -msgstr "" - -#. module: thunderbird -#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_installer -#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_wizard -msgid "Thunderbird Plug-In Configuration" -msgstr "" - -#. module: thunderbird -#: view:thunderbird.installer:0 -msgid "Skip" +#: field:thunderbird.installer,config_logo:0 +msgid "Image" msgstr "" #. module: thunderbird -#: field:thunderbird.installer,config_logo:0 -msgid "Image" +#: help:thunderbird.installer,plugin_file:0 +msgid "Thunderbird plug-in file. Save as this file and install this plug-in in thunderbird." msgstr "" #. module: thunderbird -#: sql_constraint:ir.model.fields:0 -msgid "Size of the field can never be less than 1 !" +#: field:thunderbird.installer,progress:0 +msgid "Configuration Progress" msgstr "" diff --git a/addons/thunderbird/partner/partner.py b/addons/thunderbird/partner/partner.py index e6f5209917e..5c77c622c79 100644 --- a/addons/thunderbird/partner/partner.py +++ b/addons/thunderbird/partner/partner.py @@ -148,6 +148,7 @@ class thunderbird_partner(osv.osv_memory): dictcreate = dict(vals)
ref_ids = str(dictcreate.get('ref_ids')).split(';')
msg = dictcreate.get('message')
+ mail = msg
msg = self.pool.get('email.server.tools').parse_message(msg)
server_tools_pool = self.pool.get('email.server.tools')
message_id = msg.get('message-id', False)
@@ -183,11 +184,11 @@ class thunderbird_partner(osv.osv_memory): l = 64 - len(fn)
f = fn.split('.')
fn = f[0][0:l] + '.' + f[-1]
- fn = fn[:-4]+'.txt'
+ fn = fn[:-4]+'.eml'
res['res_model'] = model
- res['name'] = msg.get('subject','NO-SUBJECT')
+ res['name'] = msg.get('subject','NO-SUBJECT')+".eml"
res['datas_fname'] = fn
- res['datas'] = base64.b64encode(msg.get('body'))
+ res['datas'] = base64.b64encode(mail)
res['res_id'] = res_id
obj_attch.create(cr, uid, res)
server_tools_pool.history_message(cr, uid, model, res_id, msg_new)
@@ -203,8 +204,15 @@ class thunderbird_partner(osv.osv_memory): def search_message(self, cr, uid, message, context=None):
#@param message: string of mail which is read from EML File
#@return model,res_id
+ references = []
dictcreate = dict(message)
- message_id = dictcreate.get('message_id')
+ msg = dictcreate.get('message')
+ msg = self.pool.get('email.server.tools').parse_message(msg)
+ message_id = msg.get('message-id')
+ refs = msg.get('references',False)
+ references = False
+ if refs:
+ references = refs.split()
msg_pool = self.pool.get('mailgate.message')
model = ''
res_id = 0
@@ -214,6 +222,13 @@ class thunderbird_partner(osv.osv_memory): msg = msg_pool.browse(cr, uid, msg_ids[0])
model = msg.model
res_id = msg.res_id
+ else:
+ if references :
+ msg_ids = msg_pool.search(cr, uid, [('message_id','in',references)])
+ if msg_ids and len(msg_ids):
+ msg = msg_pool.browse(cr, uid, msg_ids[0])
+ model = msg.model
+ res_id = msg.res_id
return (model,res_id)
diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi Binary files differindex 943fba35329..8280eb4b805 100644 --- a/addons/thunderbird/plugin/openerp_plugin.xpi +++ b/addons/thunderbird/plugin/openerp_plugin.xpi diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar Binary files differindex 92bb3602292..b6f05eb6df2 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Account.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Account.png Binary files differindex b13f2b0f523..01ebf3f448f 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Account.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Account.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Archive.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Archive.png Binary files differindex 5aa6a958d37..a2000121f88 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Archive.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Archive.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Case.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Case.png Binary files differindex 9b950b8ea9d..8be68620e07 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Case.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Case.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Contact.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Contact.png Binary files differindex 9bd6f9f6059..a0cc2cf0b56 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Contact.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Contact.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Create.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Create.png Binary files differindex 1ab240c32cb..44b5213b203 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Create.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Create.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Invoice.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Invoice.png Binary files differindex 4551107ec3b..d4c977731ac 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Invoice.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Invoice.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/MoveDown.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/MoveDown.png Binary files differindex 3761ff1e747..666ee49a452 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/MoveDown.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/MoveDown.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/MoveLeft.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/MoveLeft.png Binary files differindex 031d7532673..6b7f01c996a 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/MoveLeft.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/MoveLeft.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/NEWT.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/NEWT.png Binary files differindex 373464bd53e..023d9f84b48 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/NEWT.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/NEWT.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/NEWT1.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/NEWT1.png Binary files differindex 2daac224a51..813342bdbe0 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/NEWT1.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/NEWT1.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Partner.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Partner.png Binary files differindex c661339598e..07724103a56 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Partner.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Partner.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Product.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Product.png Binary files differindex 51451e422ae..1903bf6a9e2 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Product.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Product.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Project.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Project.png Binary files differindex 0f8ea2af8f5..c99badabbe3 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Project.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Project.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Sale.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Sale.png Binary files differindex 1b0b44f890e..e594cd5a18d 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Sale.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Sale.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Task.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Task.png Binary files differindex 52056b1e713..dfdbff2b1e5 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Task.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/Task.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/developped_by.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/developped_by.png Binary files differindex 54dc465b421..d770eda704a 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/developped_by.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/developped_by.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/document-new.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/document-new.png Binary files differindex bdbe31c4bff..1dd63b98787 100755..100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/document-new.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/document-new.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/openerp-icon.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/openerp-icon.png Binary files differindex e2b45b52211..cb20b0bdfc4 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/openerp-icon.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/openerp-icon.png diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/partner_icon.png b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/partner_icon.png Binary files differindex b8f4a0f380b..f4450323c93 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/partner_icon.png +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/skin/partner_icon.png diff --git a/addons/thunderbird/plugin/openerp_plugin/defaults/preferences/tiny.js b/addons/thunderbird/plugin/openerp_plugin/defaults/preferences/tiny.js index 950f5c0139e..90d73d94caf 100755 --- a/addons/thunderbird/plugin/openerp_plugin/defaults/preferences/tiny.js +++ b/addons/thunderbird/plugin/openerp_plugin/defaults/preferences/tiny.js @@ -24,9 +24,9 @@ pref("extensions.tiny.partnername",""); pref("extensions.tiny.officeno",""); pref("extensions.tiny.phoneno",""); pref("extensions.tiny.address",""); -pref("extensions.tiny.listobject","Partner,Partner Address,Accout Invoice,Project,Product,Account,Sale Order,Project Task"); -pref("extensions.tiny.object","res.partner,res.partner.address,account.invoice,project.project,product.product,account.account,sale.order,project.task"); -pref("extensions.tiny.imagename","chrome://openerp_plugin/skin/Partner.png,chrome://openerp_plugin/skin/Contact.png,chrome://openerp_plugin/skin/Invoice.png,chrome://openerp_plugin/skin/Project.png,chrome://openerp_plugin/skin/Product.png,chrome://openerp_plugin/skin/Account.png,chrome://openerp_plugin/skin/Sale.png,chrome://openerp_plugin/skin/Case.png,chrome://openerp_plugin/skin/Task.png"); +pref("extensions.tiny.listobject","Partner,Accout Invoice,Product,Sale Order,Lead and opportunities"); +pref("extensions.tiny.object","res.partner,account.invoice,product.product,sale.order,crm.lead"); +pref("extensions.tiny.imagename","chrome://openerp_plugin/skin/Partner.png,chrome://openerp_plugin/skin/Invoice.png,chrome://openerp_plugin/skin/Product.png,chrome://openerp_plugin/skin/Sale.png,chrome://openerp_plugin/skin/Case.png"); pref("extensions.tiny.attachmentlength",""); pref("extensions.tiny.attachment",""); pref("extensions.tiny.db_list","false"); diff --git a/addons/thunderbird/plugin/openerp_plugin/packaging.sh b/addons/thunderbird/plugin/openerp_plugin/packaging.sh new file mode 100755 index 00000000000..5c1f48a9050 --- /dev/null +++ b/addons/thunderbird/plugin/openerp_plugin/packaging.sh @@ -0,0 +1,12 @@ +# Use this Shell Script for Cleaning & Compressing the chnages in Plugin +# Run this script using jar command. + +rm chrome/openerp_plugin.jar +rm ../openerp_plugin.xpi +cd chrome/openerp_plugin/ +jar cvf openerp_plugin.jar * +cd .. +mv openerp_plugin/openerp_plugin.jar openerp_plugin.jar +cd .. +zip -r ../openerp_plugin.xpi * + |
