Skip to content

Conversation

@arantxa-s73
Copy link
Contributor

@arantxa-s73 arantxa-s73 commented Sep 13, 2024

Module migrated to version 17.0

@arantxa-s73 arantxa-s73 changed the title 17.0-mig-stock_move_line_autofill 17.0-mig-stock_move_line_auto_fill Sep 13, 2024
@rousseldenis
Copy link
Contributor

/ocabot migration stock_move_line_auto_fill

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Sep 30, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Sep 30, 2024
74 tasks
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 23, 2025
@rrebollo
Copy link
Contributor

@arantxa-s73 is this ready to be merged?

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 13, 2025
@arantxa-s73
Copy link
Contributor Author

@rrebollo yes

@rrebollo
Copy link
Contributor

@rrebollo yes

could you rebase it so we can test it in runboat?

@arantxa-s73 arantxa-s73 force-pushed the 17.0-mig-stock_move_line_auto_fill branch from e3c084c to 05587f1 Compare May 16, 2025 05:59
@arantxa-s73
Copy link
Contributor Author

@rrebollo done

@syci
Copy link

syci commented Jul 23, 2025

@arantxa-s73 is this ready to be merged?

?¿

@arantxa-s73
Copy link
Contributor Author

@syci yes

@syci
Copy link

syci commented Jul 23, 2025

@arantxa-s73 ok, but some tests are failing... we should probably add another commit to restart.

@arantxa-s73 arantxa-s73 force-pushed the 17.0-mig-stock_move_line_auto_fill branch 3 times, most recently from 3f66d36 to 4514cbe Compare July 25, 2025 10:47
@arantxa-s73
Copy link
Contributor Author

@syci test ready

@arantxa-s73 arantxa-s73 changed the title 17.0-mig-stock_move_line_auto_fill [17.0][MIG} stock_move_line_auto_fill Jul 29, 2025
@arantxa-s73 arantxa-s73 changed the title [17.0][MIG} stock_move_line_auto_fill [17.0][MIG] stock_move_line_auto_fill Jul 29, 2025
Copy link
Contributor

@eugenios73 eugenios73 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 OK

@eugenios73
Copy link
Contributor

@syci @rrebollo @bealdav , can you review? Please

@arantxa-s73
Copy link
Contributor Author

@syci @rrebollo @bealdav can you review? Please

@rrebollo
Copy link
Contributor

@arantxa-s73 there is no runboat again

Copy link
Contributor

@rrebollo rrebollo 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: Great work! The code looks good to me (LGTM). Thank you for your contribution! I've provided a few suggestions for your consideration—feel free to address them as you see fit.

@arantxa-s73 arantxa-s73 force-pushed the 17.0-mig-stock_move_line_auto_fill branch from 4514cbe to ab87a33 Compare October 1, 2025 06:12
@arantxa-s73
Copy link
Contributor Author

@rrebollo Runbott ready and test modifications too

OCA-git-bot and others added 24 commits November 11, 2025 16:52
Currently translated at 8.3% (1 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/it/
Currently translated at 75.0% (9 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/es/
Currently translated at 100.0% (12 of 12 strings)

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

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/
Currently translated at 91.6% (11 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/pt/
… mrp & stock_barcode apps exist on the db

This commit is to ensure that this module can be installed when the database already has the 'mrp' and 'stock_barcode' modules installed.
both of the modules are inheriting the stock_picking_type_views.xml.
Currently translated at 100.0% (12 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/it/
Currently translated at 100.0% (12 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/it/
Currently translated at 100.0% (12 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/ja/
Currently translated at 100.0% (12 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/it/
Currently translated at 91.6% (11 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/pt_BR/
Currently translated at 100.0% (12 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/pt_BR/
Currently translated at 100.0% (12 of 12 strings)

Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_move_line_auto_fill
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_line_auto_fill/it/
@arantxa-s73 arantxa-s73 force-pushed the 17.0-mig-stock_move_line_auto_fill branch from ab87a33 to f6fdb41 Compare November 11, 2025 15:52
Copy link

@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

@OCA/logistics-maintainers Please, can you merge this PR?

Copy link
Contributor

@hparfr hparfr left a comment

Choose a reason for hiding this comment

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

Some remarks about the tests

product_quant.quantity = 1500.00
self.picking.action_assign()
self.assertEqual(self.picking.move_line_ids.qty_done, 1500.00)
self.assertTrue(self.picking.move_line_ids.picked)
Copy link
Contributor

Choose a reason for hiding this comment

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

With this change, what do you test now ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hparfr to verify that the lines remain picked

Copy link
Contributor

Choose a reason for hiding this comment

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

If I understand correctly, before the test was checking the quantity picked/qty_done (1000), then increasing the quantiy available from 1000 to 1500, finally ensuring the picked/qty_done was increasing as well.
Now, it checks if everything is picked without ensuring what happens when the quantity available increase.

self.assertEqual(self.picking.state, "assigned")
self.assertEqual(len(self.picking.move_line_ids), 1)
# Try to fill all the operation automatically.
self.assertTrue(self.picking.move_line_ids.picked)
Copy link
Contributor

Choose a reason for hiding this comment

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

With this change, I don't get what you test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you referring to the same thing as above?

Copy link
Contributor

Choose a reason for hiding this comment

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

The test is about making a delivery, return it, make the delivery again, return it again.

       def test_return_twice(self):
        # Covered case:
        # Return more than one times not duplicate quant units in stock

@arantxa-s73 arantxa-s73 force-pushed the 17.0-mig-stock_move_line_auto_fill branch from f6fdb41 to bd4960a Compare November 12, 2025 15:22
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.