Skip to content

Conversation

@BhaveshHeliconia
Copy link
Contributor

No description provided.

omar7r and others added 30 commits October 14, 2025 12:32
Currently translated at 92.1% (35 of 38 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_advance_payment
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_advance_payment/fr/
- 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-14.0/sale-workflow-14.0-sale_advance_payment
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_advance_payment/
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/
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/
JordiMForgeFlow and others added 20 commits October 14, 2025 12:32
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
- Filter out cancelled invoices/refunds
- Use invoice currency amounts instead of company currency amounts
@BhaveshHeliconia BhaveshHeliconia force-pushed the 19.0-mig-sale_advance_payment branch from c05ad24 to 930b213 Compare October 14, 2025 08:19
@BhaveshHeliconia BhaveshHeliconia mentioned this pull request Oct 14, 2025
93 tasks
@rousseldenis
Copy link
Contributor

/ocabot migration sale_advance_payment

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Oct 14, 2025
@BhaveshHeliconia BhaveshHeliconia changed the title [19.0][MIG] sale_advance_payment: : Migration to 19.0 [19.0][MIG] sale_advance_payment: Migration to 19.0 Oct 14, 2025
@BhaveshHeliconia BhaveshHeliconia force-pushed the 19.0-mig-sale_advance_payment branch from 930b213 to 07cc2e1 Compare October 14, 2025 09:56
if not sale_ids:
return res
sale_id = fields.first(sale_ids)
sale_id = sale_ids[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fields.first() has been removed in Odoo 19.0, so it’s no longer available.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ooooh, so bad.

Copy link
Contributor

Choose a reason for hiding this comment

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

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.