[MIG] stock_storage_type: Migration to 16.0#470
Conversation
|
/ocabot migration stock_storage_type |
2d2dab5 to
7fcf545
Compare
7fcf545 to
f6445b9
Compare
f6445b9 to
e89ddcc
Compare
|
@rousseldenis Do you think we can replace
|
Not yet tested but that can make sense to get back to standard. |
|
@rousseldenis Coming back on this:
I checked more deeply the implications and that would mean that the Today we are using this config: Location A has:
That would become: location A has:
|
If we add information on the relation between storage category and pack/product storage, we could also add the max_weight at the same level |
The max weight/height is a location characteristic not depending on what you put in. According to me, no need to put that on the relation. |
It makes sens. That means we can remove all the logic used to compute this max_height on the stock_location and declare the field on the stock_location if it doesn't exist. |
|
Since |
No, you cannot replace |
It can be replaced by a related readonly to the storage category. |
@jbaudoux Have you tested it on runboat ? I made it working with nothing changed at tests levels. |
cf0c5f3 to
ca7599a
Compare
The issue is that it is impossible to configure because it is 2 different concepts. We need multiple package storage types for a same package type. The package storage type represent the putaway rule you set for the package type. And we have many rules (package storage type) for a box or a pallet (package type). |
jbaudoux
left a comment
There was a problem hiding this comment.
You cannot replace stock.package.storage.type by stock.package.type.
See previous comments
After discussion, we can use the new |
7a29e71 to
5d3249b
Compare
|
@jbaudoux I think this is ready |
jbaudoux
left a comment
There was a problem hiding this comment.
The README needs to be rewritten.
I would also rename all pack_putaway_strategy into package_type_putaway_strategy
4003944 to
1bcd098
Compare
75b2630 to
705fc81
Compare
…s to apply allowed destinations without packages Rename the putaway strategy method name to take into account package type As in some flows, it could have no package defined (no put in pack), fallback on the product default package type and apply the allowed destination strategy
…t auto assignation from product
705fc81 to
46b937e
Compare
…ructure If a view location has a strategy == 'none' and a sequence to be applied, the first call to _get_putaway_strategy in Odoo core will return the first internal child (and no strategy will be applied at all). So, if the location is a view and has no putaway rules for that product, substitute the child_internal_location_ids field value to self.
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at 731f26f. Thanks a lot for contributing to OCA. ❤️ |
Depends on :
TODO: