| 1 | # -*- coding: utf-8 -*- |
| 2 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 3 | |
| 4 | from odoo import fields, models, api |
| 5 | |
| 6 | |
| 7 | class PosSession(models.Model): |
| 8 | _inherit = 'pos.session' |
| 9 | |
| 10 | crm_team_id = fields.Many2one('crm.team', related='config_id.crm_team_id', string="Sales Team", readonly=True) |
| 11 | |
| 12 | @api.model |
| 13 | def _load_pos_data_models(self, config): |
| 14 | data = super()._load_pos_data_models(config) |
| 15 | data += ['sale.order', 'sale.order.line'] |
| 16 | return data |