[FIX] edi: fix wrong if conditions
bzr revid: xal@openerp.com-20120820101153-ca5tnbzhume60bzi
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user