[WIP] nfu_ecommerce: states and colors

This commit is contained in:
Niels Göttsch 2025-04-01 17:24:16 +02:00 committed by madmooose
parent 2230bb9488
commit c9ada5f2df

View file

@ -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>