Skip to content

Conversation

@clementelabore
Copy link

Change type of payment_mode.note from Text to Html
This to improve display on Invoice document

@pedrobaeza pedrobaeza added this to the 16.0 milestone Sep 26, 2024
@pedrobaeza
Copy link
Member

I see this improvement as something good, but you should provide a migration script for converting previous content to HTML. There's an openupgradelib method for that.

@clementelabore
Copy link
Author

I hope it was the right way to do it ;)

@pedrobaeza
Copy link
Member

I'm afraid not. That's a hook, not a migration script. A sample (not with the same change though): https://github.com/OCA/contract/tree/16.0/contract/migrations

@clementelabore clementelabore force-pushed the pr-account-payment-mode-note-html branch from d4ecf1b to 7984c5c Compare October 1, 2024 13:24
@clementelabore
Copy link
Author

it should be ok when OCA/openupgradelib#384 will be merged

@pedrobaeza
Copy link
Member

Please squash commits into one

@clementelabore clementelabore force-pushed the pr-account-payment-mode-note-html branch from 41fa745 to 7a6f72c Compare October 3, 2024 14:49
@clementelabore clementelabore force-pushed the pr-account-payment-mode-note-html branch from 7a6f72c to 1dd87a0 Compare October 3, 2024 14:59
Copy link
Member

@pedrobaeza pedrobaeza 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 all the changes.

This must be merged with major switch in the ocabot merge command

@github-actions
Copy link

github-actions bot commented Feb 2, 2025

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 2, 2025
@github-actions github-actions bot closed this Mar 9, 2025
@pedrobaeza pedrobaeza reopened this Mar 9, 2025
@pedrobaeza
Copy link
Member

Rescuing this:

/ocabot merge major

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-1360-by-pedrobaeza-bump-major, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Mar 9, 2025
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-1360-by-pedrobaeza-bump-major.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza pedrobaeza removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 9, 2025
@pedrobaeza
Copy link
Member

@AnizR can you please check the problem with your module account_payment_method_fs_storage?

https://github.com/OCA/bank-payment/actions/runs/13748693138/job/38446868447?pr=1360#step:8:438

ValueError: External ID not found in the system: fs_storage.default_fs_storage

I think it should be a change in the upstream dependency fs_storage.

@AnizR
Copy link

AnizR commented Mar 10, 2025

@AnizR can you please check the problem with your module account_payment_method_fs_storage?

https://github.com/OCA/bank-payment/actions/runs/13748693138/job/38446868447?pr=1360#step:8:438

ValueError: External ID not found in the system: fs_storage.default_fs_storage

I think it should be a change in the upstream dependency fs_storage.

I will investigate the issue with the account_payment_method_fs_storage module. However, it seems unusual that the demo data from fs_storage is not accessible during the test execution. Although fs_storage is listed as a dependency in my module, the test runs in the post-install phase, which previously worked without any issues.

@pedrobaeza
Copy link
Member

It's better to not use demo data in tests. Demo data may have also any problem being loaded.

@AnizR
Copy link

AnizR commented Mar 13, 2025

It's better to not use demo data in tests. Demo data may have also any problem being loaded.

I have done the changes: #1430

@pedrobaeza
Copy link
Member

/ocabot merge major

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1360-by-pedrobaeza-bump-major, awaiting test results.

@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 50c35bc. Thanks a lot for contributing to OCA. ❤️

@OCA-git-bot OCA-git-bot merged commit 0796d2a into OCA:16.0 Mar 13, 2025
10 of 13 checks passed
@pedrobaeza
Copy link
Member

Can you please fw-port it to 17? In this case, the script should check if the column is not JSONB for calling the method.

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.

5 participants