Skip to content
Advertisement

Modifying delete order function in POS odoo using javascript

I want to modify this ” minus button ” in such a way that if the user click on generate token this button become disabled for that order In simple words, the user who generated a token for his/her order cannot delete their current token.UI of POS with added widget

Advertisement

Answer

i came up with some temporary fixes, but its not the solution:

Ok basically i did this

JavaScript

token is actually helping here to assign random unique number to each order in current session It just a temporary fix to my issue and its also arises some new issues *like ” new order button [+ signed button] creates two orders on one click”. *

As new to odoo and alien to its javascript( not regular javascript )

i am working on the module to improve this everyday. Will be updating after finding more durable fix to my question.Advice,Tips,Opinions and suggestions are highly appreciated.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement