Hello my friends,
I want to display helpdesk tickets on my website page.
I finded the database table "helpdesk_ticket" on pgAdmin4 but i can't display them by foreach loop.
Can someone help me about those attribute in order to display tickets ?
That my template where i'm trying to find the right technical name of helpdesk_ticket :
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="liste_offres" model="ir.ui.view">
<field name="model">helpdesk.team.form.inherit.website.form.helpdesk</field>
<field name="model">helpdesk.team</field>
<field name="inherit_id" ref="coopaname_helpdesk.marchepublic" />
<field name="mode">primary</field>
<field name="key">coopaname_helpdesk.liste_offres</field>
<field name="arch" type="xml">
<xpath expr="//div" position="after">
<h1 style="text-align:center;">le fichier est load</h1>
<t t-foreach="helpdesk.team.id" t-as="helpdesk.team">
<p style="text-align:center;"><t t-esc="i"/></p>
</t>
</xpath>
</field>
</record>
</data>
</odoo>
about my error :
Error to render compiling AST
AttributeError: 'NoneType' object has no attribute 'team'
Template: 1863
Path: /templates/t/t/t/t[2]
Node: <t t-foreach="helpdesk.team.id" t-as="helpdesk.team">
<p style="text-align:center;"><t t-esc="i"/></p>
</t>Best regards,
Jules