Hi comunity
A question maybe easy, but sought to restrict the fields (in xml or py) with security permissions. Someone who can help or give guidance?? Thanks.
Hi comunity
A question maybe easy, but sought to restrict the fields (in xml or py) with security permissions. Someone who can help or give guidance?? Thanks.
you can use groups keywords/attribute in python as well as in xml.
some thing Like in xml [/account/account_invoice_view.xml]:
<field domain="[('company_id', '=', company_id), ('type', '=', 'payable')]"
name="account_id" groups="account.group_account_user"/>some thing Like in .py [/addons/account/partner.py]:
'total_invoiced': fields.function(_invoice_total, string="Total Invoiced",
type='float',
groups='account.group_account_invoice')
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
4
Haz 25
|
5869 | |||
|
0
Mar 15
|
5751 | |||
|
1
Mar 15
|
11482 | |||
|
0
Şub 24
|
2338 | |||
|
|
1
Kas 22
|
4446 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.