Skip to content

[19.0][OU-ADD] pos_viva_com: rename viva_wallet_* fields to viva_com_*#5644

Open
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-mig-pos-viva-com-rename
Open

[19.0][OU-ADD] pos_viva_com: rename viva_wallet_* fields to viva_com_*#5644
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-mig-pos-viva-com-rename

Conversation

@dnplkndll
Copy link
Copy Markdown

@dnplkndll dnplkndll commented May 18, 2026

pos_viva_wallet was renamed to pos_viva_com in 19.0 (handled by apriori.renamed_modules); the credential + config fields on pos.payment.method ALSO got renamed viva_wallet_*viva_com_*. Without explicit rename_fields users' API keys / tokens / merchant + terminal IDs would be silently lost (rendered as DEL old + NEW empty).

  • pre-migration.pyopenupgradelib.rename_fields for the renamed fields on pos.payment.method.
  • No post-migration — rename_fields is a full move (column + ir.model.fields + ir.model.data).

docsource notes the module rename on both rows (pos_viva_com ← from / pos_viva_wallet → to).

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:19.0 labels May 18, 2026
@dnplkndll dnplkndll force-pushed the 19.0-mig-pos-viva-com-rename branch from 1815ce3 to f7011a6 Compare May 19, 2026 01:16
@dnplkndll dnplkndll marked this pull request as ready for review May 19, 2026 01:16
@dnplkndll dnplkndll force-pushed the 19.0-mig-pos-viva-com-rename branch from f7011a6 to 76f28f1 Compare May 19, 2026 13:52
@dnplkndll dnplkndll changed the title [19.0][MIG] pos_viva_com: rename 9 viva_wallet_* fields to viva_com_* [19.0][OU-ADD] pos_viva_com: rename 9 viva_wallet_* fields to viva_com_* May 19, 2026
Copy link
Copy Markdown
Contributor

@remi-filament remi-filament left a comment

Choose a reason for hiding this comment

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

Thanks for this PR @dnplkndll
Migration scripts LGTM
Some administrative/documentation comments

Comment thread docsource/modules180-190.rst Outdated
| |new| pos_viva_com | | |
| |new| pos_viva_com |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |del| pos_viva_wallet | | |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You may want to also mark this one as done + note on both that this module was renamed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done in d28c7e6 — pos_viva_com row col 3 = Renamed from pos_viva_wallet; pos_viva_wallet row now Done + col 3 = Renamed to pos_viva_com.

@@ -0,0 +1,35 @@
---Models in module 'pos_viva_com'---
---Fields in module 'pos_viva_com'---
pos_viva_com / pos.payment / viva_com_session_id (char) : NEW
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This one should be marked as NOTHING TO DO

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added # NOTHING TO DO after the empty Models section in d28c7e6.

pos_viva_wallet / pos.payment.method / viva_wallet_test_mode (boolean): DEL
pos_viva_wallet / pos.payment.method / viva_wallet_webhook_verification_key (char): DEL

# DONE: 9 viva_wallet_* fields renamed to viva_com_* via rename_fields
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We do not need somuch information in there, you may just state :

Suggested change
# DONE: 9 viva_wallet_* fields renamed to viva_com_* via rename_fields
# DONE: pre-migration: rename fields```
And remove the following comment lines

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Collapsed to single line # DONE: pre-migration: rename fields in d28c7e6.

@dnplkndll dnplkndll force-pushed the 19.0-mig-pos-viva-com-rename branch from 76f28f1 to d28c7e6 Compare May 20, 2026 20:34
@dnplkndll
Copy link
Copy Markdown
Author

@remi-filament — addressed all three threads in d28c7e6:

  • docsource: both rows now Done, col 3 notes the rename direction.
  • work doc: # NOTHING TO DO after the empty Models section + verbose # DONE block collapsed to one line per your suggestion.

Fork CI green on both seeds. Ready for re-review.

@dnplkndll dnplkndll changed the title [19.0][OU-ADD] pos_viva_com: rename 9 viva_wallet_* fields to viva_com_* [19.0][OU-ADD] pos_viva_com: rename viva_wallet_* fields to viva_com_* May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:openupgrade_scripts Module openupgrade_scripts series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants