Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

[ODOO 10] : How to render or display one2many data on new dialog in website?

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
dialogwebsiteodooodoo10
1 Răspunde
7040 Vizualizări
Imagine profil
Anil Kesariya

Hello All,

My GOAL is to display the One2many fields data of current record in the dialog box. 

Either should be on button click or using HREF, dialog should open and data should be display there.

This is what i did till now.

1. I have defined 1 div which is opening on the button click of current page and it display all the data of One2many perfectly but only for the First Record. 


This is my template strctuture

<t t-foreach="teams" t-as="team">
<div class="col-xs-8 col-md-8">
<div class="col-xs-4 col-md-4" style="vertical-align:top;display: table-cell;">
<span itemprop="image" t-field="team.image" t-options="{'widget': 'image', 'resize': None if product_image_big else '400x400', 'zoom': 'image'}"
t-att-alt="team.name" />
</div>
<div class="col-xs-4 col-md-4" style="vertical-align:middle;display: table-cell;padding-top: 100px;">
<b>Team : </b> <t t-esc="team.name" /> <br/>
<b>Owner : </b><t t-esc="team.owner_id.name" /> <br/>
<b>Venue :</b> <t t-esc="team.venue" /> <br/>
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-oe-id="team" data-target="#myModal">Team Detail</button>
<div class="modal fade" id="myModal" data-toggle="modal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Team Details</h4>
</div>
<div class="modal-body">
<div class="btn-toolbar">
<button class="btn btn-primary">Players</button>
<t t-esc="team.id"/><t t-esc="team.name"/>
</div>
<div class="well">
<table class="table">
<thead>
<tr>
<th>Player Name</th>
<th>Player Contact</th>
<th>Player Email</th>
<!--<th>Username</th>-->
<th style="width: 36px;"></th>
</tr>
</thead>
<tbody>
<tr t-foreach="team.player_ids" t-as="i">
<td><t t-esc="i.name" /></td>
<td><t t-esc="i.contact" /></td>
<td><t t-esc="i.email" /></td>
<!--<td>the_mark7</td>-->
<td>
<a href="user.html"><i class="icon-pencil"></i></a>
<a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</t>

There are number of Teams display in page, each team having players detail. Added button for each team so whenever user will click on the button can see the players details.

Please help me to resolve this issue?

Looking forward

Best Regards,

Anil Kesariya





3
Imagine profil
Abandonează
Imagine profil
Anil Kesariya
Autor Cel mai bun răspuns

Hi,

Module "website_sale_options" is the best example for this above question.

Thank you Mustafa kantawala for your help on this.


Regards,

Anil.


2
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Readonly attribute doesn't work on 'o_website_form_date' class in website.
website odoo odoo10
Imagine profil
0
iul. 19
3895
How to get current website_id in controller of Odoo Rezolvat
website odoo odoo10
Imagine profil
Imagine profil
3
nov. 16
15293
Error when i try to buy "Scale-Up! The Business Game" from odoo store
website odoo
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
mai 25
3583
Odoo website iframe youtube video not showing
website odoo
Imagine profil
0
dec. 23
3205
Hide Variants from the Website
website odoo
Imagine profil
Imagine profil
1
iul. 23
3208
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now