[ADD]partner_profiles_pos:show only main profiles in POS client list
This commit is contained in:
1
partner_profiles_pos/models/__init__.py
Normal file
1
partner_profiles_pos/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import pos_session
|
||||
13
partner_profiles_pos/models/pos_session.py
Normal file
13
partner_profiles_pos/models/pos_session.py
Normal 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
|
||||
Reference in New Issue
Block a user