Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
5597 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Penulis

I mean separate completely like accounting for example

Yes, Record Rules are how Odoo separates companies.

Post Terkait Replies Tampilan Aktivitas
0
Nov 21
2584
1
Des 20
9039
2
Jun 20
5478
1
Apr 20
9609
8
Mar 20
5303