[FIX] edi: improve generation/usage of edi_web_url_view for template rendering
authorXavier ALT <xal@openerp.com>
Mon, 20 Aug 2012 08:34:56 +0000 (10:34 +0200)
committerXavier ALT <xal@openerp.com>
Mon, 20 Aug 2012 08:34:56 +0000 (10:34 +0200)
commitbd5bc1ae18e33ddfbeb6309b66ba913108bdfed6
treefbf9b8b35fe45629fae2f2861ada0ba2735e68b7
parentdc7ed565d6fab02322028255fe065032cc364cf4
[FIX] edi: improve generation/usage of edi_web_url_view for template rendering

  - wrap edi_web_url_view generation to _edi_get_object_web_url_view() method.
  - automatically add 'edi_web_url_view' to all email.template rendering context

  - introduce LazyEdiWebUrlViewGetter class, to allow resolving record wihtin
    template rendering context - only when necessary. This to prevent generating
    unrequested edi_web_url_view links

bzr revid: xal@openerp.com-20120820083456-teqk4kdqe8mv59p8
addons/edi/models/__init__.py
addons/edi/models/edi.py
addons/edi/models/email_template.py [new file with mode: 0644]