Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1657 Prikazi

I have this class...

class Invest(models.Model):
    _name = 'module.nl
    _description = 'module.nl'
    date = fields.Datetime(string='Fecha', required=True)
    initial = fields.Float(string='Inicial', required=True)
    withdraw = fields.Float(string='Retiros', required=True)
    ok = fields.Float(string='Ok', required=True)
    reinvestment = fields.Float(string='Reinversión', required=True)
    balance = fields.Float(string='Balance', required=True)
    user_id = fields.Many2one('res.users', string='User', required=True, ondelete='restrict')


This record is created by admin user. Admin user needs see all this records, but the user can see ony his records(user_id) created by admin... 

Is possible, by domain rules way, filter this records for all users?.






Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
jul. 25
4569
0
maj 25
1013
3
nov. 24
30344
2
mar. 24
2224
0
jan. 23
1818