diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-06-08 10:41:54 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-06-17 10:28:26 +0000 |
| commit | dc1bb36d376cac6dd0942f46480a39a20b6303e9 (patch) | |
| tree | 53a50f3a11f384c4912ea385db3a31941ca29b27 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | b366501148d58080a686a09a0f36b8acafa646af (diff) | |
[FIX] sale: delete draft invoices with downpayments
Create a SO, Validate it.
Create Invoice: down payment (fixed amount) and validate invoice
Now back to the SO. Create Invoice: Invoiceable lines (deduct down payments).
A draft invoice is created. Try to delete it.
User gets an error, this occur because the second invoice creation bind
another invoice_line to the downpayment sale order line (first line was
added when making the downpayment). When the user delete the invoice
the sale order line should be deleted as well, but is still linked to an
invoice so the error raise.
Unlinking only unbinded sol fix the issue
opw-2258218
closes odoo/odoo#53144
X-original-commit: 7c7275b8a943196975182a8e66cef0e82f87b21d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
