Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 17
5031
2
sie 19
4147
1
lip 25
539
2
cze 25
2175
3
kwi 25
2431