projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd5bc1a
)
[FIX] edi: fix wrong if conditions
author
Xavier ALT
<xal@openerp.com>
Mon, 20 Aug 2012 10:11:53 +0000
(12:11 +0200)
committer
Xavier 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
patch
|
blob
|
history
diff --git
a/addons/edi/models/edi.py
b/addons/edi/models/edi.py
index
de172e5
..
2a036ac
100644
(file)
--- a/
addons/edi/models/edi.py
+++ b/
addons/edi/models/edi.py
@@
-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]