[FIX] sale,sale_project : Avoid sending multiple email on upsell
Expected behaviour:
When you create a sale order with a project associated. When the sale order change state
from non upsell to upsell sales person should receive one email.
Current behaviour:
The sales person receive an email for every entry in the timesheet after the sale order goes
from non upsell to upsell.
Step to reproduce:
Create a sale order setup to create a project and task and the invoicing policy is ordered quantities.
Add a timesheet entry which takes it past the ordered quantity.
Create the invoice for the order.
The state of the line and order goes to upsell, and the upsell email is sent to the salesperson.
Add another line in the timesheet and the email is sent again to the salesperson
closes odoo/odoo#78457
Signed-off-by:
Laurent Stukkens (ltu) <ltu@odoo.com>
Showing
- addons/sale/models/sale.py 8 additions, 2 deletionsaddons/sale/models/sale.py
- addons/sale_timesheet/tests/__init__.py 1 addition, 0 deletionsaddons/sale_timesheet/tests/__init__.py
- addons/sale_timesheet/tests/common.py 17 additions, 0 deletionsaddons/sale_timesheet/tests/common.py
- addons/sale_timesheet/tests/test_sale_service.py 1 addition, 1 deletionaddons/sale_timesheet/tests/test_sale_service.py
- addons/sale_timesheet/tests/test_sale_timesheet.py 60 additions, 0 deletionsaddons/sale_timesheet/tests/test_sale_timesheet.py
Loading
Please register or sign in to comment