콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
2576
1
12월 20
9034
2
6월 20
5475
1
4월 20
9595
8
3월 20
5294