odoo/odoo#161531

Created by Andrea Grazioso (agr)
label
odoo-dev:16.0-opw-3815770-fix-agr
head
2c5d0664c64359beae47cc82f2eecbfd31558db7
target
16.0
merged
3 weeks ago by Accounting, Laurent Smet (las)
forward-ports

[FIX] point_of_sale: revert entry sign in tax report

With BE localization
Enable 'Use QR code on ticket' in Settings
Open POS Session
Add a Product with 21% Tax
Pay > Save QR link for later
Close Pos session
Access QR link, generate invoice
Check Accounting>Reporting>Tax Report

Issue: Line '03 - Operations subject to 21% VAT' will account twice
the product amount instead of canceling it

This occurs because when reverting the POS closing entry we create an
entry having amounts with inverted signs and same tax tags. We also need
to set the flag `tax_tag_invert` to ensure the amount correctly
accounted as reverse

opw-3815770
opw-3821017