-
-
Notifications
You must be signed in to change notification settings - Fork 729
[17.0][MIG] stock_move_line_auto_fill #1709
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
base: 17.0
Are you sure you want to change the base?
[17.0][MIG] stock_move_line_auto_fill #1709
Conversation
|
/ocabot migration stock_move_line_auto_fill |
|
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. |
|
@arantxa-s73 is this ready to be merged? |
|
@rrebollo yes |
could you rebase it so we can test it in runboat? |
e3c084c to
05587f1
Compare
|
@rrebollo done |
?¿ |
|
@syci yes |
|
@arantxa-s73 ok, but some tests are failing... we should probably add another commit to restart. |
3f66d36 to
4514cbe
Compare
|
@syci test ready |
eugenios73
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional review OK
|
@arantxa-s73 there is no runboat again |
rrebollo
left a comment
There was a problem hiding this 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.
stock_move_line_auto_fill/tests/test_stock_picking_auto_fill.py
Outdated
Show resolved
Hide resolved
stock_move_line_auto_fill/tests/test_stock_picking_auto_fill.py
Outdated
Show resolved
Hide resolved
4514cbe to
ab87a33
Compare
|
@rrebollo Runbott ready and test modifications too |
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/
ab87a33 to
f6fdb41
Compare
Reyes4711-S73
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@OCA/logistics-maintainers Please, can you merge this PR? |
hparfr
left a comment
There was a problem hiding this 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) |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
f6fdb41 to
bd4960a
Compare
Module migrated to version 17.0