mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
13 lines
387 B
Python
13 lines
387 B
Python
# Copyright 2020 Tecnativa - Ernesto Tejeda
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo.addons.rma.controllers.main import PortalRma
|
|
|
|
|
|
class PortalRma(PortalRma):
|
|
def _get_filter_domain(self, kw):
|
|
res = super()._get_filter_domain(kw)
|
|
if "sale_id" in kw:
|
|
res.append(("order_id", "=", int(kw["sale_id"])))
|
|
return res
|