Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • ระบบการขายออนไลน์
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • ระบบการอนุมัติ
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    Food & Hospitality
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • Guest House
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • Hotel
    อสังหาริมทรัพย์
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • การจัดการอสังหาริมทรัพย์
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    ปรึกษา
    • สำนักงานบัญชี
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • เหล็ก
    • เฟอร์นิเจอร์
    • อาหาร
    • Brewery
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • ระบบพลังงานแสงอาทิตย์
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    อื่น ๆ
    • Nonprofit Organization
    • สำนักงานสิ่งแวดล้อม
    • ร้านเช่าป้ายโฆษณา
    • การถ่ายภาพ
    • ร้านเช่าจักรยาน
    • ตัวแทนจำหน่ายซอฟต์แวร์
    Browse all Industries
  • คอมมูนิตี้
    ศึกษา
    • บทเรียน
    • เอกสารกำกับโปรแกรม
    • การรับรอง
    • การฝึกอบรม
    • บล็อก
    • พอดแคสต์
    เพิ่มศักยภาพให้กับการศึกษา
    • โปรแกรมการศึกษา
    • Scale Up! Business Game
    • เยี่ยมชม Odoo
    รับซอฟต์แวร์
    • ดาวน์โหลด
    • เปรียบเทียบรุ่น
    • เผยแพร่
    ทำงานร่วมกัน
    • Github
    • ฟอรั่ม
    • ระบบการจัดงานอีเวนต์
    • การแปล
    • ร่วมเป็นพาร์ทเนอร์
    • Services for Partners
    • ลงทะเบียนเพื่อสร้างบัญชีบริษัทของคุณ
    รับบริการ
    • ค้นหาพาร์ทเนอร์
    • ค้นหานักบัญชี
    • พบกับที่ปรึกษา
    • บริการติดตั้งระบบเพื่อใช้งาน
    • ข้อมูลอ้างอิงลูกค้า
    • การสนับสนุน
    • อัปเกรด
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    รับการสาธิต
  • ราคา
  • ช่วยเหลือ

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

  • ลูกค้าสัมพันธ์
  • e-Commerce
  • ระบบบัญชี
  • สินค้าคงคลัง
  • PoS
  • โปรเจกต์
  • MRP
All apps
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

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

ติดตาม

รับการแจ้งเตือนเมื่อมีกิจกรรมในโพสต์นี้

คำถามนี้ถูกตั้งค่าสถานะ
reportshtmlv17
1656 มุมมอง
อวตาร
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
อวตาร
ละทิ้ง
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!

สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!

ลงชื่อ
Related Posts ตอบกลับ มุมมอง กิจกรรม
German Reports prints VAT_ID on Receipient-Address? แก้ไขแล้ว
reports invoicelayouts v17
อวตาร
อวตาร
อวตาร
3
ต.ค. 25
1785
How to see cash in/out on PoS reports on v17? แก้ไขแล้ว
pos reports v17
อวตาร
อวตาร
2
ก.ค. 25
2150
PDF Report Edits: Item Line spacing
reports PDF v17
อวตาร
อวตาร
1
พ.ค. 24
2651
Customer Details on the left แก้ไขแล้ว
invoice reports v17
อวตาร
อวตาร
2
เม.ย. 24
2627
Save file on SMB-Share when Invoice is "send&print".
accounting invoice reports v17
อวตาร
0
ต.ค. 25
2103
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • Github
  • Runbot
  • การแปล
บริการ
  • โฮสติ้ง odoo.sh เซิร์ฟเวอร์
  • การสนับสนุน
  • อัปเกรด
  • การพัฒนาที่กำหนดเอง
  • การศึกษา
  • ค้นหานักบัญชี
  • ค้นหาพาร์ทเนอร์
  • ร่วมเป็นพาร์ทเนอร์
เกี่ยวกับเรา
  • บริษัทของเรา
  • ทรัพย์สินในรูปของเครื่องหมายการค้า
  • ติดต่อเรา
  • งาน
  • ระบบการจัดงานอีเวนต์
  • พอดแคสต์
  • บล็อก
  • ลูกค้า
  • กฎหมาย • ความเป็นส่วนตัว
  • ความปลอดภัย
الْعَرَبيّة 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 เป็นชุดแอปธุรกิจแบบเปิดที่ครอบคลุมทุกความต้องการของบริษัทของคุณ อาธิ CRM eCommerce ระบบบัญชี ระบบสินค้าคงคลัง ระบบการขายหน้าร้าน โปรเจกต์ และ อีกมากมาย

ความเหนือกว่าอันเป็นเอกลักษณ์ของ 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