-
-
Notifications
You must be signed in to change notification settings - Fork 660
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
[16.0][MIG] stock_picking_auto_create_lot_qty #1567
base: 16.0
Are you sure you want to change the base?
[16.0][MIG] stock_picking_auto_create_lot_qty #1567
Conversation
/ocabot migration stock_picking_auto_create_lot_qty |
@dessanhemrayev Thanks for this. Could you point to the depending PR(s) in this one description in order to make review easier ? |
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.
Steps to reproduce
Add a few products to the purchase order for instance Line 1: Whiskey qty: 5 and Line 2: Beer qty: 5
Create a picking
Validate a picking
Expected behaviour
Lot's are split for both products and serial numbers assigned
Current behaviour
The beer quantity will be added to the whiskey. So you will get 10 whiskey received and 0 beer.
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.
Please fix an issue decribed 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.
Functionality LGTM
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 LGTM, good job!
@rousseldenis I have updated the description) |
@rousseldenis Could you please check the PR. Thnx |
48108b4
to
843db6e
Compare
de2cbde
to
70b702f
Compare
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.
Looks good in general, well done 💯
""" | ||
Allows to be called either by button or through code | ||
""" |
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.
docstring is incomplete, please provide what this function does
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.
Thanks, I'll fix it
batch_uom_id = fields.Many2one( | ||
string="Uom", | ||
help="The unit of measure used when creating batches.", | ||
comodel_name="uom.uom", |
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.
why do we need this?
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.
This is one of the conditions of the customer, it is necessary to create a batch
4461f75
to
3f09ce6
Compare
This PR has the |
#. Go to *Inventory > Master Data > Products*, select a product. #. Set | ||
'Auto create lot' option, and set 'Create lot every' count of UoMs for | ||
the products you need. #. Go the *Settings > Inventory > Stock Serial | ||
Lot*. #. Press --> Sequences button to create/configure your lot | ||
sequence for a company in 'ir.sequence' module. The default sequence is | ||
'stock.lot.serial'. #. Once a sequence is created/updated select the | ||
stock lot sequence for the current company. |
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.
these still won't appear correctly on the web view, can you fix this?
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.
Thanks,I'll fix it
#. Go to *Inventory* tab of a product. #. Set a tracking option for this | ||
product. #. Set 'Auto create lot'. #. Go to *Inventory > Incoming* and | ||
create a new transfer. #. Validate picking without lot. #. If 'Only | ||
multiples allowed' has been selected in the product, picking validation | ||
will be blocked if qty received is not a multiple of the value set in | ||
the product. |
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.
these still won't appear correctly on the web view, can you fix this?
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.
I'll fix it
1aefc28
to
b6c469f
Compare
5981be7
to
4eacb70
Compare
@Bearnard21 This PR seems to depends on #1565 |
Hi @rousseldenis ) |
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 LGTM, tested and it run as expected 👍
@rousseldenis check please) |
4eacb70
to
7cd2113
Compare
Hello @OCA/logistics-maintainers any chances to have this reviewed and merged? ) |
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.
Migration LG, but we are missing some git commits (translations) and pre-commit commit doesn't include the name of the module updated, and its content seems wrong (probably because the history of 14.0 branch wasn't well retrieved).
Can you check this please?
Sure, thank you for the feedback! |
@ivs-cetmix it seems you messed it up in your last commit: you merged the 16,0 branch in your migration branch instead of rebasing the migration branch onto 16.0... Assuming you were on your migration branch, you should have done: git fetch origin 16.0:16.0 As for now you should delete the merge commit. It can be done with git rebase -I for instance.,, |
Allow create lots for every n count of product This case covered with tests
0ebe551
to
5ab04d2
Compare
@rvalyi Thanks) |
as for the commit it looks OK. I would have expected the weblate translations to come before the migration commits but it's not a big deal either. |
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.
almost OK but as per the migration to v15 step you should have replaced SavePointCase by TransactionCase is the tests, see https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0
@dessanhemrayev Could you remove all the commits concerning other modules (translations)? Thanks |
5ab04d2
to
9745b15
Compare
Hi @rvalyi |
Hi @sebalix could you tell me how I can correctly restore these commits, maybe it would be better for me to do the migration again on the new PR? |
Hum indeed, sorry it seems I looked at a bad place I think. |
This PR has the |
Migration to 16.0