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

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