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.

20 lines
769 B

  1. # Copyright (C) 2018 - Today: GRAP (http://www.grap.coop)
  2. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from odoo import api, fields, models
  5. class PosConfig(models.Model):
  6. _inherit = 'pos.config'
  7. group_pos_place_user_id = fields.Many2one(
  8. 'res.groups', string='Point of Sale Place User Group',
  9. compute='_compute_group_pos_place_user_id',
  10. help="This field is there to pass the id of the pos place user"
  11. " group to the point of sale client.")
  12. @api.multi
  13. def _compute_group_pos_place_user_id(self):
  14. for config in self:
  15. config.group_pos_place_user_id =\
  16. self.env.ref('pos_place.group_pos_place_user')