mirror of
https://github.com/bringout/oca-ocb-pos.git
synced 2026-04-24 04:02:03 +02:00
13 lines
483 B
Python
13 lines
483 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class PosOrderLine(models.Model):
|
|
_inherit = 'pos.order.line'
|
|
course_id = fields.Many2one('restaurant.order.course', string="Course Ref", ondelete="set null", index='btree_not_null')
|
|
|
|
@api.model
|
|
def _load_pos_data_fields(self, config):
|
|
result = super()._load_pos_data_fields(config)
|
|
return result + ["course_id"]
|