跳至內容
選單
此問題已被標幟
1 回覆
6475 瀏覽次數

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>
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
10月 20
2962
1
2月 19
6512
3
6月 21
10467
0
4月 16
3750
0
6月 15
6416