Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
5591 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

I mean separate completely like accounting for example

Yes, Record Rules are how Odoo separates companies.

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Nov. 21
2576
1
Dez. 20
9034
2
Juni 20
5475
1
Apr. 20
9594
8
März 20
5293