Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions

View file

@ -0,0 +1,2 @@
from . import res_partner
from . import pos_session

View file

@ -0,0 +1,12 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class POSSession(models.Model):
_inherit = "pos.session"
def _loader_params_res_partner(self):
res = super()._loader_params_res_partner()
res["search_params"]["fields"].extend(["firstname", "lastname", "is_company"])
return res

View file

@ -0,0 +1,13 @@
# Copyright 2019 Roberto Fichera
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class ResPartner(models.Model):
_inherit = "res.partner"
@api.model
def get_names_order(self):
"""Allow POS frontend to retrieve 'partner_names_order'"""
return self._get_names_order()