如何在 odoo pos 中创建点击事件

问题描述

我像这样从 POS 继承了客户按钮:

odoo.define('as_pos_debt_notebook.pos',function (require) {
    "use strict";
    var screens = require('point_of_sale.screens');

    screens.ScreenWidget.include({
        
        show: function () {
            var self = this;
            this._super();
            this.$('.new-customer').click(function () {
                self.display_client_details('edit',{
                    'country_id': self.pos.company.country_id,})
            })
            $('.new-customer').click();
            console.log('Messi campeon')
        },});
});

但是我的事件 incrusted $('.new-customer').click(); 不起作用。

解决方法

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

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

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