Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 19, 2025

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

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: #202308
Forward-Port-Of: #201812

@robodoo robodoo added forwardport This PR was created by @fw-bot conflict There was an error while creating this forward-port PR labels Mar 19, 2025
@robodoo
Copy link
Contributor

robodoo commented Mar 19, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 19, 2025

@svfu-odoo @oco-odoo cherrypicking of pull request #201812 failed.

stdout:

Auto-merging addons/point_of_sale/models/account_move.py
Auto-merging addons/point_of_sale/models/pos_session.py
CONFLICT (content): Merge conflict in addons/point_of_sale/models/pos_session.py

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@svfu-odoo svfu-odoo force-pushed the 18.0-16.0-fix_caba_pos_tax_report-svfu-423797-fw branch from 0a0d358 to 42b14c0 Compare March 19, 2025 11:45
@C3POdoo C3POdoo requested review from a team and davidmonnom and removed request for a team March 19, 2025 11:48
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Mar 19, 2025
We do not create create caba moves anymore for PoS session closing moves.
(See commits 2f62d5c and 66e3696)

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

X-original-commit: 88d9c10
@svfu-odoo svfu-odoo force-pushed the 18.0-16.0-fix_caba_pos_tax_report-svfu-423797-fw branch from 42b14c0 to 7dedd98 Compare March 19, 2025 13:56
Copy link
Contributor

@smetl smetl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robodoo robodoo closed this in 3b57ea9 Mar 19, 2025
omar-sherif9992 pushed a commit to odoo-dev/odoo that referenced this pull request Mar 26, 2025
We do not create create caba moves anymore for PoS session closing moves.
(See commits 2f62d5c and 66e3696)

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

closes odoo#202479

X-original-commit: 88d9c10
Related: odoo/enterprise#81747
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Laurent Smet (las) <las@odoo.com>
@fw-bot fw-bot deleted the 18.0-16.0-fix_caba_pos_tax_report-svfu-423797-fw branch March 26, 2025 20:20
gamarino pushed a commit to numaes/numa-public-odoo that referenced this pull request Mar 27, 2025
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

closes odoo/odoo#202479

X-original-commit: 88d9c101e67869f09409990f7195c7ca6bbc0c43
Related: odoo/enterprise#81747
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflict There was an error while creating this forward-port PR forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants