ウェブサイトにアドレスフィールドを表示しようとしていますが、アクセスエラーが発生します。何らかの理由で私はウェブサイト上の連絡先ウィジェットを使用できません。odoo res.partnerアドレスフィールドウェブサイトのアクセスエラー
公開ユーザーとしてこのページにアクセスすると、500内部サーバーエラーが表示されます。しかし、私が管理者であれば、すべてが機能します。
私は次のように書いた私のXMLテンプレートで:
<span t-field="event.address_id.city" groups="base.group_public"/>,
<span t-field="event.address_id.country_id.name" groups="base.group_public"/>
ir.model.access.csvファイルで、私は次のように書いた:
access_res_partner,res.partner,base.model_res_partner,base.group_public,1,0,0,0
も
access_res_partner,res.partner,base.model_res_partner,,1,0,0,0
をしようとしたが、それ次のエラーが表示されます。
AccessError: (u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: res.partner, Operation: read)', None)
Error to render compiling AST AccessError: (u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: res.partner, Operation: read)', None) Template: website_event.index Path: /templates/t/t/div/div[2]/div[2]/div[1]/ul/li/div/div/div[3]/div/div[3]/span[1] Node: ,
私はまた、グループなしで、XMLでこれを試みたが、結果は同じです:
<span t-field="event.address_id.city"/>,
<span t-field="event.address_id.country_id.name"/>
どのように私はこの問題を解決することができます。