[FIX] edi: fix wrong if conditions
authorXavier ALT <xal@openerp.com>
Mon, 20 Aug 2012 10:11:53 +0000 (12:11 +0200)
committerXavier ALT <xal@openerp.com>
Mon, 20 Aug 2012 10:11:53 +0000 (12:11 +0200)
bzr revid: xal@openerp.com-20120820101153-ca5tnbzhume60bzi

addons/edi/models/edi.py

index de172e5..2a036ac 100644 (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]