Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2454 Näkymät
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?

Avatar
Hylkää
Paras vastaus

this can help you 

https://youtu.be/p8gj1dEfYUM

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
maalisk. 15
4692
0
maalisk. 15
4036
1
huhtik. 22
3777
1
heinäk. 21
8614
1
lokak. 19
4592