Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2329 Переглядів

Hello, 

I just read up the documentation on Odoo 14 Security in the fields section it reads: 

restricted fields are automatically removed from requested views.

Why does it throw an Access control error, when I add the field "vat" of res.partner to group" to  "sales_team.group_sale_salesman" for example.

class ResPartner(models.Model):    
    _inherit = "res.partner"   
    vat = fields.Char(groups="sales_team.group_sale_salesman")


Document type: Contact (res.partner) Operation: read User: 9 Fields: - vat (allowed for groups 'Sales / User: Own Documents Only')

Shouldn't the field be automatically removed? 

Also it seems, that the acl error still persists, even after xpathing the groups attribute to the field in "base.view_partner_form"



Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 15
6776
2
трав. 24
1965
3
квіт. 23
11384
1
квіт. 23
14372
9
груд. 23
23700