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

In a web template.xml, for public users, with default system permissions, why does this work:

h5 class="font-weight-light" t-field="job.address_id" t-options='{ "widget": "contact", "fields": ["city"], "no_tag_br": True }'

but, in same template, this gives a 403 error (AccessError: Due to security restrictions, you are not allowed to access 'Contact' (res.partner) records.) when anonymous user views it?

h5 t-if="job.address_id.country_id.code == 'US'"North America

h5 t-else=""Europe/h5

Aren't both of these accessing the same record/fields. When User Type/Public already has read access to Contact, why the error? (I even added read access for COUNTRY, thinking that may be issue, but still no)


アバター
破棄
著作者

I tried formatting the code, didn't work so well, so I just removed the greater than and less than symbols so you could see it. sorry for the mess.

関連投稿 返信 ビュー 活動
2
3月 25
5882
0
7月 24
1454
1
9月 23
1987
1
6月 23
3168
1
3月 24
4500