Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Kecerdasan Buatan
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Manajemen Properti
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Konsultasi
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Server error on delivery note with kit

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
manufacturingkitdeliverynotekits
1 Balas
340 Tampilan
Avatar
Daniel Huying

We recently activated the manufacturing app (Version 19.0.2.0) in our Odoo 19.0 test system to see if bill-of-materials (BOM) for kits would be a suitable solution for us.

We created a BOM for a new article, then used it in a sales order. On attempt to print the delivery note, we're getting a server error:

Odoo Server Error

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 758, in _render_iterall
for item in frame.iterator:
File "<2064>", line 1372, in template_stock_report_delivery_document_2064_t_call_1
KeyError: 'move_lines'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/report.py", line 120, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter, context=context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 852, in _render_iterall
raise QWebError(qweb_error_info) from error
odoo.addons.base.models.ir_qweb.QWebError: Error while rendering the template:
KeyError: 'move_lines'
Template: stock.report_delivery_document
Reference: 2064
Path: /t/t/t/div/t[21]/t
Element: <t t-set="move_lines" t-value="move_lines.filtered(lambda m: not m.move_id.bom_line_id)"/>
From: (2069, '/t/t/t', '<t t-call="stock.report_delivery_document" t-inner-content="True" t-options-lang="o._get_report_lang()"/>')
(2064, '/t/t', '<t t-call="web.html_container"/>')
(198, '/t/t[2]', '<t t-call="web.report_layout"/>')
(196, '/t/html/body/div/main/t', '<t t-out="0"/>')
(198, '/t/t[2]', '<t t-call="web.report_layout"/>')
(196, '/t/html/body/div/main/t', '<t t-out="0"/>')
(2064, '/t/t', '<t t-call="web.html_container"/>')
(2064, '/t/t/t', '<t t-call="web.external_layout"/>')
(2064, '/t/t/t/div/t[21]/t', '<t t-set="move_lines" t-value="move_lines.filtered(lambda m: not m.move_id.bom_line_id)"/>')

Has anyone else encountered this? How can it be fixed?


0
Avatar
Buang
Muhammad Farooq Iqbal

perfect

Avatar
Muhammad Farooq Iqbal
Jawaban Terbai

Hi,

This error is most likely coming from a customized or inherited delivery note report, not from the kit BoM itself.

The report is failing because this line is trying to use move_lines, but move_lines has not been defined before that point:

<t t-set="move_lines" t-value="move_lines.filtered(lambda m: not m.move_id.bom_line_id)"/>

So Odoo raises:

KeyError: 'move_lines'

Please check any custom / Studio inherited view of:

stock.report_delivery_document

Especially check any customization added to hide kit component lines or filter BoM lines.

The fix is to define move_lines before filtering it, or use the correct Odoo 19 variable from the delivery order, for example:

<t t-set="move_lines" t-value="o.move_line_ids"/>
<t t-set="move_lines" t-value="move_lines.filtered(lambda m: not m.move_id.bom_line_id)"/>

or adjust the report to use o.move_ids / o.move_line_ids depending on which section of the delivery slip you are customizing.

I would suggest reverting the delivery slip report to the standard version and testing again. If it prints correctly, then the issue is definitely in the inherited/custom report view, not in the kit setup.

0
Avatar
Buang
Daniel Huying
Penulis

The line in question is apparently being added by the inherited view
mrp.stock_report_delivery_document_inherit_mrp . This is directly below stock.report_delivery_document in the inheritance, and seems to have been added by the manufacturing module. Our custom view for the delivery note is at the same level, but it does not use or define a variable move_lines. Deactivating it eliminated the error; it is apparently overloading the section where move_lines is being defined. So it looks like I can take the solution from here.

Daniel Huying
Penulis

I added <t t-set="move_lines" t-value="o.move_line_ids"/> in our custom view and now the error no longer appears.

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
A product with a kit-type bill of materials can not have a reordering rule Diselesaikan
manufacturing reordering kits
Avatar
Avatar
1
Jun 25
1814
How to break up delivery note into Kits? Odoo13
kit deliverynote Odoo13
Avatar
Avatar
1
Des 23
4494
Manufacturing order for Kit BOM
manufacturing bom kit
Avatar
Avatar
1
Nov 23
4807
Kit Component replacement
manufacturing sale.order kit
Avatar
0
Okt 21
3531
MTO and availability of product online
sales manufacturing kit MTO
Avatar
Avatar
Avatar
3
Sep 24
2962
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Karir
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah software terintegrasi dengan 70+ aplikasi seperti CRM, Akuntansi, Inventaris, Sales, eCommerce, Marketing, POS; plus fitur lokal Indonesia!

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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