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

Hello All,
I am facing a problem related to CSS load error pos_product.css defined in bundle 'point_of_sale.assets'

My Code Below:

<template id="assets" inherit_id="point_of_sale.assets">
<xpath
expr="." position="inside">
<link rel="stylesheet" href="/pos_product/static/src/css/pos_product.css" type="text/css"/> </xpath>
</template>

Thanks

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

I hope you have already found a solution. For anyone facing a similar error, the xpath expression and position should be changed as shown below: ​​

<template id="assets" inherit_id="point_of_sale.assets">
  
  <xpath expr="//link[@id='pos-stylesheet']" position="after">        
        <link rel="stylesheet" href="/pos_product/static/src/css/pos_product.css" type="text/css"/>    
    </xpath>
</template>
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 20
3038
1
ก.พ. 19
6578
3
มิ.ย. 21
10536
0
เม.ย. 16
3829
0
มิ.ย. 15
6525