Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 1

How can i display my object by foreach loop in odoo 10 PYTHON XML

Hi my friends,

 

I try to display my tickets from my custom module.

In my database ( pgAdmin4) the table is called "Helpdesk_ticket" and the ticket is record inside.

But i cannot achieve to find attribute in order to display them by foreach loop.

This is my template :

 

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="liste_offres" model="ir.ui.view">
<field name="model">helpdesk.team</field>
<field name="name">helpdesk.team.form.inherit.website.form.helpdesk</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.ticket.form" t-as="ticket">
<field name="team_id"/>

</t>






</xpath>

</field>
</record>
</data>
</odoo>

 

 

 

That is my table on my database :

Capture d’écran de 2019-06-06 10-12-51.png

 

How can i find the real technical name of my object in order to display them on my page?

Thanks for your helps Amigos ,

Best regards,

Jules