mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-26 10:22:05 +02:00
13 lines
423 B
Python
13 lines
423 B
Python
|
|
from odoo.addons.account.controllers.portal import PortalAccount
|
|
from odoo import http
|
|
from odoo.http import request
|
|
|
|
|
|
class Portal(PortalAccount):
|
|
@http.route()
|
|
def portal_my_invoice_detail(self, *args, **kw):
|
|
""" Override
|
|
force QR code generation from QRIS to come only from portal"""
|
|
request.update_context(is_online_qr=True)
|
|
return super().portal_my_invoice_detail(*args, **kw)
|