Ir al contenido
Menú
Se marcó esta pregunta

It's a qweb t-call block in odoo 13 ,there are some terms like "Special Price Offers", which aren't showed as translatable in website editor. Please check the qweb xml code below, and the screen shot. Can someone help? Thx

<template id="prduct_pricelist" inherit_id="website_sale.product" active="False" customize_show="True" name="Product Tiered Pricing">
        <xpath expr="//a[@id='add_to_cart']" position="after">
            <t t-call="product_tiered_pricing.web_pricelist"/>
        </xpath>
    </template>
    <template id="web_pricelist">
        <t t-set="pricelist" t-value="pricelist_items"/>
        <div class="product_pricelist">
            <t t-if="pricelist">
                <h4 class="mt-1">Special Price Offers</h4>
                <table class="table table-sm table-condensed text-center" id="pricelist_details">
                    <thead>
                        <tr>
                            <th width="100" class="text-center">Quantity</th>
                            <th width="100" class="text-center">Price</th>
                        </tr>
                    </thead>
                    <tbody>
                        <t t-foreach="pricelist" t-as="item">
                            <tr>
                                <td>
                                    <t t-esc="item['quantity']" class="text-center"/>
                                </td>
                                <td>
                                    <t t-esc="item['price']"/>
                                </td>
                            </tr>
                        </t>
                    </tbody>
                </table>
            </t>
        </div>
    </template>

A screen shot please find it here: https://i.stack.imgur.com/yWM3z.png

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ago 17
5010
2
ago 19
4133
1
jul 25
475
2
jun 25
2103
3
abr 25
2375