From ace7766971532914234e1cccb2bc7fef9446c14a Mon Sep 17 00:00:00 2001 From: Gert Pellin Date: Tue, 18 Jun 2019 08:50:13 +0000 Subject: [PATCH] [FIX] pos_restaurant: missing fields note, mp_skip The note and mp_skip field of pos.order.line only exist in the frontend application, this causes errors in some task of the PoS and IoT teams. This pr adds the fields to the database, resolving these problems. closes odoo/odoo#34210 Signed-off-by: Quentin Lejeune (qle) --- addons/pos_restaurant/models/pos_order.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/pos_restaurant/models/pos_order.py b/addons/pos_restaurant/models/pos_order.py index 80598149010..fa6ba65eec5 100644 --- a/addons/pos_restaurant/models/pos_order.py +++ b/addons/pos_restaurant/models/pos_order.py @@ -4,6 +4,13 @@ from odoo import api, fields, models +class PosOrderLine(models.Model): + _inherit = 'pos.order.line' + + note = fields.Char('Note added by the waiter.') + mp_skip = fields.Boolean('Skip line when sending ticket to kitchen printers.') + + class PosOrder(models.Model): _inherit = 'pos.order'