1).How we can customize the front end of the POS web session ?
2).How can we access attributes of other model in java script ?.
Am about to create a pos coupon module for redeem coupon.I created a button Redeem Coupon in POS Payment session.And i need to check the coupon number entered during the session with the coupon number from the master .So how can i check this in JS...how can i access the coupon number and check with the inputted.
1. First, you should learn this lesson: https://www.odoo.com/documentation/8.0/howtos/web.html
Be master at Widget.
Then, depend on what you want to customize, navigate it in java script source code of point_of_sale module. POS UI is made of widgets. Widgets are defined in screens.js and widgets.js
2. Have a look at "Communication with the Odoo Server" section in the above link.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/24/16, 8:10 AM|
|Seen: 378 times|
|Last updated: 3/28/16, 5:25 AM|