Skip to content

[18.0][MIG] pos_payment_change: Migration to 18.0 - #1573

Open
victoralmau wants to merge 34 commits into
OCA:18.0from
Tecnativa:18.0-mig-pos_payment_change
Open

[18.0][MIG] pos_payment_change: Migration to 18.0#1573
victoralmau wants to merge 34 commits into
OCA:18.0from
Tecnativa:18.0-mig-pos_payment_change

Conversation

@victoralmau

Copy link
Copy Markdown
Member

Migration to 18.0

Superseed #1453

Changes done:

@Tecnativa TT62460

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration pos_payment_change

If the main goal of the module is already covered, shouldn't this be renamed or to start a new one with the missing feature?

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Jun 23, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Jun 23, 2026
35 tasks
@victoralmau

Copy link
Copy Markdown
Member Author

If the main goal of the module is already covered, shouldn't this be renamed or to start a new one with the missing feature?

I actually think the module's name is appropriate because its purpose is to modify pos payments when Odoo Core doesn't allow it.

@pedrobaeza

Copy link
Copy Markdown
Member

Yes, but it's too generic. Now that feature is covered by core, except the case where the order has been invoiced, so the module name should reflect it.

@victoralmau

Copy link
Copy Markdown
Member Author

Yes, but it's too generic. Now that feature is covered by core, except the case where the order has been invoiced, so the module name should reflect it.

It is important to remember that this module also includes the “Refund and Resale” option (at the pos.config level), which is allowed when the order is in the ‘paid’ or “invoiced” status.

@pedrobaeza

Copy link
Copy Markdown
Member

Yes, and that's why I'm saying that the module is now other thing. I would say pos_after_invoice_mgmt for example.

@victoralmau

Copy link
Copy Markdown
Member Author

Yes, and that's why I'm saying that the module is now other thing. I would say pos_after_invoice_mgmt for example.

Okay, so I'll rename the module to pos_after_invoice_mgmt, and we'll keep all the functionality there? (including the “Refund and Resale” functionality for the “paid” status)

@pedrobaeza

Copy link
Copy Markdown
Member

Let's see what @legalsylvain thinks. For us, AFAIK, we only need the other part.

legalsylvain and others added 16 commits August 28, 2026 12:00
- Black python code
- OCA Convention
- Add tests
- add configuration on pos.config, with two option 'refund' or 'update'
- The 'refund' option makes the module compatible with (French) certification
- make the module compatible with pos_order_return
…on PoS Order(s) to know the history of the payments
Translated using Weblate (Spanish)

Currently translated at 100.0% (31 of 31 strings)

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

Translation: pos-12.0/pos-12.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_payment_change/es/
Translated using Weblate (German)

Currently translated at 100.0% (33 of 33 strings)

Translation: pos-12.0/pos-12.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_payment_change/de/
A cash payment method must have a cash journal.
Pierrick Brun and others added 18 commits August 28, 2026 12:00
[UPD] Update pos_payment_change.pot

[UPD] README.rst
Currently translated at 100.0% (33 of 33 strings)

Translation: pos-16.0/pos-16.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/es/
Translated using Weblate (Italian)

Currently translated at 100.0% (33 of 33 strings)

Translation: pos-16.0/pos-16.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/it/

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-16.0/pos-16.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/
Currently translated at 100.0% (33 of 33 strings)

Translation: pos-16.0/pos-16.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/es/
Currently translated at 100.0% (33 of 33 strings)

Translation: pos-16.0/pos-16.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/fr/
In old version, two certifications modules was present in odoo.  l10n_fr_pos_cert and l10n_fr_certification.
In odoo 16, only l10n_fr_pos_cert exists.

[BOT] post-merge updates
[BOT] post-merge updates
Better readme
FIX OCA#1115

[BOT] post-merge updates
Translated using Weblate (Portuguese (Portugal))

Currently translated at 100.0% (33 of 33 strings)

Translation: pos-16.0/pos-16.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/pt_PT/
[FIX] pos_payment_change: rebase test on TestPoSCommon

[FIX] pos_payment_change: in tests replace Marc Demo to user with explicit rights

[FIX] pos_payment_change: add compatibility with pos_order_copy

Co-authored-by: Eugene Molotov <molotov@it-projects.info>

[UPD] Update pos_payment_change.pot

[BOT] post-merge updates
Co-authored-by: Abraham Anes <abrahamanes@gmail.com>
Changes done:
- Remove context (TestPoSCommon already has it)
- Use the new_test_user() method to create users
- Use the BaseCommon class
@victoralmau
victoralmau force-pushed the 18.0-mig-pos_payment_change branch from 7ec84d3 to efce3f9 Compare August 28, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:pos_payment_change Module pos_payment_change mod:pos_user_restriction Module pos_user_restriction series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.