Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4191 มุมมอง

To save paper I want the company logo part not to be shown on the POS receipts, is there a way to eliminate that part and not show it?

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

tried the answer by cybrosys but it results in an error when trying to install the module. I'm on V.18 where would be to correct place to look for the correct formatting for this version?

<odoo>
    <data>
      <t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1">
      <xpath expr="//t[@t-if='receipt.company.logo']" position="replace">
      </xpath>
      </t>
    </data>
</odoo>
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can remove the logo from POS. You need to inherit the template with id "OrderReceipt" and remove the company logo using xpath.
Eg:

<t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1">

<xpath expr="//t[@t-if='receipt.company.logo']" position="replace">

</xpath>

</t>


Hope it helps

อวตาร
ละทิ้ง

How to hide the company name under the logo i tried this
<xpath expr="//t[@t-if='receipt.company.name']" position="replace">

</xpath>

but it give error
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

คำตอบที่ดีที่สุด

Hello Alex,

Logo coming from company logo image, here you need to customize the OrderReceipt code then it will be possible.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Missing Record on Closing POS Session แก้ไขแล้ว
2
ก.ย. 25
2584
1
มี.ค. 24
2675
2
มิ.ย. 24
3782
1
ก.พ. 24
2278
1
ก.พ. 24
2757