Skip to content
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

[17.0] [MIG] stock_storage_type: Migration to 17.0 #974

Draft
wants to merge 176 commits into
base: 17.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
f07b8ad
[ADD] stock_storage_type
grindtildeath Nov 8, 2019
4a32065
[UPD] Update stock_storage_type.pot
oca-travis Nov 25, 2019
c2175f6
Move restrictions from stock_putaway_storage_type_strategy to base mo…
grindtildeath Nov 25, 2019
f0d941a
[IMP] stock_storage_type: black, isort
grindtildeath Jan 9, 2020
33b54d3
[MIG] stock_storage_type: Migration to 13.0
grindtildeath Jan 9, 2020
6e6debd
Merge putaway_strategy module into stock_storage_type
grindtildeath Apr 6, 2020
6b27235
Apply pre-commit
guewen Apr 29, 2020
e973b3f
[IMP] stock_storage_type
gurneyalex Apr 29, 2020
f9f3699
Improve put-away location selection perfs
gurneyalex May 19, 2020
ce74001
Find leaf sub-locations instead of all children
guewen Jun 5, 2020
667b7b0
Replace mapped by a SQL query
guewen Jun 5, 2020
e855913
Use a pre-generated domain to filter allowed locations
guewen Jun 5, 2020
7551b0a
Remove constrains forbidding 'none' + storage type on location
guewen Jun 24, 2020
8f196d2
pre-commit
grindtildeath Jun 24, 2020
d99dbcf
[UPD] Update stock_storage_type.pot
oca-travis Jun 30, 2020
4cc7e78
[UPD] README.rst
OCA-git-bot Jun 30, 2020
2ca981b
stock_storage_type 13.0.1.0.1
OCA-git-bot Jun 30, 2020
f88abb9
Allow to select locations with 'none' strategy in putaway sequence
guewen Jul 1, 2020
9598199
Ignore empty quants in constraints
guewen Jul 1, 2020
17d0d0f
[UPD] Update stock_storage_type.pot
oca-travis Jul 6, 2020
270d41f
[UPD] README.rst
OCA-git-bot Jul 6, 2020
6066331
stock_storage_type 13.0.1.1.0
OCA-git-bot Jul 6, 2020
0642084
stock_storage_type: Add package storage type on product
grindtildeath Jul 20, 2020
4457f89
Make stock_storage_type depend on stock_putaway_hook
guewen Jul 20, 2020
876c4fa
Update stock_storage_type/models/stock_quant_package.py
grindtildeath Jul 23, 2020
14b3057
stock_storage_type 13.0.1.2.0
OCA-git-bot Aug 12, 2020
5039689
[UPD] Update stock_storage_type.pot
oca-travis Aug 27, 2020
5a9a0ae
stock_storage_type 13.0.1.3.0
OCA-git-bot Aug 27, 2020
3848225
stock_storage_type: option to make 'height' required on packages
sebalix Sep 23, 2020
d8a531f
[UPD] Update stock_storage_type.pot
oca-travis Sep 25, 2020
3224985
stock_storage_type 13.0.1.4.0
OCA-git-bot Sep 25, 2020
010a471
Fix unpredictable package storage type on packages
guewen Oct 6, 2020
533523a
[IMP] stock_storage_type: sort putaway locations by supported max_height
sebalix Sep 25, 2020
73fa1d6
[IMP] stock_storage_type_putaway_abc: sort also locations by max heights
sebalix Sep 25, 2020
7166e91
Fix sorting broken by a limit on search for valid locations
guewen Oct 8, 2020
46d56b3
Fix manager access on stock storage types
guewen Oct 21, 2020
20c9326
stock_storage_type 13.0.1.4.1
OCA-git-bot Oct 22, 2020
cc76d8b
[UPD] Update stock_storage_type.pot
oca-travis Oct 22, 2020
42be390
stock_storage_type 13.0.1.5.0
OCA-git-bot Oct 22, 2020
2a61806
[UPD] Update stock_storage_type.pot
oca-travis Nov 3, 2020
0cd1fba
stock_storage_type 13.0.1.6.0
OCA-git-bot Nov 3, 2020
8243a18
[IMP] black, isort, prettier
sebastienbeau Dec 10, 2020
3bcb0f0
[IMP] set module uninstallable
sebastienbeau Dec 10, 2020
30e961c
stock_storage_type: fix location w/ no leaf locations
guewen Nov 27, 2020
6441c7f
stock_storage_type: fix warning non writeable field
simahawk Dec 15, 2020
7873947
[MIG] stock_storage_type: Migration to 14.0
hparfr Jan 13, 2021
5c315f7
stock_storage_type: fix fields changed in dependencies
hparfr Jun 22, 2021
110ecd9
[UPD] Update stock_storage_type.pot
oca-travis Jul 1, 2021
f5f291d
[UPD] README.rst
OCA-git-bot Jul 1, 2021
3b40e78
Extract methods in stock_storage_type to allow extensions
guewen Oct 22, 2020
d61be31
Add stock_storage_type_buffer
guewen Jul 9, 2020
fe6c681
Add small optimization on sorted intersection
guewen Oct 29, 2020
e8d47cd
Add outgoing move lines qty_done qty in "is_empty"
guewen Oct 29, 2020
3518fd4
[IMP] stock_storage_type: black, isort, prettier
sebalix Aug 3, 2021
d764576
Add barcode on Package Storage Type
Jan 20, 2021
d198db2
Optimize "will contain" computed fields on stock.location
guewen Jan 18, 2021
b54f0eb
Exclude non-internal locations for storage types computed fields
guewen Jan 25, 2021
3f8443e
s_storage_type: no storage type for delivery
sebalix Mar 3, 2021
b889ca8
[UPD] Update stock_storage_type.pot
oca-travis Aug 4, 2021
b2a955c
stock_storage_type 14.0.1.1.0
OCA-git-bot Aug 4, 2021
2ea9315
[UPD] Update stock_storage_type.pot
oca-travis Aug 4, 2021
04c5dc6
stock_storage_type 14.0.1.2.0
OCA-git-bot Aug 4, 2021
c5e6141
stock_storage_type 14.0.1.3.0
OCA-git-bot Aug 4, 2021
9b70663
stock_storage_type 14.0.1.3.1
OCA-git-bot Aug 4, 2021
07d0b01
stock_storage_type: allow to archive storage types/locations
Mar 11, 2021
73c508f
[FIX] s_storage_type: Search tag requires at least one field element
sebalix Aug 5, 2021
b9a73cd
stock_storage_type: prevent useless writes on stock.location
guewen Feb 5, 2021
3816307
Optimize location_is_empty to be computed only when necessary
guewen Feb 5, 2021
05a302c
Improve readability by using proper variable name
guewen Feb 8, 2021
8c24073
stock_storage_type: use estimated package weight if the weight is not…
sebalix Jan 14, 2021
1417d5e
stock_storage_type 14.0.1.4.0
OCA-git-bot Aug 5, 2021
442a52e
[UPD] Update stock_storage_type.pot
oca-travis Aug 5, 2021
e650515
stock_storage_type 14.0.1.5.0
OCA-git-bot Aug 5, 2021
a64cdd1
stock_storage_type: putaway strategy "do not mix" should give priorit…
lmignon Feb 11, 2021
0bb9f06
stock_storage_type: Optimisation of the sorting of valid locations
lmignon Feb 12, 2021
45a9a70
stock_storage_type: Finalisation of the optimisation of the sorting o…
lmignon Feb 12, 2021
de5cba6
stock_storage_type: browse only once and avoid recordset union
lmignon Feb 22, 2021
fcd3142
[IMP] stock_storage_type: black, isort, prettier
sebalix Aug 5, 2021
c7055be
[UPD] Update stock_storage_type.pot
oca-travis Aug 6, 2021
18c2f8b
stock_storage_type 14.0.1.6.0
OCA-git-bot Aug 6, 2021
945f215
[UPD] Update stock_storage_type.pot
oca-travis Aug 6, 2021
4adceba
stock_storage_type 14.0.1.7.0
OCA-git-bot Aug 6, 2021
b936056
Change sorting of locations in the pack putaway computation
jbaudoux Jun 4, 2021
df6a0de
Fix tests for stock_vertical_lift_storage_type by ensuring order when…
jbaudoux Jun 16, 2021
a0e82e9
Fix Package storage type message computation.
jbaudoux Aug 18, 2021
81980b9
[UPD] Update stock_storage_type.pot
oca-travis Aug 19, 2021
5ac7ac1
[UPD] README.rst
OCA-git-bot Aug 19, 2021
318a2ef
stock_storage_type 14.0.1.8.0
OCA-git-bot Aug 19, 2021
e941de7
[FIX] s_storage_type: allowed location storage types
sebalix Sep 27, 2021
2de888b
stock_storage_type 14.0.1.8.1
OCA-git-bot Oct 5, 2021
4700272
Revert "[FIX] s_storage_type: allowed location storage types"
sebalix Oct 7, 2021
36696c0
stock_storage_type 14.0.1.8.2
OCA-git-bot Oct 7, 2021
5b42b1e
Added translation using Weblate (Spanish (Argentina))
ibuioli Oct 19, 2021
3f69a32
stock_storage_type: add location smart buttons
jbaudoux Aug 18, 2021
8267284
[FIX] stock_storage_type: Fix putaway compution when a strategy is de…
jbaudoux Aug 25, 2021
ff0eee2
[UPD] Update stock_storage_type.pot
oca-travis Nov 4, 2021
d85600b
stock_storage_type 14.0.1.9.0
OCA-git-bot Nov 4, 2021
8563107
Update translation files
oca-transbot Nov 4, 2021
175db41
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 28, 2021
b61535e
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 29, 2021
1cac840
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 29, 2021
d51a073
[IMP] stock_storage_type: Remove useless code
lmignon Jan 12, 2022
f3e2868
[IMP] stock_storage_type: Add support for fixed location put away
lmignon Jan 12, 2022
f488bb4
stock_storage_type: dev status -> Beta
simahawk Jan 18, 2022
c796a06
[UPD] README.rst
OCA-git-bot Jan 19, 2022
ed4aa8e
stock_storage_type 14.0.1.10.0
OCA-git-bot Jan 19, 2022
23a11c3
stock_storage_type 14.0.1.11.0
OCA-git-bot Jan 27, 2022
d676bcc
Fix access right issues when using actions
sebalix Jan 27, 2022
7e6a831
stock_storage_type 14.0.1.11.1
OCA-git-bot Jan 27, 2022
9249834
[FIX] s_storage_type: fix computation of 'max_height_in_m'
sebalix Feb 14, 2022
6e6e47b
stock_storage_type 14.0.1.11.2
OCA-git-bot Feb 15, 2022
179b66f
[IMP] stock_storage_type: Allow to restrict some putaway sequence
lmignon Jan 11, 2022
32d9449
[UPD] Update stock_storage_type.pot
Jun 23, 2022
3444792
[UPD] README.rst
OCA-git-bot Jun 23, 2022
ab526e7
stock_storage_type 14.0.1.12.0
OCA-git-bot Jun 23, 2022
c6a3f93
Update translation files
oca-transbot Jun 23, 2022
ee2e215
Translated using Weblate (Spanish (Argentina))
ibuioli Jun 29, 2022
6db1d23
[MIG] stock_storage_type: 15.0
flachica Sep 29, 2022
e0a14e5
[MIG] stock_storage_type: Migration to 16.0
rousseldenis Oct 4, 2022
ac9a0d8
[IMP] stock_storage_type: Remove web_domain_field module dependency
rousseldenis Oct 6, 2022
80d79f3
[IMP] stock_storage_type: Change group from view to field
rousseldenis Oct 6, 2022
d15dea0
[IMP] stock_storage_type: Rename stock.production.lot to stock.lot
rousseldenis Oct 28, 2022
99f6295
[IMP] stock_storage_type: Add recursive property on fields that depen…
rousseldenis Oct 28, 2022
6cce959
[CHG] stock_storage_type: Use of core stock.package.type object
rousseldenis Oct 18, 2022
c82cd8a
[IMP] stock_storage_type: Add dependency on stock_package_type_button…
rousseldenis Oct 18, 2022
ed28454
[IMP] stock_storage_type: Move stock.location.storage.type to core ca…
rousseldenis Oct 26, 2022
8ab5d98
[IMP] stock_storage_type: Merge 'do not mix lots' strategy into 'allo…
rousseldenis Nov 9, 2022
8b119f1
[IMP] stock_storage_type: Add migration scripts
rousseldenis Oct 28, 2022
d2c5c13
[IMP] stock_storage_type: Migration scripts
rousseldenis Nov 9, 2022
31abc5d
[IMP] stock_storage_type: Use default product package type
rousseldenis Nov 16, 2022
83eb636
[IMP] stock_storage_type: Use correct domain to see locations from se…
rousseldenis Mar 13, 2023
871ff23
[IMP] stock_storage_type: Improve comment and visibility group for ca…
rousseldenis Mar 13, 2023
0b8bc5c
[IMP] stock_storage_type: Improve messages and code logic
rousseldenis Mar 13, 2023
9c8552e
[IMP] stock_storage_type: Change pack_putaway_sequence to package_typ…
rousseldenis Mar 13, 2023
5c4977b
[IMP] stock_storage_type: Better Stock Storage Category name display
rousseldenis Mar 15, 2023
de6c85d
[IMP] stock_storage_type: Remove active field on Stock Storage Catego…
rousseldenis Mar 15, 2023
5873df1
[FIX] stock_storage_type: Improve migration scripts
rousseldenis Apr 12, 2023
d4d35ca
[IMP] stock_storage_type: Rename putaway strategy method name + allow…
rousseldenis Apr 14, 2023
7163583
[FIX] stock_storage_type: Fix the behaviour to get the package type a…
rousseldenis Apr 28, 2023
e71e5b6
[IMP] stock_storage_type: Set the category from migrated one on locat…
rousseldenis May 2, 2023
4359e3f
[IMP] stock_storage_type: Add 'Allow new product' on Package Type view
rousseldenis Jun 8, 2023
fd0200f
[IMP] stock_storage_type: Allow to re-apply putaway rules on computed…
rousseldenis Jun 9, 2023
8e98d57
[FIX] stock_storage_type: Remove unused code
rousseldenis Jun 9, 2023
fabd57f
[IMP] stock_storage_type: Take into account complex location views st…
rousseldenis Jul 4, 2023
e01d792
[UPD] Update stock_storage_type.pot
Jul 13, 2023
e456499
[UPD] README.rst
OCA-git-bot Jul 13, 2023
d92de5f
Update translation files
weblate Jul 13, 2023
8c78694
[FIX] stock_storage_type: Now quants (recordset) is passed to conditions
rousseldenis Aug 23, 2023
5cd3514
Added translation using Weblate (Italian)
mymage Aug 24, 2023
edbaa99
[UPD] README.rst
OCA-git-bot Sep 3, 2023
be8cb3b
Added translation using Weblate (Spanish)
Ivorra78 Sep 7, 2023
0984484
Translated using Weblate (Spanish)
Ivorra78 Sep 7, 2023
d49b532
[FIX] stock_storage_type: fix es translation
nilshamerlinck Sep 8, 2023
36f1bf3
stock_storage_type 16.0.1.0.2
OCA-git-bot Sep 8, 2023
101b55a
[UPD] README.rst
OCA-git-bot Sep 8, 2023
cd222e5
Translated using Weblate (Italian)
mymage Sep 21, 2023
8bd28ea
[IMP] stock_storage_type: Don't rely on max_weight on product.packaging
nguyenminhchien Oct 6, 2023
bd7070b
[BOT] post-merge updates
OCA-git-bot Oct 6, 2023
753f113
Update translation files
weblate Oct 10, 2023
53ff3b8
Translated using Weblate (Italian)
mymage Oct 16, 2023
20ff5ae
Translated using Weblate (Italian)
mymage Oct 16, 2023
a5ad0f7
Translated using Weblate (Italian)
mymage Oct 18, 2023
10e2753
[FIX] stock_storage_type: v16 migration
jbaudoux Nov 17, 2023
1eaca78
[BOT] post-merge updates
OCA-git-bot Nov 17, 2023
62eb9cb
[BOT] post-merge updates
OCA-git-bot Nov 17, 2023
ef95ad6
[IMP] stock_storage_type: improve location_is_empty compute performance
sbejaoui Dec 1, 2023
62cf77d
[BOT] post-merge updates
OCA-git-bot Dec 14, 2023
d6cc994
[IMP] stock_storage_type: Don't consider quant with quantities <= 0
rousseldenis Jan 26, 2024
1f44ec3
[BOT] post-merge updates
OCA-git-bot Apr 3, 2024
11ea815
Translated using Weblate (Italian)
mymage Jun 7, 2024
9a8a59f
stock_storage_type: fix tests
sebalix Jul 9, 2024
140fcc9
[BOT] post-merge updates
OCA-git-bot Sep 11, 2024
55d7aaa
Added translation using Weblate (German)
baguenth Sep 23, 2024
b602d3c
Added translation using Weblate (French)
samibc2c Jan 1, 2025
e5c91e8
[IMP] stock_storage_type: pre-commit auto fixes
alexandregaldeano Jan 17, 2025
c08064c
[MIG] stock_storage_type: Migration to 17.0
alexandregaldeano Jan 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added pandoc-3.6.2-x86_64-macOS.pkg
Binary file not shown.
199 changes: 199 additions & 0 deletions stock_storage_type/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
==================
Stock Storage Type
==================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0e700eefd6bcaa1449f71d59b90a1e4a57c0f749f2d282af71ca5cdd7c0e5c42
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwms-lightgray.png?logo=github
:target: https://github.com/OCA/wms/tree/17.0/stock_storage_type
:alt: OCA/wms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/wms-17-0/wms-17-0-stock_storage_type
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/wms&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

| This module introduces two new models in order to manage stock moves
with
| packages according to the packaging and stock location properties.

- Stock package storage type (stock.package.storage.type)

This model is linked to product.packaging and defines the type of
storage related to a specific packaging.

- Stock location storage type (stock.location.storage.type)

This models is linked to stock.location and defines the types of
storage that are allowed for a specific location.

Therefore a Stock location storage type can include different Stock
package storage type in order to validate the destination of a move with
package into a stock location. Moreover Stock location storage type can
include product, size or lot restrictions for the stock locations it's
defined on, so that a move with package will only be allowed if it
doesn't violate the restrictions defined (cf
stock_location_storage_type_strategy).

Moreover, this module implements "storage type put-away strategy" in
order to compute a put-away location using storage types.

The standard put-away strategy is applied *before* the storage type
put-away strategy as the former relies on product or product category
and the latter relies on stock packages.

In other words, when a move is assigned, Odoo standard put-away strategy
will be applied to compute a new destination on the stock move lines,
according to the product. After this first "put-away computation", the
"storage type" put-away strategy is applied, if the reserved quant is
linked to a package defining a package storage type.

Storage locations linked to the package storage are processed
sequentially, if said storage location is a child of the move line's
destination location (i.e either the put-away location or the move's
destination location). For each location, their packs storage strategy
is applied as well as the restrictions defined on the stock location
storage types. If no suitable location is found, the next location in
the sequence will be searched and so on.

For the packs putaway strategy "none", the location is considered as is.
For the "ordered children" strategy, children locations are sorted by
first by max height which is a physical constraint to respect, then pack
putaway sequence which allow to favor for example some level or
corridor, and finally by name.

At the end, if found location is not the same as the original
destination location, the putaway strategies are applied (e.g.: A "none"
pack putaway strategy is set on computed location and a putaway rule
exists on that one).

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

Currently, the module supports only strategies applied on packages
(``stock.quant.package``). For implementations that do not use packages,
it would be possible to add compatibility with product packaging.

The information needed from a package are:

- the storage type, to know which strategy is applied
- the dimensions and weight, to apply constraints

If we want to support product packaging, we would need to:

- guess the product packaging of a move line based on the product and
quantities (multiple of a packaging quantity, for instance 8000 would
be a pallet if the pallet has 2000 units, 1900 would be Box if the Box
has 100 units)
- from the product packaging, we know the storage type and dimensions

Everywhere the module is using ``package_id``, we would have to check
this:

- use the package if a package is set
- else, use the computed packaging

About Unit of Measures:

In v13, there is an assumption of height to be expressed in mm and
weight in kg. In v14, packaging can be expressed in differents units.
Explicit fields are introduced like max_weight_in_kg in order make
simple and efficient computations.

Limitation
----------

If the locations structure is using views intensively in order to
separate storage types kindly (not mixing them), Odoo standard method to
get putaway strategy is returning the first child if a move location
destination is a view.

This is not convenient if we want to set specific strategies on that
view. So, we override standard process by returning the view itself (if
no putaway is set).

This can lead to a change on standard behavior as people will need to
change manually the location destination for pickings with views as
default destination.

Idea: maybe adding a field on view locations to say 'this is a view but
don't apply standard child location selection' could help filtering view
candidates.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/wms/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/wms/issues/new?body=module:%20stock_storage_type%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Camptocamp
* BCIM

Contributors
------------

- Akim Juillerat <[email protected]>
- Guewen Baconnier <[email protected]>
- Raphaël Reverdy <[email protected]>
- Jacques-Etienne Baudoux <[email protected]>
- Laurent Mignon <[email protected]>
- Fernando La Chica - GreenICe <[email protected]>
- Denis Roussel <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-jbaudoux| image:: https://github.com/jbaudoux.png?size=40px
:target: https://github.com/jbaudoux
:alt: jbaudoux
.. |maintainer-rousseldenis| image:: https://github.com/rousseldenis.png?size=40px
:target: https://github.com/rousseldenis
:alt: rousseldenis

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-jbaudoux| |maintainer-rousseldenis|

This module is part of the `OCA/wms <https://github.com/OCA/wms/tree/17.0/stock_storage_type>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_storage_type/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
42 changes: 42 additions & 0 deletions stock_storage_type/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright 2019-2021 Camptocamp SA
# Copyright 2019-2021 Jacques-Etienne Baudoux (BCIM) <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Stock Storage Type",
"summary": "Manage packages and locations storage types",
"version": "17.0.1.0.0",
"development_status": "Beta",
"category": "Warehouse Management",
"website": "https://github.com/OCA/wms",
"author": "Camptocamp, BCIM, Odoo Community Association (OCA)",
"maintainers": ["jbaudoux", "rousseldenis"],
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"stock_move_line_reserved_quant",
"stock_putaway_hook",
"stock_quant_package_dimension",
"stock_storage_category_capacity_name",
],
"data": [
"security/ir.model.access.csv",
"views/product_template.xml",
"views/stock_location.xml",
"views/stock_storage_category.xml",
"views/stock_storage_category_capacity.xml",
"views/stock_package_level.xml",
"views/stock_package_type.xml",
"views/stock_storage_location_sequence.xml",
"views/stock_storage_location_sequence_cond.xml",
"views/storage_type_menus.xml",
],
"demo": [
"demo/stock_package_type.xml",
"demo/stock_storage_category.xml",
"demo/stock_storage_category_capacity.xml",
"demo/product_packaging.xml",
"demo/stock_location.xml",
"demo/stock_storage_location_sequence.xml",
],
}
24 changes: 24 additions & 0 deletions stock_storage_type/demo/product_packaging.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="1">
<record id="product_product_9_packaging_single_bag" model="product.packaging">
<field name="name">Single bag</field>
<field name="qty">1</field>
<field name="product_id" ref="product.product_product_9" />
</record>
<record id="product_product_9_packaging_4_cardbox" model="product.packaging">
<field name="name">4 units cardbox</field>
<field name="qty">4</field>
<field name="product_id" ref="product.product_product_9" />
<field name="package_type_id" ref="package_storage_type_cardboxes" />
</record>
<record id="product_product_9_packaging_48_pallet" model="product.packaging">
<field name="name">48 units pallet</field>
<field name="qty">48</field>
<field name="product_id" ref="product.product_product_9" />
<field name="package_type_id" ref="package_storage_type_pallets" />
<field name="packaging_length">1200</field>
<field name="width">800</field>
<field name="height">1500</field>
<field name="weight">60</field>
</record>
</odoo>
107 changes: 107 additions & 0 deletions stock_storage_type/demo/stock_location.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="1">
<record id="stock_location_cardboxes" model="stock.location">
<field name="name">Cardboxes storage area</field>
<field
name="location_id"
model="stock.location"
eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"
/>
<field name="storage_category_id" ref="storage_category_cardboxes" />
<field name="pack_putaway_strategy">ordered_locations</field>
</record>
<record id="stock_location_cardboxes_bin_1" model="stock.location">
<field name="name">Bin 1</field>
<field name="location_id" ref="stock_location_cardboxes" />
</record>
<record id="stock_location_cardboxes_bin_2" model="stock.location">
<field name="name">Bin 2</field>
<field name="location_id" ref="stock_location_cardboxes" />
</record>
<record id="stock_location_cardboxes_bin_3" model="stock.location">
<field name="name">Bin 3</field>
<field name="location_id" ref="stock_location_cardboxes" />
</record>
<record id="stock_location_cardboxes_bin_4" model="stock.location">
<field name="name">Bin 4</field>
<field name="location_id" ref="stock_location_cardboxes" />
</record>
<record id="stock_location_pallets" model="stock.location">
<field name="name">Pallets storage area</field>
<field
name="location_id"
model="stock.location"
eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"
/>
<field name="storage_category_id" ref="storage_category_pallets" />
<field name="pack_putaway_strategy">ordered_locations</field>
</record>
<record id="stock_location_pallets_bin_1" model="stock.location">
<field name="name">Pallets Bin 1</field>
<field name="location_id" ref="stock_location_pallets" />
</record>
<record id="stock_location_pallets_bin_2" model="stock.location">
<field name="name">Pallets Bin 2</field>
<field name="location_id" ref="stock_location_pallets" />
</record>
<record id="stock_location_pallets_bin_3" model="stock.location">
<field name="name">Pallets Bin 3</field>
<field name="location_id" ref="stock_location_pallets" />
</record>
<record id="stock_location_pallets_bin_4" model="stock.location">
<field name="name">Pallets Bin 4</field>
<field name="location_id" ref="stock_location_pallets" />
</record>
<record id="stock_location_pallets_reserve" model="stock.location">
<field name="name">Pallets reserve storage area</field>
<field
name="location_id"
model="stock.location"
eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"
/>
<field name="storage_category_id" ref="storage_category_pallets" />
<field name="pack_putaway_strategy">ordered_locations</field>
</record>
<record id="stock_location_pallets_reserve_bin_1" model="stock.location">
<field name="name">Pallets Reserve Bin 1</field>
<field name="location_id" ref="stock_location_pallets_reserve" />
</record>
<record id="stock_location_pallets_reserve_bin_2" model="stock.location">
<field name="name">Pallets Reserve Bin 2</field>
<field name="location_id" ref="stock_location_pallets_reserve" />
</record>
<record id="stock_location_pallets_reserve_bin_3" model="stock.location">
<field name="name">Pallets Reserve Bin 3</field>
<field name="location_id" ref="stock_location_pallets_reserve" />
</record>
<record id="stock_location_pallets_reserve_bin_4" model="stock.location">
<field name="name">Pallets Reserve Bin 4</field>
<field name="location_id" ref="stock_location_pallets_reserve" />
</record>
<record id="stock_location_cardboxes_reserve" model="stock.location">
<field name="name">Cardboxes reserve storage area</field>
<field
name="location_id"
model="stock.location"
eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"
/>
<field name="storage_category_id" ref="storage_category_cardboxes" />
<field name="pack_putaway_strategy">ordered_locations</field>
</record>
<record id="stock_location_cardboxes_reserve_bin_1" model="stock.location">
<field name="name">Cardboxes Reserve Bin 1</field>
<field name="location_id" ref="stock_location_cardboxes_reserve" />
</record>
<record id="stock_location_cardboxes_reserve_bin_2" model="stock.location">
<field name="name">Cardboxes Reserve Bin 2</field>
<field name="location_id" ref="stock_location_cardboxes_reserve" />
</record>
<record id="stock_location_cardboxes_reserve_bin_3" model="stock.location">
<field name="name">Cardboxes Reserve Bin 3</field>
<field name="location_id" ref="stock_location_cardboxes_reserve" />
</record>
<record id="stock_location_cardboxes_reserve_bin_4" model="stock.location">
<field name="name">Cardboxes Reserve Bin 4</field>
<field name="location_id" ref="stock_location_cardboxes_reserve" />
</record>
</odoo>
12 changes: 12 additions & 0 deletions stock_storage_type/demo/stock_package_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="1">
<record id="package_storage_type_pallets" model="stock.package.type">
<field name="name">Pallets</field>
</record>
<record id="package_storage_type_pallets_uk" model="stock.package.type">
<field name="name">Pallets UK</field>
</record>
<record id="package_storage_type_cardboxes" model="stock.package.type">
<field name="name">Cardboxes</field>
</record>
</odoo>
Loading
Loading