[WIP] nfu_ecommerce: states and colors
This commit is contained in:
parent
2230bb9488
commit
c9ada5f2df
1 changed files with 2 additions and 1 deletions
|
|
@ -79,11 +79,12 @@
|
||||||
</t>
|
</t>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//div[contains(@t-attf-class,'css_quantity')]" position="attributes">
|
<xpath expr="//div[contains(@t-attf-class,'css_quantity')]" position="attributes">
|
||||||
|
<!-- Todo: catch if not set -->
|
||||||
<attribute
|
<attribute
|
||||||
|
t-if="packaging_info"
|
||||||
name="t-attf-style"
|
name="t-attf-style"
|
||||||
add="background-color: {{packaging_info['state_color']}};"
|
add="background-color: {{packaging_info['state_color']}};"
|
||||||
separator=" "
|
separator=" "
|
||||||
t-if="packaging_info"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue