|
@ -4,4 +4,9 @@ from openerp import models, fields |
|
|
class ResUsers(models.Model): |
|
|
class ResUsers(models.Model): |
|
|
_inherit = 'res.users' |
|
|
_inherit = 'res.users' |
|
|
|
|
|
|
|
|
super = fields.Boolean("Super Cooperative") |
|
|
|
|
|
|
|
|
super = fields.Boolean("Super Cooperative") |
|
|
|
|
|
|
|
|
|
|
|
class ResPartner(models.Model): |
|
|
|
|
|
_inherit = 'res.partner' |
|
|
|
|
|
|
|
|
|
|
|
super = fields.Boolean(related='user_ids.super', string="Super Cooperative", readonly=True) |