Comments (8)
Could you mention wich version of Odoo you are using. (odoo / OCA). revision... thanks.
from pos.
Yes, sorry... Build Odoo 8.0-20151016 . I'm using the OCA pos_product_template module .
from pos.
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.
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.
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.
Could anyone please help fix this? The POS keeps crashing because of this.
from pos.
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.
Is this issue still occurring ?
from pos.
Related Issues (20)
- OCA/pos: Your 16.0 branch isn't protected HOT 5
- [14.0] pos_no_cash_bank_statement: Bug of savepoint does not exist HOT 2
- oca pos_payment_terminal connection telium HOT 1
- [16.0] pos_default_partner default partner should be visible in pos HOT 1
- After refund of 1 qty, POS qty display increased by 2 qty HOT 4
- [15.0] pos_event_sale : no way to refund hidden event HOT 1
- Error when trying to install [pos_order_reorder] on 15.0 HOT 1
- pos_stock_available_online HOT 3
- Migration to version 17.0 HOT 4
- pos_report_session_summary Error when printing the session summary. HOT 1
- [16] pos_partner_firstname Can't create a contact HOT 10
- pos_order_to_sale_order Fiscal Position applied at Header but not at OrderLines HOT 9
- [16.0]pos_payment_change change policy option not displayed
- V16 branch looks broken. HOT 9
- RFC: Addition of Customer Postal Code Field in Odoo POS for Enhanced Data Analysis HOT 2
- dos not work with localization HOT 3
- pos_product_packaging_container_deposit - Does'nt add Deposit
- pos_lot_selection - v15 - POS Picking Type's Location is Not Considering
- [16.0][pos_stock_available_online] Bad quantity on products list if forecasted sales
- [15.0] pos_payment_change_wizard strange behavior on rounding HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pos.