Skip to content

Conversation

@thienvh332
Copy link

Context:

  • Previously, the original developers created a mini-copy of purchase.order and purchase.order.line to form purchase.return.order and purchase.return.order.line. Over several Odoo versions, the related models have changed significantly. To avoid issues caused by outdated code, I synchronized the fields and methods between purchase.return.order* and purchase.order* for better reuse and consistency.

Changes:

  • Synchronized all purchase.return.order* structures with updates from purchase.order* across versions 16.0 → 18.0.
  • Updated the method responsible for computing account_id on account_move_line according to the changes introduced in PR https://github.com/odoo/odoo/pull/96134.
  • Updated inherited methods to ensure compatibility and avoid blocking native Odoo flows.

Video Demo:
https://drive.google.com/file/d/17wOZf9gEath0IErY1IhY7D6jJihiX01j/preview

JordiBForgeFlow and others added 29 commits December 29, 2025 15:41
Currently translated at 100.0% (223 of 223 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_return
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_return/it/
…eturn orders

On migration commit a new display_type was introduced, 'product', but logic was not fully adapted and I was having issues when printing purchase return order report or when creating a refund. I have also added a migration script in order to restore those lines with display_type = 'product'
Currently translated at 100.0% (223 of 223 strings)

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

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_return
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_return/
@thienvh332 thienvh332 force-pushed the 18.0-mig-purchase_return branch from 917ddf9 to 27c4ca3 Compare December 29, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.