mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-21 22:12:10 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
from . import res_partner
|
||||
from . import pos_session
|
||||
|
|
@ -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
|
||||
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue