-
- Downloads
[FIX] sale_timesheet: link timesheets that have a reversed invoice
Steps to reproduce:
- create a sale order;
- add products which are based on timesheets for invoicing policy;
- create an invoice an confirm it;
- make a full refund for this invoice with "ADD CREDIT NOTE" button;
- create an new invoice for the sale order.
Issue:
There is no longer a statistics button
that displays the hours worked on the invoice view.
Cause:
To reassign an account move to an account analytic line,
it is necessary either that there is no invoice
or that the invoice is in the cancel state.
The case where the invoice has been refunded is not taken into account.
Solution:
Correct the domain that determines the timesheets (account analytic line)
to be linked with the invoice being created.
opw-3187219
closes odoo/odoo#113985
Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
Please register or sign in to comment