pos_floor.py 601 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. # Copyright 2017 OpenSynergy Indonesia
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from openerp import models, fields
  5. class PosFloor(models.Model):
  6. _name = "pos.floor"
  7. _description = "Restaurant Floor"
  8. name = fields.Char(
  9. string="Floor",
  10. required=True,
  11. )
  12. pos_config_id = fields.Many2one(
  13. string="PoS",
  14. comodel_name="pos.config",
  15. required=True,
  16. )
  17. table_ids = fields.One2many(
  18. string="Tables",
  19. comodel_name="pos.table",
  20. inverse_name="floor_id",
  21. )