-
-
Notifications
You must be signed in to change notification settings - Fork 392
[16.0][MIG] stock_barcodes: Migration to 16.0 #610
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
Conversation
|
This doesn't contain #604 |
|
/ocabot migration stock_barcodes |
Fixed |
e88a48f to
470385b
Compare
|
Hello ! I pushed some stuff just after you created this PR I think. In it there was a lot of work to replace the |
|
Hi, @FranzPoize ! Do you mean this new stuff or something else?: 3828828#diff-f69121127ec9ebdc28296fa3a7f3760d71865de0267308101bf6d467fef4769cR106-R121 |
|
No I mean this stuff 3828828#diff-00871f58b13dd92c5ff7599bc210323e9a6e64bdbf58abd5a3c19c83428d5dbb What you linked to is some other features we added:
|
Can you elaborate on why this is needed? What's the issue you're trying to solve?
I commented these with @sergio-teruel last week and some of them could be accomplished with the current config (I'm sure he can elaborate in detail :)). In any case, is better to limit the scope the PR to the module migration stuff and do any feature proposal in a later one |
|
You don't have to take those features if you don't want to. But you should take the |
81e7e27 to
11c42f5
Compare
|
In 14.0 there was this stock-logistics-barcode/stock_barcodes/wizard/stock_barcodes_read_picking_views.xml Line 160 in fe5c849
And I said many2ones in my previous comment I made a mistake. This allows one2many fields and many2many field to update their data when an onchange event is triggered. |
|
Hi @FranzPoize let me check it and I tell you |
|
Is there any progress on this PR? |
|
Hi @ik-eska two commits 4 days ago... Any progress?? Yes... |
|
Sorry @sergio-teruel I haven't noticed them. |
|
jaja... don't worry... 😄 |
|
Cherry pick from 15.0 ef65da1 |
352f7ab to
023f994
Compare
8c5d442 to
3352d88
Compare
c99f069 to
5ca89b3
Compare
|
@chienandalu @sergio-teruel please fix the CI and finish this for merging it. |
5ca89b3 to
1c9371a
Compare
ee83d7c to
a97f2f3
Compare
|
@pedrobaeza Tests ok |
|
@carlosdauden should I merge or should I wait for your last patches? Can you give your approval? |
…de_scanned instead of onchange Onchange limits documented in method: It is not possible for a ``one2many`` or ``many2many`` field to modify itself via onchange. This is a webclient limitation - see `#2693 <https://github.com/odoo/odoo/issues/2693>`_. This causes refresh problems when creating or modifying records, and it is also not ideal to create records in "onchange mode"
a97f2f3 to
ec1e99c
Compare
|
is this PR stuck? |
|
We plan to finish the work by the end of this week. |
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 for this work, I tested on runboat / in local env:
- Scan interface works fine with my Inateck BCST-23 without any specific config
- "Picking IN" mode with the "Create lots if not match" setting
- "Picking OUT" mode
- "Show Detailed Operations" setting
- Disable "Fill Fields From Lot" setting to scan the same product several times if multiple quantities are expected
- Play with combos of these settings to scan multiple serial numbers of the same product within 1 picking
- Scan more quantities than expected, get "quantities higher than necessary" message, click on red ✔️ to force adding it
- Scan less quantities than expected, click "Validate" early on ➔ Partial transfer gets validated & second one is created with remaining quantities
|
Hi I have this issue in inventory mode:
➔ Error: In 15.0, this displays an "Expected serial number scan" popup, but does not crash. Also note:
|
|
Hi @houzefa-abba Fixed in last commit (4978de6) Thanks |
|
Thanks for your great work on the migration of this great module. I have a usability remark on inventory: you added a new boolean option "display_read_quant" on the wizard wiz.stock.barcodes.read.inventory. When this option is not checked, the user doesn't see the result of the scans, which is error-prone.
|
| for fname in quant._fields: | ||
| if fname in self._get_fields_to_edit(): | ||
| wiz_barcode[fname] = quant[fname] | ||
| wiz_barcode.product_qty = quant.inventory_quantity |
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.
When reading this code, I see that, on line 30, in the loop on quant._fields that are in _get_fields_to_edit(), it will write:
wiz_barcode.product_qty
then, on line 31, it will write:
wiz_barcode.product_qty = quant.inventory_quantity
Is it normal ? Shouldn't we remove "product_qty" from _get_fields_to_edit ?
…ion group and minor fix
|
Hi @alexis-via thanks for your comments I have added display read items in the option group to apply as a default value. |
|
@sergio-teruel I made some tests with your last commit: it works very well, thanks a lot ! |
|
/ocabot merge nobump |
|
This PR looks fantastic, let's merge it! |
Followup to #587
previous versions.
cc @Tecnativa
@FranzPoize I've been doing the migration with @sergio-teruel, who's the main developer of the module in the spanish OCA days. We started from your migration head.
At this point the module is completely functional, although we're still tweaking the views to fit the previous state.