Odoo modules related to point of sales
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
363 B

# -*- coding: utf-8 -*-
from odoo import models, fields
class RestaurantTable(models.Model):
_inherit = 'restaurant.table'
bookable = fields.Boolean(string="Bookable", default=False)
def name_get(self):
res = []
for table in self:
res.append((table.id, "{} ({} p.)".format(table.name, table.seats)))
return res