Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2298 Lượt xem
Greetings. I want some guidance. 
I need to register several users, and their data is totally independent of the others.
For example I have this model:

class Operative(models.Model):
_name = 'operatives'.
_description = 'operatives'
name = fields.Char(string='Name', required=True)
amount = fields.Float(string='Amount', required=True)
max_entries_id = fields.Many2one(comodel_name='maxentries', string='Max. Entries', required=True)
percent_id = fields.Many2one(comodel_name='percent', string='Cap. percent', required=True)
    
    res_partner_id = ??????

Now I want to associate the data of that table, only to the user that created it, and that this user only can see his data.
How can I do it, should I make a "company" for each user, or which tables should I relate to the Operative table?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

this can help you 

https://youtu.be/p8gj1dEfYUM

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 15
4587
0
thg 3 15
3867
1
thg 4 22
3561
1
thg 7 21
8483
1
thg 10 19
4454