summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-12-17 14:35:03 +0100
committerDenis Ledoux <dle@odoo.com>2015-12-17 14:40:37 +0100
commit7be2403cf5ae54db485832fa33c0cf33645e0dc6 (patch)
tree4e0848997954a51184b332a43b771fa0662ddeee /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parent2f106aa5ac3a53f46862af33ca8d7642b11cee7e (diff)
[FIX] website_quote: condition to display the `Pay Now` button
Before this revision, the button "Pay now" on the quotation in the frond-end was display only if the sale order was in the state `manual` and that there was not yet any payment transaction. The thing is, since the release of 9.0, the `manual`state no longer exists in `sale.order`, and the pay now button was therefore never displayed. From this revision, the condition to display the button is based on the `invoice_status`, which need to be `to_invoice`, meaning there is something to pay: - The sale.order needs to be in states `sale` or `done` - At least one line has to be invoiced: - If the product has the `invoice_policy` set to `order` - or if the product has the 'invoice_policy` set to `delivery`, and at least one quantity has been delivered. opw-659931
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions