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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Hi,
You can see following for this, it has complete explanation for company_dependent fields alongwith access restriction and python code:
Hope it helps,
Thanks
Normally, you should have a Global Record Rule like this:
['|',You will find this Record Rule exists for many Models in Odoo.
('company_id','in', company_ids),
('company_id','=',False)]
This might also be helpful: https://www.odoo.com/documentation/13.0/howtos/company.html
I mean separate completely like accounting for example
Yes, Record Rules are how Odoo separates companies.
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
0
nov. 21
|
2575 | ||
|
1
dec. 20
|
9032 | ||
|
2
jun. 20
|
5474 | ||
|
1
apr. 20
|
9594 | ||
|
8
mrt. 20
|
5276 |
Hope this will helps:
1- http://learnopenerp.blogspot.com/2020/01/odoo-server-action.html
2- https://goo.gl/F42kRf