问题标签 [odoo-wizard]

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 回答
88 浏览

odoo-10 - Odoo v10 向导问题

当我们单击向导上的任何按钮时,它将禁用所有其他按钮(不可单击)。这是我们在使用 Odoo v10 时遇到的常见问题。

如果您将在向导中使用 3 个按钮,并且每个按钮都将下载 excel 中的报告,那么在单击该按钮后,所有按钮都将被禁用(用户无法单击)。

普通向导在此处输入图像描述

单击任何按钮后,所有其他按钮的效果都变小了。

在此处输入图像描述

这个问题有什么解决方案吗?

0 投票
0 回答
138 浏览

python - 如何在销售报价中通过电子邮件发送抄送电子邮件,我应该为电子邮件抄送使用不同的关键字吗?

我正在重载mail.compose.message 的get_mail_values 方法。我只添加了 email_cc 字段,我希望邮件应该发送给两个收件人。

根据我的结论,mail.compose.message 将控制权传递给 mail.mail 对象,而 mail.mail 对象的 send 方法负责将邮件发送给普通收件人和抄送收件人。

请建议我在哪里做错了?

0 投票
1 回答
593 浏览

odoo - 带有向导的 Odoo11 自定义报告

我想使用自定义配置打印一些产品条形码。

现在,问题是,我已经创建了向导,但是当我单击打印按钮时,没有数据传输到报告中。

在上面的代码中,我也有ids模型product.product

在上面的代码中,我只是想打印我拥有的数据,但我在文档中什么都没有。

这行打印product.product模型也是如此。但ids不是在这里,这就是我遇到的问题。

谁能帮我解释为什么会这样?或者有没有其他方法可以实现这一目标?

0 投票
2 回答
686 浏览

odoo - How to override wizard's method on odoo 12

I am trying to override a single method on wizard's class that gets executed when the user click submit.

account_consolidation_custom/wizard/CustomClass.py

account_consolidation_custom/__manifest_.py

The method's name is exactly the same as the original, but when I click on the submit button, nothing seems to happen, is still calling the method from the base module instead of the custom.

Do you know how to get only one method overwritten instead of the whole wizard class?

0 投票
0 回答
65 浏览

python - Odoo13:ir.actions.act_window.target 的值错误:'New'"

我正在尝试创建一个向导并总是收到此错误。我遵循了现有的 odoo 向导模板,所以我不确定它可能是什么,因为我仔细检查了所有括号。

底部代码是 Pythoncode,在 XML 之上。