Skip to content

Conversation

@sbiosca-s73
Copy link

Standard migration to v18

@sbiosca-s73 sbiosca-s73 force-pushed the 18.0-mig_sale_order_invoice_amount branch from db50d2f to 2ec400c Compare July 17, 2025 09:30
@rousseldenis
Copy link
Contributor

/ocabot migration sale_order_invoice_amount

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Jul 17, 2025
@sbiosca-s73 sbiosca-s73 force-pushed the 18.0-mig_sale_order_invoice_amount branch from 2ec400c to 0813cd2 Compare July 24, 2025 06:49
@Reyes4711-S73
Copy link
Contributor

LGTM

Vicent-S73 pushed a commit to Studio73/e-commerce that referenced this pull request Aug 12, 2025
Copy link
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!

@OCA-git-bot
Copy link
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). 🤖

@sbiosca-s73
Copy link
Author

@rousseldenis can you merge please?

@rousseldenis
Copy link
Contributor

@sbiosca-s73 No need of migration script for fields renaming ?

@DavidJForgeFlow
Copy link
Contributor

Hi @sbiosca-s73, there were some changes in v17.0 removing amount_invoiced and amount_to_invoice. Please could you get the recent changes to have both versions aligned?

17.0 PR: #3537

@DavidJForgeFlow
Copy link
Contributor

Superseded in #3955 as it needs more changes.

@rousseldenis
Copy link
Contributor

@sbiosca-s73 Do you agree we move to #3955 ?

@sbiosca-s73
Copy link
Author

@DavidJForgeFlow Sorry, I missed your suggestion.

@rousseldenis I have seen the new PR, and I agree those canges look like correct migration, but i have a doubt about _compute_amount_to_invoice and _compute_amount_invoiced. @DavidJForgeFlow according with your comment, you removed this computes because Odoo base already handles the functionality. David, I see URL change Odoo base in your PR, but i'm not clear on how it replaces the functionality from OCA module. Could you please explain me why the OCA logic is no longer necessary? Once we clarify this, we can decide whether to keep the changes in your PR or apply them to this.

Thanks!

@DavidJForgeFlow
Copy link
Contributor

@DavidJForgeFlow Sorry, I missed your suggestion.

@rousseldenis I have seen the new PR, and I agree those canges look like correct migration, but i have a doubt about _compute_amount_to_invoice and _compute_amount_invoiced. @DavidJForgeFlow according with your comment, you removed this computes because Odoo base already handles the functionality. David, I see URL change Odoo base in your PR, but i'm not clear on how it replaces the functionality from OCA module. Could you please explain me why the OCA logic is no longer necessary? Once we clarify this, we can decide whether to keep the changes in your PR or apply them to this.

Thanks!

Hi @sbiosca-s73,
The computation of both fields was done in the migration to v17.0 (that's why we deleted the invocied_amount and uninvoiced_amount). However the amount_to_invoice was still being computed taking into account the amount left and ignoring the quantity of products invoiced. For example, if I sell 2 units at 15 €/unit, If I has an invoice of 1 unit with amount 20€, the amount_to_invoice was 10€. In this module the amount was 15€ as one unit was left to invoice.
This was changed in v18.0 in the commit I commented. Now the computation is the same and therefore we can remove the method (also taking into account the changes in currencies are also treated).

@sbiosca-s73 sbiosca-s73 force-pushed the 18.0-mig_sale_order_invoice_amount branch 2 times, most recently from b2a8091 to 1bc550c Compare November 19, 2025 07:58
@sbiosca-s73
Copy link
Author

@DavidJForgeFlow @rousseldenis I have implemented the correct migration changes that David mentioned, so we can close PR #3955 and we can respect this PR as the initial migration. Thank you.

Copy link
Contributor

@DavidJForgeFlow DavidJForgeFlow left a comment

Choose a reason for hiding this comment

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

Great! Thanks @sbiosca-s73, I will then close the other PR. COuld you please review this?

@sbiosca-s73 sbiosca-s73 force-pushed the 18.0-mig_sale_order_invoice_amount branch from 1bc550c to 2b46113 Compare November 19, 2025 14:29
@sbiosca-s73
Copy link
Author

@DavidJForgeFlow done! Thank you

MateuGForgeFlow and others added 21 commits December 1, 2025 10:54
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_invoice_amount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_invoice_amount/
Currently translated at 100.0% (5 of 5 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_invoice_amount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_invoice_amount/fr/
Currently translated at 100.0% (5 of 5 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_invoice_amount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_invoice_amount/it/
@sbiosca-s73 sbiosca-s73 force-pushed the 18.0-mig_sale_order_invoice_amount branch from 2b46113 to d877f5d Compare December 1, 2025 09:56
@sbiosca-s73
Copy link
Author

@DavidJForgeFlow done, thank you!

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.