-
- Downloads
[FIX] website_quote: portal optional products qty change
Have a SO with a quotation template and some optional products set
Display it on the portal
On an optional product, click on the cart icon
to add it to the SO
Modify the quantity of the optional product
Before this commit, the feature was barely working:
- the total price of the optional product did not change
- negative quantities were allowed
- there was no reaction when directly putting a number in the input
- when decrementing the quantity, it crashed
- untaxed and tax amounts were not dynamic
After this commit:
- the total price of the optional product changes as a function of the quantity input
- negative quantities are not allowed
- it is not possible to manually input the quantity with a keyboard
only +/- buttons are used to change the quantity
- decrementing the quantity works
- untaxed and tax amounts are dynamic
OPW 1947769
closes odoo/odoo#32715
Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
Showing
- addons/website_quote/controllers/main.py 31 additions, 3 deletionsaddons/website_quote/controllers/main.py
- addons/website_quote/static/src/js/website_quotation.js 150 additions, 18 deletionsaddons/website_quote/static/src/js/website_quotation.js
- addons/website_quote/views/website_quote_templates.xml 4 additions, 4 deletionsaddons/website_quote/views/website_quote_templates.xml
Please register or sign in to comment