Skip to content
Snippets Groups Projects

redner: sprint 2

Open Axel Prel requested to merge topic/18.0/RED-549 into branch/18.0
1 unresolved thread
3 files
+ 4
73
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 2
3
@@ -22,5 +22,6 @@
import logging
from odoo import _, fields, models # type: ignore[import-untyped]
from odoo.addons import converter
from odoo.exceptions import ValidationError # type: ignore[import-untyped]
@@ -25,7 +26,5 @@
from odoo.exceptions import ValidationError # type: ignore[import-untyped]
from ..converter import image
_logger = logging.getLogger(__name__)
@@ -124,5 +123,5 @@
def render_variable_hook(self, variables):
"""Override to add additional variables in mail "render template" func"""
variables.update({"image": lambda value: image(value)})
variables.update({"image": lambda value: converter.image(value)})
return super().render_variable_hook(variables)
Loading