[FIX] edi: fix wrong if conditions

bzr revid: xal@openerp.com-20120820101153-ca5tnbzhume60bzi
This commit is contained in:
Xavier ALT
2012-08-20 12:11:53 +02:00
parent bd5bc1ae18
commit 2ac69f518d
+1 -1
View File
@@ -488,7 +488,7 @@ class EDIMixin(object):
def _edi_get_object_web_url_view(self, cr, uid, record, context=None):
web_root_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url')
if web_root_url:
if not web_root_url:
_logger.warning('Ignoring EDI mail notification, web.base.url not defined in parameters')
return ''
edi_token = self.pool.get('edi.document').export_edi(cr, uid, [record], context=context)[0]