跳至内容
菜单
此问题已终结
1658 查看

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?.






形象
丢弃
相关帖文 回复 查看 活动
3
7月 25
4571
0
5月 25
1013
3
11月 24
30347
2
3月 24
2224
0
1月 23
1819