[IMP] pos_restaurant: table_id, customer_count fields readonly
currently the table_id, customer_count fields are editable from the pos order form in the backend and all the other fields are readonly closes odoo/odoo#107135 Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
This commit is contained in:
@@ -20,8 +20,8 @@ class PosOrderLine(models.Model):
|
||||
class PosOrder(models.Model):
|
||||
_inherit = 'pos.order'
|
||||
|
||||
table_id = fields.Many2one('restaurant.table', string='Table', help='The table where this order was served', index='btree_not_null')
|
||||
customer_count = fields.Integer(string='Guests', help='The amount of customers that have been served by this order.')
|
||||
table_id = fields.Many2one('restaurant.table', string='Table', help='The table where this order was served', index='btree_not_null', readonly=True)
|
||||
customer_count = fields.Integer(string='Guests', help='The amount of customers that have been served by this order.', readonly=True)
|
||||
multiprint_resume = fields.Char(string='Multiprint Resume', help="Last printed state of the order")
|
||||
|
||||
def _get_pack_lot_lines(self, order_lines):
|
||||
|
||||
Reference in New Issue
Block a user