Giter VIP home page Giter VIP logo

Comments (8)

legalsylvain avatar legalsylvain commented on August 18, 2024

Could you mention wich version of Odoo you are using. (odoo / OCA). revision... thanks.

from pos.

shawnvarghese avatar shawnvarghese commented on August 18, 2024

Yes, sorry... Build Odoo 8.0-20151016 . I'm using the OCA pos_product_template module .

image

from pos.

shawnvarghese avatar shawnvarghese commented on August 18, 2024

Could someone please help rectify this issue. The whole session crashes and the user has to log back into Odoo because of the bug.

from pos.

shawnvarghese avatar shawnvarghese commented on August 18, 2024

Please let me know if there are any details I need to provide for this bug. Would be very grateful to anyone who can help fix it, as the code is in our production server and is causing serious problems.

from pos.

shawnvarghese avatar shawnvarghese commented on August 18, 2024

I think the issue arises due to some part in the following code snippet. But I am not sure what it does or how it should be rectified. Any help would be highly apprecitated!


`init: function(parent, options) {
            var self = this;
            this.attribute_list = [];
            this.product_template = null;
            this.click_set_attribute_handler = function(event){
                /*TODO: Refactor this function with elegant DOM manipulation */
                // remove selected item
                parent = this.parentElement.parentElement.parentElement;
                parent.children[0].classList.remove('selected');
                for (var i = 0 ; i < parent.children[1].children[0].children.length; i ++){
                    elem = parent.children[1].children[0].children[i];
                    elem.children[0].classList.remove('selected');
                }
                // add selected item
                this.children[0].classList.add('selected');
                self.__parentedParent.variant_list_widget.set_filter(this.dataset['attributeId'], this.dataset['attributeValueId']);
            };
            this.click_reset_attribute_handler = function(event){
                /*TODO: Refactor this function with elegant DOM manipulation */
                // remove selected item
                parent = this.parentElement;
                parent.children[0].classList.remove('selected');
                for (var i = 0 ; i < parent.children[1].children[0].children.length; i ++){
                    elem = parent.children[1].children[0].children[i];
                    elem.children[0].classList.remove('selected');
                }
                // add selected item
                this.classList.add('selected');
                self.__parentedParent.variant_list_widget.reset_filter(this.dataset['attributeId']);
            };
            this._super(parent, options);
        },`

from pos.

shawnvarghese avatar shawnvarghese commented on August 18, 2024

Could anyone please help fix this? The POS keeps crashing because of this.

from pos.

legalsylvain avatar legalsylvain commented on August 18, 2024

Hi @shawnvarghese. Sorry I can't help you. I'm not expert in DOM manipulation. Maybe @hparfr will have good proposal to do.

regards.

from pos.

hparfr avatar hparfr commented on August 18, 2024

Is this issue still occurring ?

from pos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.