跳至内容
菜单
此问题已终结

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

形象
丢弃
相关帖文 回复 查看 活动
0
8月 17
5036
2
8月 19
4160
1
7月 25
553
2
6月 25
2184
3
4月 25
2442