Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] delivery_free_fee_removal: Migration to 17.0 #931

Merged
merged 13 commits into from
Jan 16, 2025

Conversation

juancarlosonate-tecnativa

Migration to 17.0

TT52318 @Tecnativa

@pilarvargas-tecnativa @pedrobaeza can you check? thanks!

cubells and others added 9 commits January 15, 2025 10:11
* Standard procedure

Update translation files

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

Translation: delivery-carrier-12.0/delivery-carrier-12.0-delivery_free_fee_removal
Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-12-0/delivery-carrier-12-0-delivery_free_fee_removal/
[UPD] Update delivery_free_fee_removal.pot

[UPD] README.rst

Update translation files

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

Translation: delivery-carrier-13.0/delivery-carrier-13.0-delivery_free_fee_removal
Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-13-0/delivery-carrier-13-0-delivery_free_fee_removal/
Description of the issue on OCA#306.
In short: the delivery sale line is required in 13.0 to be able:

* see which delivery method is used
* change the delivery method or update its price
* remove the delivery method

Removing entirely the line when the fee is free is therefore an issue.
The free delivery line is kept, although greyed, in the sale order.
However, it is considered as non-invoiceable, so it doesn't create an
invoice line, and it is hidden from the sale report.

Closes OCA#306

[UPD] Update delivery_free_fee_removal.pot

[UPD] README.rst

delivery_free_fee_removal 13.0.1.0.1

Update translation files

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

Translation: delivery-carrier-13.0/delivery-carrier-13.0-delivery_free_fee_removal
Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-13-0/delivery-carrier-13-0-delivery_free_fee_removal/
The free delivery line stop the order from being fully invoiced.
To fix that they are set as invoiced on order confirmation.

[UPD] Update delivery_free_fee_removal.pot

[UPD] README.rst

delivery_free_fee_removal 13.0.1.0.2

Update translation files

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

Translation: delivery-carrier-13.0/delivery-carrier-13.0-delivery_free_fee_removal
Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-13-0/delivery-carrier-13-0-delivery_free_fee_removal/
[UPD] Update delivery_free_fee_removal.pot

[UPD] README.rst
@juancarlosonate-tecnativa juancarlosonate-tecnativa force-pushed the 17.0-mig-delivery_free_fee_removal branch from 8a5dd0a to f4995c0 Compare January 15, 2025 10:02
@pilarvargas-tecnativa
Copy link
Contributor

The sale_order_warehouse_from_delivery_carrier tests are failing. Can you check where the error is coming from, maybe there is a conflict with this module?

@pedrobaeza
Copy link
Member

/ocabot migration delivery_free_fee_removal

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Jan 16, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 16, 2025
30 tasks
@pedrobaeza pedrobaeza force-pushed the 17.0-mig-delivery_free_fee_removal branch 2 times, most recently from 1b951ea to 5429d67 Compare January 16, 2025 09:05
@juancarlosonate-tecnativa juancarlosonate-tecnativa force-pushed the 17.0-mig-delivery_free_fee_removal branch from 5429d67 to 22652b9 Compare January 16, 2025 16:45
@juancarlosonate-tecnativa
Copy link
Author

ping @pedrobaeza

Copy link
Contributor

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

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

Code review

)
res = super()._compute_invoice_status()
for line in free_delivery_lines:
line.invoice_status = "invoiced"
Copy link
Member

Choose a reason for hiding this comment

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

Isn't better to be "Nothing to invoice"?

Choose a reason for hiding this comment

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

then, the invoice status of the order will never change to "Fully Invoiced," as mentioned in ef35c48

Copy link
Member

Choose a reason for hiding this comment

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

OK, got it.

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.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-931-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 5211136 into OCA:17.0 Jan 16, 2025
5 checks passed
@pedrobaeza pedrobaeza deleted the 17.0-mig-delivery_free_fee_removal branch January 16, 2025 19:00
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.

10 participants