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.
12 lines
328 B
12 lines
328 B
# -*- coding: utf-8 -*-
|
|
from openerp import models, fields
|
|
|
|
class ResUsers(models.Model):
|
|
_inherit = 'res.users'
|
|
|
|
super = fields.Boolean("Super Cooperative")
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = 'res.partner'
|
|
|
|
super = fields.Boolean(related='user_ids.super', string="Super Cooperative", readonly=True)
|