[ADD]partner_profiles_pos:show only main profiles in POS client list

This commit is contained in:
2026-01-14 15:22:59 +01:00
committed by laetitiadacosta
parent 721daadbb2
commit 990bec6983
8 changed files with 789 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
from odoo import models
class PosSession(models.Model):
"""Helps to load new fields to the session"""
_inherit = 'pos.session'
def _loader_params_res_partner(self):
res = super()._loader_params_res_partner()
res["search_params"]["fields"] += [
"is_main_profile",
]
return res