Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1532 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 25
5975
0
ก.ค. 24
1526
How can i inherit this template? แก้ไขแล้ว
1
ก.ย. 23
2093
1
มิ.ย. 23
3246
1
มี.ค. 24
4618