mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-26 21:52:01 +02:00
16 lines
500 B
Python
16 lines
500 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models, api
|
|
|
|
|
|
class PosSession(models.Model):
|
|
_inherit = 'pos.session'
|
|
|
|
crm_team_id = fields.Many2one('crm.team', related='config_id.crm_team_id', string="Sales Team", readonly=True)
|
|
|
|
@api.model
|
|
def _load_pos_data_models(self, config):
|
|
data = super()._load_pos_data_models(config)
|
|
data += ['sale.order', 'sale.order.line']
|
|
return data
|