pos_reverse_downpayment/models/pos_config.py
2026-02-27 17:58:49 +07:00

16 lines
485 B
Python

# -*- coding: utf-8 -*-
from odoo import models
class PosConfig(models.Model):
_inherit = 'pos.config'
def _get_special_products(self):
"""
Remove down payment products from the special products list
so they can be manually selected in the POS UI.
"""
res = super()._get_special_products()
down_payment_products = self.env['pos.config'].search([]).mapped('down_payment_product_id')
return res - down_payment_products