# -*- 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