Browse Source

[FIX] put import in try block

pull/1/head
Ivan Yelizariev 9 years ago
parent
commit
16837b20ab
  1. 7
      models.py

7
models.py

@ -1,7 +1,14 @@
from openerp.osv import osv,fields as old_fields from openerp.osv import osv,fields as old_fields
from openerp import api, models, fields, tools from openerp import api, models, fields, tools
from openerp.tools.safe_eval import safe_eval from openerp.tools.safe_eval import safe_eval
try:
from openerp.addons.email_template.email_template import mako_template_env from openerp.addons.email_template.email_template import mako_template_env
except ImportError:
try:
from openerp.addons.mail.mail_template import mako_template_env
except ImportError:
pass
import copy import copy
from openerp.tools.translate import _ from openerp.tools.translate import _
from datetime import date, datetime, timedelta from datetime import date, datetime, timedelta

Loading…
Cancel
Save