Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5594 Visualizzazioni

I created a odoo custom module using python

The problem is that the records created in one company can be seen from another company 

how to make the records accruable by the company that created them only.

Avatar
Abbandona
Risposta migliore

Hi, 

You can see following for this, it has complete explanation for company_dependent fields alongwith access restriction and python code:

https://youtu.be/GkNgc-fZO-I

Hope it helps,

Thanks

Avatar
Abbandona
Risposta migliore

Normally, you should have a Global Record Rule like this:

['|',
('company_id','in', company_ids),
('company_id','=',False)]
You will find this Record Rule exists for many Models in Odoo.


This might also be helpful: https://www.odoo.com/documentation/13.0/howtos/company.html

Avatar
Abbandona
Autore

I mean separate completely like accounting for example

Yes, Record Rules are how Odoo separates companies.

Post correlati Risposte Visualizzazioni Attività
0
nov 21
2580
1
dic 20
9034
2
giu 20
5478
1
apr 20
9600
8
mar 20
5299