pos_floor_config.py 514 B

123456789101112131415161718192021
  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 PosFloorConfig(models.Model):
  6. _name = "pos.floor_config"
  7. _description = "PoS Floor Config"
  8. pos_id = fields.Many2one(
  9. string="PoS",
  10. comodel_name="pos.config",
  11. required=True,
  12. )
  13. floor_id = fields.Many2one(
  14. string="Floor",
  15. comodel_name="pos.floor",
  16. required=True,
  17. )