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

Unable to display components and lot numbers on Delivery Slip or Invoice using Odoo Studio

Abonare

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

Această întrebare a fost marcată
invoicedeliverycomponentsv19
2 Răspunsuri
485 Vizualizări
Imagine profil
Franck Beuf

Hello everyone,

I’m trying to display the components (and their lot numbers) of manufactured products directly on the Delivery Slip or Customer Invoice PDF, using Odoo Studio (v19) only — without custom modules.

The goal is straightforward:

When a finished product is delivered or invoiced, the report should show the lot numbers of the components consumed in its manufacturing order.

We’ve tried several approaches through Studio: duplicating the standard reports, adding computed fields, or using server actions to gather the data.

However, we keep running into the same issues:

  • Studio refuses to save the report with errors like “Error while rendering the template” or “Entity ' ' not defined”
  • Or the report saves but the component section stays empty
  • Or we get RPC_ERROR exceptions, usually caused by the QWeb rendering engine limitations in Studio

In short, the XML/QWeb code works perfectly fine in a custom module, but not in Studio — it seems Studio doesn’t support nested loops such as:

t-foreach="move.production_id.move_raw_ids.mapped('move_line_ids')"

👉 Has anyone managed to display the component lots linked to a manufactured product in a Delivery Slip or Invoice purely using Odoo Studio?

Is there any known workaround or recommended approach to bypass the QWeb limitations (for example, by preparing the data in a computed field or a server action)?

Thanks in advance for your insights or shared experiences!

— Franck

0
Imagine profil
Abandonează
Imagine profil
Franck Beuf
Autor Cel mai bun răspuns

Thanks for the clear and candid explanation.

After reviewing the different options, I agree: precomputing and flattening the data is the most reliable approach within Studio’s constraints. I’ll proceed by generating a computed field (or a simple related model with a one2many) to aggregate the component/lot details, then print that in the report via Studio.

Appreciate the guidance — thank you.

— Franck

0
Imagine profil
Abandonează
Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

Hi,


Odoo Studio has strict technical limitations that make it unsuitable for handling complex QWeb loops or deep relational traversals, such as linking delivery lines to manufacturing orders and their component lot numbers. While this type of nested logic (t-foreach="move.production_id.move_raw_ids.mapped('move_line_ids')") works fine in a custom module, Studio’s sandboxed environment blocks such operations for safety and performance reasons. This results in common issues like rendering errors, empty report sections, or RPC errors when trying to display component and lot details directly in a report.


To work around these restrictions, the best approach is to precompute and flatten the data before displaying it. One option is to create a computed text field on the related record (e.g., delivery or invoice line) that aggregates all component and lot details into a readable string such as “Component A (Lot 123), Component B (Lot 456).” This field can be populated through an automated or server action triggered when the manufacturing order is completed. Once the data is stored in a single field, you can easily include it in your report using Studio without any nested loops.


Alternatively, you can create a simple custom model in Studio to store these precomputed component-lot details and link it as a one2many relation to the delivery or invoice record. This allows you to use a single-level t-foreach loop, which Studio supports safely. In summary, since Studio cannot handle deep relational logic inside reports, the most reliable way to display manufacturing component lots on delivery slips or invoices is to prepare the data in advance and store it in a field that can be directly printed.



Hope it helps

0
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
From Sales order to Delivery and Invoice in one step Rezolvat
invoice delivery salesorder
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
nov. 22
5143
How can I validate a Delivery Order so I can create an Invoice? We haven't uploaded Inventory yet. Rezolvat
invoice product delivery
Imagine profil
Imagine profil
Imagine profil
3
iul. 19
7509
How to insert requested_date to invoice
invoice date delivery
Imagine profil
2
oct. 18
4447
The delivery and paid checkbox do not marked
invoice delivery order
Imagine profil
Imagine profil
1
mar. 15
5152
🚨 Odoo MTO Issue: Invoice Only Shows Delivery Fee and Delivered Qty Goes Negative — Need Help!
invoice delivery odoo MTO
Imagine profil
0
nov. 25
55
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