21 lines
511 B
Python
21 lines
511 B
Python
from odoo import models, fields
|
|
|
|
class ProductTemplate(models.Model):
|
|
_inherit = 'product.template'
|
|
|
|
is_kitchen_item = fields.Boolean(
|
|
string='Show in KDS',
|
|
default=False,
|
|
help="If checked, this product will appear in the Kitchen Display System when ordered."
|
|
)
|
|
|
|
|
|
class ProductProduct(models.Model):
|
|
_inherit = 'product.product'
|
|
|
|
is_kitchen_item = fields.Boolean(
|
|
related='product_tmpl_id.is_kitchen_item',
|
|
store=True,
|
|
readonly=False,
|
|
)
|