odoo/odoo#96941
Created by cvinh
- label
- invitu:14.0-fix_delete_account_payment
- head
- 4196574ef31d938c4a16fa0adae5a726d15c97af
- target
- 14.0
[FIX] account_payment should not be deleted if account move is posted
Description of the issue/feature this PR addresses:
Description here : https://github.com/odoo/odoo/issues/75111
A company registers payments before they know if they have an invoice related to. At the end of the story, a lot of payments were mistakes and have to be reimbursed to the customers or transfered to another company.
The payment should not be deleted because if so, there is no trace anymore in the accounting. Some employee could steel the money then (if it's cash or unlabelled check)
Current behavior before PR:
- Posted payments can be deleted and there is no trace anymore
Desired behavior after PR is merged:
- Posted payments should not be deleted
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr