如何在 odoo 9 中使用 jQuery 显示警告消息
How to display a warning message using jQuery in odoo 9
我想使用 jQuery 在 odoo 中显示一条警告消息。因为我在 jQuery 代码中进行验证。
您可以使用do_warn
方法odoo-9:FormView.load_record。
this.do_warn(_t("Form"), _t("The record could not be found in the database."), true);
您可以使用 do_warn、do_notify 种浏览器的通知方法来使用 jquery 显示错误消息或警告。除此之外,您还可以使用 throw new Error
种构造函数。
我想使用 jQuery 在 odoo 中显示一条警告消息。因为我在 jQuery 代码中进行验证。
您可以使用do_warn
方法odoo-9:FormView.load_record。
this.do_warn(_t("Form"), _t("The record could not be found in the database."), true);
您可以使用 do_warn、do_notify 种浏览器的通知方法来使用 jquery 显示错误消息或警告。除此之外,您还可以使用 throw new Error
种构造函数。