(Odoo) 如何在模板中调用模态并应用更改?

问题描述

我阅读了以下topic我有以下 Qweb 模板,我试图在其中调用一个模板,其中模态所在的位置并使用 xpath 应用更改。这是行不通的,所以我怎样才能让它工作,因为我想在其他 Qweb 模板中使用这个模式。

<template id="static_page"
          inherit_id="static_inherit_page"
          primary="True"
          name="Static inherit page">

<t t-call="modul_name.popup">
    <xpath expr="//div[hasclass('modal-body')]"
           position="inside">

    </xpath>
</t>

</template>

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)