Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

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

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
invoicedeliverycomponentsv19
2 Besvarelser
478 Visninger
Avatar
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
Avatar
Kassér
Avatar
Franck Beuf
Forfatter Bedste svar

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
Avatar
Kassér
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Bedste svar

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
Avatar
Kassér
Enjoying the discussion? Don't just read, join in!

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

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
From Sales order to Delivery and Invoice in one step Løst
invoice delivery salesorder
Avatar
Avatar
Avatar
Avatar
3
nov. 22
5143
How can I validate a Delivery Order so I can create an Invoice? We haven't uploaded Inventory yet. Løst
invoice product delivery
Avatar
Avatar
Avatar
3
jul. 19
7506
How to insert requested_date to invoice
invoice date delivery
Avatar
2
okt. 18
4447
The delivery and paid checkbox do not marked
invoice delivery order
Avatar
Avatar
1
mar. 15
5146
🚨 Odoo MTO Issue: Invoice Only Shows Delivery Fee and Delivered Qty Goes Negative — Need Help!
invoice delivery odoo MTO
Avatar
0
nov. 25
55
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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