问题标签 [odoo-website]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
58 浏览

rendering - Why Odoo is adding aria-hidden = "true" attribute to icons in html?

Above is a line of code I am writing and see how it is rendering, the icon is hidden. May I please know the reasons?

0 投票
0 回答
11 浏览

odoo-14 - 在odoo中通过网页更新记录值

需要构建一个带有一些文本输入字段和一个按钮的网页。当我单击按钮时,这些值会自动更新到 Odoo 的数据库中。

0 投票
0 回答
42 浏览

python - Odoo 网站表单提交附件文件:AttributeError: 'str' object has no attribute 'read'

当我提交包含 type= 文件输入的表单时出现此错误:

我正在从 website_sale 模块中的控制器更新 address(self, **kw) 方法,此行导致错误:

这是模型中字段 attachment_ids 的定义:

谁能帮帮我,我一直在寻找解决方案很长一段时间,直到现在一无所获

0 投票
0 回答
101 浏览

python - 如何在 odoo 中为 Web 控制器创建单元测试?

这是一个普遍的问题。我是 odoo 单元测试的新手,我想知道如何为 Odoo Wen 控制器创建单元测试。为 Web 控制器创建单元测试的一般方法是什么,通常测试什么样的功能。这是我的代码: