コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
5596 ビュー

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:

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

Hope it helps,

Thanks

アバター
破棄
最善の回答

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

アバター
破棄
著作者

I mean separate completely like accounting for example

Yes, Record Rules are how Odoo separates companies.

関連投稿 返信 ビュー 活動
0
11月 21
2584
1
12月 20
9039
2
6月 20
5478
1
4月 20
9609
8
3月 20
5303