Skip to content
Permalink
Browse files

[FIX] website: need to load payment translation too.

Closes #40826

closes #40908

X-original-commit: 5397ced
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
  • Loading branch information
JKE-be committed Nov 26, 2019
1 parent dd54b42 commit a5dee68c3e78e71f2d1329a443e4f5711bf22dfc
Showing with 13 additions and 0 deletions.
  1. +1 −0 addons/payment/models/__init__.py
  2. +12 −0 addons/payment/models/ir_http.py
@@ -4,3 +4,4 @@
from . import res_partner
from . import account_payment
from . import chart_template
from . import ir_http
@@ -0,0 +1,12 @@
# coding: utf-8
from odoo import models
from odoo.osv import expression


class IrHttp(models.AbstractModel):
_inherit = 'ir.http'

@classmethod
def _get_translation_frontend_modules_domain(cls):
domain = super(IrHttp, cls)._get_translation_frontend_modules_domain()
return expression.OR([domain, [('name', '=ilike', 'payment%')]])

0 comments on commit a5dee68

Please sign in to comment.
You can’t perform that action at this time.