[FIX] account: type of entries created by reversals

Only invoices/bills should create their equivalent credit notes when reversed (with tax tags coming from the related repartition lines), other kinds of journal entries should be reversed as misc entries, to negate them entirely in the accounting

closes odoo/odoo#38547

X-original-commit: cdb3ccf811d69dbd18f196614f380349a1335c9f
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
qdp-odoo
2019-10-11 21:49:11 +00:00
committed by fw-bot
parent dfd25263f8
commit 25dc27874e
+4 -3
View File
@@ -1924,10 +1924,11 @@ class AccountMove(models.Model):
reverse_type_map = {
'entry': 'entry',
'out_invoice': 'out_refund',
'out_refund': 'entry',
'in_invoice': 'in_refund',
'in_refund': 'in_invoice',
'out_receipt': 'in_receipt',
'in_receipt': 'out_receipt',
'in_refund': 'entry',
'out_receipt': 'entry',
'in_receipt': 'entry',
}
move_vals_list = []