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
    Rantai Pasokan
    • 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
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-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
    • Estate Management
    • 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
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
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

Reports: html to combine text strings (and generate barcode from it)

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
reportshtmlv17
1663 Tampilan
Avatar
Alexander Hesse

Hi community,

on a report which we are using to create labels I want to create a barcode which combines 2 information – the material ID and the quantity that is moved. (GS1 code standard)

The material ID alone I already have:

<span t-field="o.product_id.barcode" t-options="{'widget': 'barcode', 'symbology': 'auto', 'img_style': 'width:80mm;height:20mm'}">product barcode</span>

And the qty is already shown as text on the label:

<span t-out="str(o.quantity).replace('.', ',')"/>

 

But now, I want to combine both into 1 text string and then create the barcode for that.

Unfortunately, I'm not so experienced in html and don't know how to do it.

In Excel formular it would look something like (maybe that helps in understanding):

​ New textstring = “01”&o.product_id.barcode&”#37”&o.quantity

 

Hope my request is actually quite easy, if you have the experience and that one of you does have it ;)

Below the whole code if needed.

 

BR

  Alexander

 

 

<data>

  <xpath expr="/t[@t-name='xx_location_picker.report_location_label_pallet_full_page_copy_3']" position="replace" mode="inner">

    <t t-call="web.html_container" t-lang="en_US">

      <t t-foreach="docs" t-as="picking">

        <t t-set="move_lines" t-value="picking.move_line_ids.filtered(lambda ml: ml.product_id.xx_use_location_picking)"/>

        <t t-foreach="move_lines" t-as="o">

          <div class="article o_report_layout_standard">

            <div class="page">

              <div class="row mb-2">

                <div class="col-8">

                  <span t-field="o.product_id.barcode" t-options="{'widget': 'barcode', 'symbology': 'auto', 'img_style': 'width:80mm;height:20mm'}">product barcode</span>

                  <div class="col-12" style="text-align: left;font-size: 12px">product</div>

                  <br/>

                </div>

                <div class="col-4">

                  <div t-out="o.product_packaging_id.barcode" style="padding:1px;" t-options="{'widget': 'barcode', 'symbology': 'auto', 'img_style': 'width:80mm;height:20mm'}"/>

                  <div class="col-12" style="text-align: right;font-size: 12px">packaging_quantity</div>

                </div>

              </div>

              <div class="row mt-5" style="border: 2px solid black;height: 10em;">

                <h1 style="text-align: center;padding: 25px 0;font-size: 80px">

                  <strong>

                    <t t-out="o.location_dest_id.name"/>

                  </strong>

                </h1>

              </div>

              <div class="row" style="margin-top: 5px">

                <div class="col-6" style="border: 2px solid black;">

                  <h2>

                    <strong>

                      <t t-out="o.product_id.default_code"/>

                    </strong>

                  </h2>

                </div>

                <div class="col-2" style="text-align: center;">

                  <br/>

                </div>

                <div class="col-4" style="text-align: right;border: 2px solid black;">

                  <h2>

                    <strong>

                      <span t-out="str(o.quantity).replace('.', ',')"/>

                      <span t-field="o.product_uom_id"/>

                    </strong>

                  </h2>

                </div>

              </div>

              <div class="row" style="margin-top: 5px">

                <div class="col-12" style="border: 2px solid black;">

                  <h2>

                    <strong>

                      <t t-out="o.product_id.name"/>

                    </strong>

                  </h2>

                </div>

              </div>

              <div class="row" style="margin-top: 5px">

                <div class="col-12" style="text-align: right">

                  <h2>

                    <strong>

                      <span t-out="picking._get_validation_date_formatted()"/>

                    </strong>

                  </h2>

                </div>

              </div>

              <div class="row" style="margin-top: 5px">

                <div class="col-12" style="text-align: center">

                  <h2>

                    <strong>

                      <t t-out="o.location_dest_id.barcode" t-options="{'widget': 'barcode', 'symbology': 'auto', 'img_style': 'width:80mm;height:20mm'}"/>

                    </strong>

                    <div class="col-12" style="text-align: center;font-size: 12px">location</div>

                  </h2>

                </div>

              </div>

            </div>

          </div>

        </t>

      </t>

    </t>

  </xpath>

</data>

0
Avatar
Buang
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
German Reports prints VAT_ID on Receipient-Address? Diselesaikan
reports invoicelayouts v17
Avatar
Avatar
Avatar
3
Okt 25
1785
How to see cash in/out on PoS reports on v17? Diselesaikan
pos reports v17
Avatar
Avatar
2
Jul 25
2151
PDF Report Edits: Item Line spacing
reports PDF v17
Avatar
Avatar
1
Mei 24
2651
Customer Details on the left Diselesaikan
invoice reports v17
Avatar
Avatar
2
Apr 24
2627
Save file on SMB-Share when Invoice is "send&print".
accounting invoice reports v17
Avatar
0
Okt 25
2104
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
  • Tugas
  • 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 ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

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