Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3696 มุมมอง
  • in odoo12
    pos-->setting-->POS  (Name)

  • It's displayed on the checkout screen.

  • file:odoo\addons\point_of_sale\static\src\xml\pos.xml

  • <?xml version="1.0" encoding="UTF-8"?>
    <templates id="template" xml:space="preserve">

    <t t-name="Chrome">
    <div class="pos">
    <div class="pos-topheader">
    <div class="pos-branding">
    <img class="pos-logo" src="/point_of_sale/static/src/img/logo.png" alt="Logo"/>
    <!-- display the name of pos -->


  • How to display the name of pos in use

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

The information of POS Setting or Configuration is saved in widget.pos.config . Use this code.

<?xml version="1.0" encoding="UTF-8"?>

<templates id="template" xml:space="preserve">


<t t-extend='Chrome'>

        <t t-jquery='.pos-logo' t-operation='append'>

            <t t-if="widget.pos.config">

            <span t-esc="widget.pos.config.name"/>

        </t>

        </t>

    </t>


</templates>


Above code mean display POS Setting name after pos-logo classs

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
15018
0
ต.ค. 23
33
3
ต.ค. 23
790
1
ต.ค. 23
569
1
ส.ค. 23
2620