Browse Source

Merge PR #1621 into 10.0

Signed-off-by pedrobaeza
10.0
OCA-git-bot 5 years ago
parent
commit
561d490355
  1. 7
      fetchmail_attach_from_folder/__manifest__.py
  2. 4
      fetchmail_attach_from_folder/models/fetchmail_server.py

7
fetchmail_attach_from_folder/__manifest__.py

@ -4,7 +4,7 @@
{
'name': 'Email gateway - folders',
'summary': 'Attach mails in an IMAP folder to existing objects',
'version': '10.0.1.0.0',
'version': '10.0.1.1.0',
'author': 'Therp BV,Odoo Community Association (OCA)',
'website': 'http://www.therp.nl',
'license': 'AGPL-3',
@ -17,9 +17,4 @@
],
'installable': True,
'auto_install': False,
'external_dependencies': {
'python': [
'simplejson',
],
},
}

4
fetchmail_attach_from_folder/models/fetchmail_server.py

@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
import re
import simplejson
import json
from lxml import etree
from odoo import _, api, fields, models
@ -111,7 +111,7 @@ class FetchmailServer(models.Model):
nocopy=True)
modifier_dict = modifiers[field.attrib['name']]
combined_dict = dict(original_dict, **modifier_dict)
field.set('modifiers', simplejson.dumps(combined_dict))
field.set('modifiers', json.dumps(combined_dict))
if (field.tag == 'field' and
field.get('name') == 'match_algorithm'):
field.set('help', docstr)

Loading…
Cancel
Save