summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.contentMenu.js
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2016-11-24 14:36:59 +0100
committerPierre Masereel <pim@odoo.com>2016-11-24 17:17:38 +0100
commit41b2cf3a27118df5be88b6418ea7e2fbcdd666f9 (patch)
tree31af329c7c666a1b1cc984535796a6ea311998fb /addons/website/static/src/js/website.contentMenu.js
parent440c8cc7c9ee60e59c844c56c99a1fc6d390d927 (diff)
[FIX] purchase: double validation minimum amount
When we enable in the settings 'Get 2 levels of approvals' with a 'Double validation amount', and then create a request for quotation. When we confirm it, even if the total amount of the request for quotation is below the amount set in the settings, the purchase order needs to be approved. We excpect that if a purchase order has a total amount below the validation amount setting, the purchase order is automatically confirmed. So to fix it, we compare the amount when the user click on the button confirm. And immediatly call the function 'button_approve' if the amount is below the double validation amount set in settings. Bug introduced in rev: https://github.com/odoo/odoo/commit/9d4efc81a opw - 694381
Diffstat (limited to 'addons/website/static/src/js/website.contentMenu.js')
0 files changed, 0 insertions, 0 deletions