Skip to content

[16.0][MIG] pos_cash_move_reason#1420

Open
quentinDupont wants to merge 50 commits intoOCA:16.0from
grap:16.0-mig-pos_cash_move_reason
Open

[16.0][MIG] pos_cash_move_reason#1420
quentinDupont wants to merge 50 commits intoOCA:16.0from
grap:16.0-mig-pos_cash_move_reason

Conversation

@quentinDupont
Copy link
Copy Markdown

@quentinDupont quentinDupont commented Jul 24, 2025

Replaced #1068

Classic migration of module pos_cash_move_reason

Description (part of README)

This module allow to define some reasons for the functionality of "Put Money In" and "Take Money Out" available in point of sale session.

So, with this module it's possible to impact directly an expense or income account which is defined on the related reasons and create according accounting entries.

Typical Use Case (not exhaustive)

  • You want to track Bank deposit moves, using an intermediate bank account named 'Cash Awaiting Bank Deposit'. (In France, for instance, "581 - Espèce en attente d'encaissement")

  • You want to allow payments from Cash Journal to pay recurring little expenses. (Gasoline, parking meter, etc.)

pos_session_form

@quentinDupont quentinDupont force-pushed the 16.0-mig-pos_cash_move_reason branch 4 times, most recently from c7a16d2 to 2f0b0bd Compare July 29, 2025 20:53
@quentinDupont quentinDupont marked this pull request as ready for review July 29, 2025 20:59
@legalsylvain legalsylvain force-pushed the 16.0-mig-pos_cash_move_reason branch from 2f0b0bd to efa4484 Compare November 17, 2025 10:17
Adrien Peiffer (ACSONE) and others added 24 commits March 3, 2026 00:46
[REF] factor code
[UPD] fr translation and pot file
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
[REF] Don't use ``product.product`` model for Reasons, because Odoo remove
the fields ``expense_pdt`` ``and income_pdt`` from the model.
Use instead a new model ``pos.move.reason`` for this purpose.
[REF] Doesn't inherit from ``cash.box.in`` and ``cash.box.out`` model,
as there are bad designed and doesn't allow clean inheritance.
Instead, use new transient model ``wizard.pos.move.reason``.
[REF] Oca convention. add readme folder.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/
Currently translated at 100.0% (38 of 38 strings)

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/
Currently translated at 100.0% (38 of 38 strings)

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/fr_CH/
Currently translated at 7.9% (3 of 38 strings)

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/de/
francesco-ooops and others added 15 commits March 3, 2026 00:46
Currently translated at 100.0% (38 of 38 strings)

Translation: pos-14.0/pos-14.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_cash_move_reason/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-15.0/pos-15.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_cash_move_reason/
Currently translated at 100.0% (38 of 38 strings)

Translation: pos-15.0/pos-15.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_cash_move_reason/it/
Currently translated at 100.0% (38 of 38 strings)

Translation: pos-15.0/pos-15.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_cash_move_reason/it/
Currently translated at 100.0% (38 of 38 strings)

Translation: pos-15.0/pos-15.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_cash_move_reason/it/
Currently translated at 97.3% (37 of 38 strings)

Translation: pos-15.0/pos-15.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_cash_move_reason/ca/
Currently translated at 100.0% (38 of 38 strings)

Translation: pos-15.0/pos-15.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_cash_move_reason/es/
Copy link
Copy Markdown
Contributor

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

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

technical review only

/ocabot migration pos_cash_move_reason

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Apr 9, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Apr 9, 2026
44 tasks
@quentinDupont
Copy link
Copy Markdown
Author

I'm not sure what to do : I develop this module to work on POS UI.
We can see the commit here : grap@c406034

Should I wait this PR to be merged in order to be a PR juste for Migration then create a new PR for this major change ?

@OCA-git-bot OCA-git-bot added mod:pos_cash_move_reason Module pos_cash_move_reason series:16.0 labels Apr 16, 2026
@MDgrap
Copy link
Copy Markdown

MDgrap commented Apr 16, 2026

Tested on runboat, both adding and removing money, works fine

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.