Skip to content

[18.0] [MIG] sale_advance_payment: Migration to 18.0#3807

Merged
OCA-git-bot merged 27 commits intoOCA:18.0from
bizzappdev:18.0-MIG-sale_advance_payment-BAD
Nov 30, 2025
Merged

[18.0] [MIG] sale_advance_payment: Migration to 18.0#3807
OCA-git-bot merged 27 commits intoOCA:18.0from
bizzappdev:18.0-MIG-sale_advance_payment-BAD

Conversation

@bizzappdev
Copy link
Copy Markdown
Contributor

@bizzappdev bizzappdev commented Jul 10, 2025

@bizzappdev bizzappdev marked this pull request as ready for review July 10, 2025 09:34
@rousseldenis
Copy link
Copy Markdown
Contributor

/ocabot migration sale_advance_payment

@rousseldenis
Copy link
Copy Markdown
Contributor

@bizzappdev Could yuo check at #3799 ?

As, IMHO, it has been a nonsense to compute things on a widget content...

Copy link
Copy Markdown
Contributor

@ppyczko ppyczko left a comment

Choose a reason for hiding this comment

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

LGTM, tested in runboat!

Copy link
Copy Markdown
Member

@lbarry-apsl lbarry-apsl left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown

@mpascuall mpascuall left a comment

Choose a reason for hiding this comment

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

LGTM!

@rousseldenis
Copy link
Copy Markdown
Contributor

@bizzappdev Could yuo check at #3799 ?

As, IMHO, it has been a nonsense to compute things on a widget content...

Ok, thanks. Why not having chery-picked it ?

omar7r and others added 17 commits July 23, 2025 19:19
- Allow to make advance payments when invoice has been created.
  This is justified by the fact that users may want to create a
  payment reversal in some circumstances.
- Introduce payment type (inbound, outbound) to improve usability
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_advance_payment
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_advance_payment/
weblate and others added 10 commits July 23, 2025 19:19
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_advance_payment
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_advance_payment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_advance_payment
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_advance_payment/
Currently translated at 100.0% (43 of 43 strings)

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_advance_payment
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_advance_payment/fr/
Otherwise, we might get incorrect residuals when we get refunds
Improve performance by searching directly the related invoice lines
@bizzappdev bizzappdev force-pushed the 18.0-MIG-sale_advance_payment-BAD branch from 6f539d2 to 9ff42c3 Compare July 23, 2025 13:51
Copy link
Copy Markdown
Contributor

@BhaveshHeliconia BhaveshHeliconia left a comment

Choose a reason for hiding this comment

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

Functional review LGTM!

"payment_type": self.payment_type,
"partner_type": "customer",
"ref": self.payment_ref or sale.name,
"memo": self.payment_ref or sale.name,
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.

Copy link
Copy Markdown
Contributor Author

@bizzappdev bizzappdev Sep 25, 2025

Choose a reason for hiding this comment

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

Thanks for the review!
Basically, the payment_reference field was also in 17 https://github.com/odoo/odoo/blob/17.0/addons/account/models/account_payment.py#L82
While in View of 17 the ref field string is memo.
Assuming the new field memo is the replacement of ref field.
FYI, in openupgrde also they have copied all ref field value to memo field
https://github.com/OCA/OpenUpgrade/blob/18.0/openupgrade_scripts/scripts/account/18.0.1.3/pre-migration.py#L154

@JordiMForgeFlow
Copy link
Copy Markdown
Contributor

@bizzappdev could you include #3918?

@rvalyi
Copy link
Copy Markdown
Member

rvalyi commented Nov 30, 2025

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-3807-by-rvalyi-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f368001 into OCA:18.0 Nov 30, 2025
4 of 7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

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.