diff --git a/beesdoo_shift/models/res_users.py b/beesdoo_shift/models/res_users.py index 82452d0..6c1aa68 100644 --- a/beesdoo_shift/models/res_users.py +++ b/beesdoo_shift/models/res_users.py @@ -4,4 +4,9 @@ from openerp import models, fields class ResUsers(models.Model): _inherit = 'res.users' - super = fields.Boolean("Super Cooperative") \ No newline at end of file + super = fields.Boolean("Super Cooperative") + +class ResPartner(models.Model): + _inherit = 'res.partner' + + super = fields.Boolean(related='user_ids.super', string="Super Cooperative", readonly=True) \ No newline at end of file diff --git a/beesdoo_shift/views/res_users.xml b/beesdoo_shift/views/res_users.xml index d88bcf7..da6374a 100644 --- a/beesdoo_shift/views/res_users.xml +++ b/beesdoo_shift/views/res_users.xml @@ -10,4 +10,17 @@ + + + Partner Super Coop + res.partner + + + + + + + + +