Skip to content

Conversation

@sergioM-S73
Copy link

@sergioM-S73 sergioM-S73 commented Nov 11, 2025

While migrating this module to v19, I ran into a test failure. The root cause is a core change in Odoo 19: the to_refund field on stock.move now defaults to True.
odoo/odoo@98fbff3

This caused the test to fail on the positive-quantity PO line, as it expected the value to be False.

My first thought was to adapt the module's logic to do the inverse (setting to_refund = False on standard receipts), however, I believe this is incorrect.

This situation led me to question the module's necessity.
#2116

To verify, I ran tests on Runboat instances for versions 16, 17, 18, and 19. In all cases, when validating a return picking generated from a purchase order with a negative quantity line, the received quantity is correctly updated

Therefore, I conclude that this module is redundant

santostelmo and others added 14 commits November 11, 2025 09:58
Currently translated at 100.0% (1 of 1 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_order_supplier_return
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_order_supplier_return/it/
Currently translated at 100.0% (1 of 1 strings)

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

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_order_supplier_return
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_order_supplier_return/hr/
@sergioM-S73 sergioM-S73 force-pushed the 19.0-mig-purchase_order_supplier_return branch from 7062a47 to 54bb6c9 Compare November 11, 2025 10:05
@sergioM-S73 sergioM-S73 force-pushed the 19.0-mig-purchase_order_supplier_return branch from 54bb6c9 to 705096c Compare November 11, 2025 10:56
Copy link
Contributor

@Reyes4711-S73 Reyes4711-S73 left a comment

Choose a reason for hiding this comment

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

LGTM

@Reyes4711-S73
Copy link
Contributor

Reyes4711-S73 commented Nov 11, 2025

@sergioM-S73 I made the functional review and this module in a odoo 19.0 is useless. Odo base made this functionality without this module.
In my humble oppinion, we must close this PR

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.

9 participants