小编Joa*_*ros的帖子

未捕获的错误:QWeb2:扩展模板“ClientDetailsNo 给出的表达式”时出错

尝试扩展 qweb 模板时出现此错误。有没有人遇到过这样的事情。我无法找到与此相关的任何内容。

Uncaught Error: QWeb2: Error while extending template 'ClientDetailsNo expression given
http://localhost:8069/web/content/246-17d551a/web.assets_common.js:2444Traceback:

Error: QWeb2: Error while extending template 'ClientDetailsNo expression given
at Object.exception (http://localhost:8069/web/content/246-17d551a/web.assets_common.js:2444:7)
at Engine.extend (http://localhost:8069/web/content/246-17d551a/web.assets_common.js:2482:507) 
at Engine._render (http://localhost:8069/web/content/246-17d551a/web.assets_common.js:2477:454)
at Engine.render (http://localhost:8069/web/content/246-17d551a/web.assets_common.js:2477:151)
at Class.display_client_details (http://localhost:8069/web/content/313-25bfa95/point_of_sale.assets.js:337:1375)
at Class.line_select (http://localhost:8069/web/content/313-25bfa95/point_of_sale.assets.js:332:528)
at HTMLTableRowElement.<anonymous> (http://localhost:8069/web/content/313-25bfa95/point_of_sale.assets.js:327:86)
at HTMLTableSectionElement.dispatch (http://localhost:8069/web/content/246-17d551a/web.assets_common.js:740:451)
at HTMLTableSectionElement.elemData.handle (http://localhost:8069/web/content/246-17d551a/web.assets_common.js:713:173)
Run Code Online (Sandbox Code Playgroud)

代码

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">

<t t-extend="ClientDetails">
  <t t-query="div.client-details-right" t-operation="append">
    <div class="client-detail">
        <span class="label">RNC</span>
        <span class="detail client-phone">Test</span>
    </div>
  </t>
</t>
Run Code Online (Sandbox Code Playgroud)

odoo qweb

1
推荐指数
1
解决办法
3063
查看次数

标签 统计

odoo ×1

qweb ×1