odoo/odoo#202621

Created by fw-bot
Merged at fa375a6113c94ee4ebb291e3a1293e49ae4042a1

Statuses:

Linked pull requests
label
odoo-dev:saas-18.2-16.0-fix_caba_pos_tax_report-svfu-424258-fw
head
cab35443344083248edaa206384d63d7911174d2
merged
7 months ago by Accounting, Laurent Smet (las)
odoo/odoo odoo/enterprise
16.0 #201812 #81505
17.0 #202281 #81666
saas-17.4 #202308 #81685
18.0 #202479 #81747
saas-18.1 #202612 #81795
saas-18.2 #202621 #81803
saas-18.3
saas-18.4
19.0
master #202625 #81806

[FW][FIX] point_of_sale: proper handling of caba taxes

We do not create create caba moves anymore for PoS session closing moves.
(See commits 2f62d5c0d78371be70586c79cb2b5931e733b042 and 66e3696b4f06c657ff71af30178f0ac69d552632)

But now there are 2 issues when using (only) caba taxes in a PoS session.
(1) The closing move does not appear on the tax report.
(2) The closing move line do not get the right tax tags (they do not have any).

Issue (1) is solved by making pos closing moves always_tax_exigible.
(In case they did not creat cash basis entries; for backwards compatibility).

Issue (2) is solved by telling the tax computation for the lines to include caba taxes
(instead of just changing the account to be the "final" account and not
the caba transition account).

opw-4355124

Forward-Port-Of: #202479
Forward-Port-Of: #201812