Skip to Content
Menu
This question has been flagged
1002 Views

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
Discard
Related Posts Replies Views Activity
3
Nov 24
26645
2
Mar 24
574
0
Feb 24
1200
0
Jan 23
708
1
Nov 22
1765