diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-12-22 17:20:09 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2021-01-20 15:44:20 +0000 |
| commit | 6532c6ba7acb2de53fc839d5a7c5d8b200716565 (patch) | |
| tree | 79a33fcbb4e091f42edfd57a21a1eaf1fa5241ad /addons/mail/static | |
| parent | 604c07edcd4da8cf2a663d06ba91f137eb74691b (diff) | |
[FIX] sale,sale_coupon: do not invoice only promotion lines
Create a promotion auto applied with 0 minimum amount on any product in
catalog.
Have a DEMO product invoiced on delivery
Create a sale order with DEMO, apply the promotion. Confirm.
Click on 'Create Invoice'.
The invoice will only contain the promotion because the line for
DEMO is to be invoiced only after delivery, while by default the
promotion product has the invoice policy 'on order'
This commit will:
* avoid highlight the button 'create invoice' if the only
invoiceable lines are promotion lines as well as raising an error if the
invoice is created in the same scenario
* refuse to invoice only promotion lines from a SO.
* adds a test to cover the case
opw-2414630
closes odoo/odoo#64721
X-original-commit: a3afb98b9a90b28454284528871dd805da9a95b1
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Diffstat (limited to 'addons/mail/static')
0 files changed, 0 insertions, 0 deletions
