Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 odoo15 之前,我们可以使用如下变量导入 js:
<script type="text/javascript" t-attf-src="https://api.map.baidu.com/api?v=3.0&type=webgl&ak=#{baidu_ak}"></script>
但是说到 odoo15,所有的 js 文件都被移到了 __mainfest__.py 文件中,那么有没有办法用变量导入 js 文件呢?