Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6466 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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>
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
říj 20
2951
1
úno 19
6505
3
čvn 21
10456
0
dub 16
3743
0
čvn 15
6405