Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pos disable payment don't load #94

Closed
flotho opened this issue Mar 22, 2016 · 3 comments
Closed

Pos disable payment don't load #94

flotho opened this issue Mar 22, 2016 · 3 comments

Comments

@flotho
Copy link
Contributor

flotho commented Mar 22, 2016

Hi,

I have this kind of message :

ome modules could not be started 
Failed modules:          ["pos_disable_payment"] 
Debug:                   Object {pos_disable_payment: Object}

How can I debug this?

@flotho
Copy link
Contributor Author

flotho commented Mar 22, 2016

this part of code seems to ccause problems :

    screens.ProductScreenWidget.include({
        init: function () {
            var self = this;
            this._super.apply(this, arguments);
        },
        start: function () {
            this._super();
            var user = this.pos.cashier || this.pos.user;
            if (!user.allow_payments) {
                this.actionpad.$('.pay').hide()
            }
        },
        renderElement: function () {
            this._super();
            this.pos.bind('change:cashier', this.checkPayAllowed, this)
        },
        checkPayAllowed: function () {
            var user = this.pos.cashier || this.pos.user;
            if (!user.allow_payments) {
                this.actionpad.$('.pay').hide()
            }else{
                this.actionpad.$('.pay').show()
            }
        }
    });

@flotho
Copy link
Contributor Author

flotho commented Mar 22, 2016

found, bad dependency elsewhere on my code

@yelizariev
Copy link
Collaborator

Here the answer for "how to debug" question:
https://odoo-development.readthedocs.org/en/latest/dev/debug/logs.html#boot-js

@flotho flotho closed this as completed Mar 29, 2016
gaelTorrecillas pushed a commit to gaelTorrecillas/pos-addons that referenced this issue Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants