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

[MIG] stock_storage_type: Migration to 16.0 #470

Merged
merged 145 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
4889bbb
[ADD] stock_storage_type
grindtildeath Nov 8, 2019
9a8e0dd
[UPD] Update stock_storage_type.pot
oca-travis Nov 25, 2019
d38cb4d
Move restrictions from stock_putaway_storage_type_strategy to base mo…
grindtildeath Nov 25, 2019
894cc9f
[IMP] stock_storage_type: black, isort
grindtildeath Jan 9, 2020
31cd758
[MIG] stock_storage_type: Migration to 13.0
grindtildeath Jan 9, 2020
73c47b8
Merge putaway_strategy module into stock_storage_type
grindtildeath Apr 6, 2020
1b942b2
Apply pre-commit
guewen Apr 29, 2020
809edf3
[IMP] stock_storage_type
gurneyalex Apr 29, 2020
85faabe
Improve put-away location selection perfs
gurneyalex May 19, 2020
509c45d
Find leaf sub-locations instead of all children
guewen Jun 5, 2020
c171236
Replace mapped by a SQL query
guewen Jun 5, 2020
885e381
Use a pre-generated domain to filter allowed locations
guewen Jun 5, 2020
5c5b761
Remove constrains forbidding 'none' + storage type on location
guewen Jun 24, 2020
834e180
pre-commit
grindtildeath Jun 24, 2020
7776d5c
[UPD] Update stock_storage_type.pot
oca-travis Jun 30, 2020
9ceff4c
[UPD] README.rst
OCA-git-bot Jun 30, 2020
595cb79
stock_storage_type 13.0.1.0.1
OCA-git-bot Jun 30, 2020
6a7992e
Allow to select locations with 'none' strategy in putaway sequence
guewen Jul 1, 2020
240cb0a
Ignore empty quants in constraints
guewen Jul 1, 2020
4a566d3
[UPD] Update stock_storage_type.pot
oca-travis Jul 6, 2020
51a1b78
[UPD] README.rst
OCA-git-bot Jul 6, 2020
d4796f1
stock_storage_type 13.0.1.1.0
OCA-git-bot Jul 6, 2020
e3f5762
stock_storage_type: Add package storage type on product
grindtildeath Jul 20, 2020
a3d9f32
Make stock_storage_type depend on stock_putaway_hook
guewen Jul 20, 2020
6170d88
Update stock_storage_type/models/stock_quant_package.py
grindtildeath Jul 23, 2020
cafa589
stock_storage_type 13.0.1.2.0
OCA-git-bot Aug 12, 2020
88393d8
[UPD] Update stock_storage_type.pot
oca-travis Aug 27, 2020
574d3f2
stock_storage_type 13.0.1.3.0
OCA-git-bot Aug 27, 2020
a30d6c6
stock_storage_type: option to make 'height' required on packages
sebalix Sep 23, 2020
e058a79
[UPD] Update stock_storage_type.pot
oca-travis Sep 25, 2020
49e30f6
stock_storage_type 13.0.1.4.0
OCA-git-bot Sep 25, 2020
0ee335b
Fix unpredictable package storage type on packages
guewen Oct 6, 2020
2e89a08
[IMP] stock_storage_type: sort putaway locations by supported max_height
sebalix Sep 25, 2020
888deed
[IMP] stock_storage_type_putaway_abc: sort also locations by max heights
sebalix Sep 25, 2020
69aa51e
Fix sorting broken by a limit on search for valid locations
guewen Oct 8, 2020
5723c35
Fix manager access on stock storage types
guewen Oct 21, 2020
f15921e
stock_storage_type 13.0.1.4.1
OCA-git-bot Oct 22, 2020
cceac6c
[UPD] Update stock_storage_type.pot
oca-travis Oct 22, 2020
711f77a
stock_storage_type 13.0.1.5.0
OCA-git-bot Oct 22, 2020
a84566e
[UPD] Update stock_storage_type.pot
oca-travis Nov 3, 2020
6d66836
stock_storage_type 13.0.1.6.0
OCA-git-bot Nov 3, 2020
b06fbcb
[IMP] black, isort, prettier
sebastienbeau Dec 10, 2020
747e4bb
[IMP] set module uninstallable
sebastienbeau Dec 10, 2020
645b4ff
stock_storage_type: fix location w/ no leaf locations
guewen Nov 27, 2020
8c6a974
stock_storage_type: fix warning non writeable field
simahawk Dec 15, 2020
457b367
[MIG] stock_storage_type: Migration to 14.0
hparfr Jan 13, 2021
370b86c
stock_storage_type: fix fields changed in dependencies
hparfr Jun 22, 2021
38158cb
[UPD] Update stock_storage_type.pot
oca-travis Jul 1, 2021
0113f06
[UPD] README.rst
OCA-git-bot Jul 1, 2021
d763dba
Extract methods in stock_storage_type to allow extensions
guewen Oct 22, 2020
29977c0
Add stock_storage_type_buffer
guewen Jul 9, 2020
2b4defa
Add small optimization on sorted intersection
guewen Oct 29, 2020
9e8aead
Add outgoing move lines qty_done qty in "is_empty"
guewen Oct 29, 2020
3847497
[IMP] stock_storage_type: black, isort, prettier
sebalix Aug 3, 2021
3b1edca
Add barcode on Package Storage Type
Jan 20, 2021
a4a8379
Optimize "will contain" computed fields on stock.location
guewen Jan 18, 2021
6971863
Exclude non-internal locations for storage types computed fields
guewen Jan 25, 2021
e54cab6
s_storage_type: no storage type for delivery
sebalix Mar 3, 2021
26a1639
[UPD] Update stock_storage_type.pot
oca-travis Aug 4, 2021
18597f1
stock_storage_type 14.0.1.1.0
OCA-git-bot Aug 4, 2021
c480a35
[UPD] Update stock_storage_type.pot
oca-travis Aug 4, 2021
feb8a24
stock_storage_type 14.0.1.2.0
OCA-git-bot Aug 4, 2021
17ab007
stock_storage_type 14.0.1.3.0
OCA-git-bot Aug 4, 2021
ea7686d
stock_storage_type 14.0.1.3.1
OCA-git-bot Aug 4, 2021
0fecd98
stock_storage_type: allow to archive storage types/locations
Mar 11, 2021
97bf9f0
[FIX] s_storage_type: Search tag requires at least one field element
sebalix Aug 5, 2021
45865bd
stock_storage_type: prevent useless writes on stock.location
guewen Feb 5, 2021
6709e04
Optimize location_is_empty to be computed only when necessary
guewen Feb 5, 2021
0d375f9
Improve readability by using proper variable name
guewen Feb 8, 2021
745e741
stock_storage_type: use estimated package weight if the weight is not…
sebalix Jan 14, 2021
5102133
stock_storage_type 14.0.1.4.0
OCA-git-bot Aug 5, 2021
2422cd7
[UPD] Update stock_storage_type.pot
oca-travis Aug 5, 2021
6545cb5
stock_storage_type 14.0.1.5.0
OCA-git-bot Aug 5, 2021
4a9f811
stock_storage_type: putaway strategy "do not mix" should give priorit…
lmignon Feb 11, 2021
c47a730
stock_storage_type: Optimisation of the sorting of valid locations
lmignon Feb 12, 2021
c34c397
stock_storage_type: Finalisation of the optimisation of the sorting o…
lmignon Feb 12, 2021
45f46a8
stock_storage_type: browse only once and avoid recordset union
lmignon Feb 22, 2021
464f640
[IMP] stock_storage_type: black, isort, prettier
sebalix Aug 5, 2021
1726308
[UPD] Update stock_storage_type.pot
oca-travis Aug 6, 2021
ca74a6d
stock_storage_type 14.0.1.6.0
OCA-git-bot Aug 6, 2021
9364455
[UPD] Update stock_storage_type.pot
oca-travis Aug 6, 2021
fc41c41
stock_storage_type 14.0.1.7.0
OCA-git-bot Aug 6, 2021
c69e0a1
Change sorting of locations in the pack putaway computation
jbaudoux Jun 4, 2021
a19c600
Fix tests for stock_vertical_lift_storage_type by ensuring order when…
jbaudoux Jun 16, 2021
8671d59
Fix Package storage type message computation.
jbaudoux Aug 18, 2021
bfe293b
[UPD] Update stock_storage_type.pot
oca-travis Aug 19, 2021
19ef051
[UPD] README.rst
OCA-git-bot Aug 19, 2021
d8d5c08
stock_storage_type 14.0.1.8.0
OCA-git-bot Aug 19, 2021
a41547a
[FIX] s_storage_type: allowed location storage types
sebalix Sep 27, 2021
a681594
stock_storage_type 14.0.1.8.1
OCA-git-bot Oct 5, 2021
183cbc9
Revert "[FIX] s_storage_type: allowed location storage types"
sebalix Oct 7, 2021
75faafe
stock_storage_type 14.0.1.8.2
OCA-git-bot Oct 7, 2021
6c7a14e
Added translation using Weblate (Spanish (Argentina))
ibuioli Oct 19, 2021
ef95aac
stock_storage_type: add location smart buttons
jbaudoux Aug 18, 2021
329f07c
[FIX] stock_storage_type: Fix putaway compution when a strategy is de…
jbaudoux Aug 25, 2021
93aaf0d
[UPD] Update stock_storage_type.pot
oca-travis Nov 4, 2021
ab29580
stock_storage_type 14.0.1.9.0
OCA-git-bot Nov 4, 2021
d5123a8
Update translation files
oca-transbot Nov 4, 2021
ad12c49
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 28, 2021
d6ccc8c
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 29, 2021
a179041
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 29, 2021
827d733
[IMP] stock_storage_type: Remove useless code
lmignon Jan 12, 2022
a491296
[IMP] stock_storage_type: Add support for fixed location put away
lmignon Jan 12, 2022
0261861
stock_storage_type: dev status -> Beta
simahawk Jan 18, 2022
4fd174c
[UPD] README.rst
OCA-git-bot Jan 19, 2022
2c27abc
stock_storage_type 14.0.1.10.0
OCA-git-bot Jan 19, 2022
75c01d1
stock_storage_type 14.0.1.11.0
OCA-git-bot Jan 27, 2022
a580685
Fix access right issues when using actions
sebalix Jan 27, 2022
accf0ea
stock_storage_type 14.0.1.11.1
OCA-git-bot Jan 27, 2022
96a320d
[FIX] s_storage_type: fix computation of 'max_height_in_m'
sebalix Feb 14, 2022
a8fc7bd
stock_storage_type 14.0.1.11.2
OCA-git-bot Feb 15, 2022
1ea98bd
[IMP] stock_storage_type: Allow to restrict some putaway sequence
lmignon Jan 11, 2022
1cf3a4e
[UPD] Update stock_storage_type.pot
Jun 23, 2022
c519808
[UPD] README.rst
OCA-git-bot Jun 23, 2022
62601e1
stock_storage_type 14.0.1.12.0
OCA-git-bot Jun 23, 2022
45a57ac
Update translation files
oca-transbot Jun 23, 2022
d678125
Translated using Weblate (Spanish (Argentina))
ibuioli Jun 29, 2022
9dd0d6c
[MIG] stock_storage_type: 15.0
flachica Sep 29, 2022
08a9344
[IMP] stock_storage_type: black, isort, prettier
rousseldenis Oct 4, 2022
f07ca84
[MIG] stock_storage_type: Migration to 16.0
rousseldenis Oct 4, 2022
21a322d
[IMP] stock_storage_type: Remove web_domain_field module dependency
rousseldenis Oct 6, 2022
3861dac
[IMP] stock_storage_type: Change group from view to field
rousseldenis Oct 6, 2022
271f1f5
[IMP] stock_storage_type: Rename stock.production.lot to stock.lot
rousseldenis Oct 28, 2022
694dd9f
[IMP] stock_storage_type: Add recursive property on fields that depen…
rousseldenis Oct 28, 2022
52ed7b7
[CHG] stock_storage_type: Use of core stock.package.type object
rousseldenis Oct 18, 2022
8728b46
[IMP] stock_storage_type: Add dependency on stock_package_type_button…
rousseldenis Oct 18, 2022
f6f2aca
[IMP] stock_storage_type: Move stock.location.storage.type to core ca…
rousseldenis Oct 26, 2022
759c8e2
[IMP] stock_storage_type: Merge 'do not mix lots' strategy into 'allo…
rousseldenis Nov 9, 2022
fb39a31
[IMP] stock_storage_type: Add migration scripts
rousseldenis Oct 28, 2022
9e9710a
[IMP] stock_storage_type: Migration scripts
rousseldenis Nov 9, 2022
536b38c
[IMP] stock_storage_type: Use default product package type
rousseldenis Nov 16, 2022
9d6a233
[IMP] stock_storage_type: Use correct domain to see locations from se…
rousseldenis Mar 13, 2023
5d56dd5
[IMP] stock_storage_type: Improve comment and visibility group for ca…
rousseldenis Mar 13, 2023
7e26b16
[IMP] stock_storage_type: Improve messages and code logic
rousseldenis Mar 13, 2023
0a19e2d
[IMP] stock_storage_type: Change pack_putaway_sequence to package_typ…
rousseldenis Mar 13, 2023
c5cac07
[IMP] stock_storage_type: Better Stock Storage Category name display
rousseldenis Mar 15, 2023
0e57890
[IMP] stock_storage_type: Remove active field on Stock Storage Catego…
rousseldenis Mar 15, 2023
a82001b
[FIX] stock_storage_type: Improve migration scripts
rousseldenis Apr 12, 2023
84350a8
[IMP] stock_storage_type: Rename putaway strategy method name + allow…
rousseldenis Apr 14, 2023
46b937e
[FIX] stock_storage_type: Fix the behaviour to get the package type a…
rousseldenis Apr 28, 2023
b15b474
[IMP] stock_storage_type: Set the category from migrated one on locat…
rousseldenis May 2, 2023
ab51263
[IMP] stock_storage_type: Add 'Allow new product' on Package Type view
rousseldenis Jun 8, 2023
ef70014
[IMP] stock_storage_type: Allow to re-apply putaway rules on computed…
rousseldenis Jun 9, 2023
a43fbfe
[FIX] stock_storage_type: Remove unused code
rousseldenis Jun 9, 2023
594b342
[IMP] stock_storage_type: Take into account complex location views st…
rousseldenis Jul 4, 2023
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
1 change: 1 addition & 0 deletions setup/stock_storage_type/odoo/addons/stock_storage_type
6 changes: 6 additions & 0 deletions setup/stock_storage_type/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
180 changes: 180 additions & 0 deletions stock_storage_type/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
==================
Stock Storage Type
==================

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

.. |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/16.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-16-0/wms-16-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=16.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:%2016.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 <akim.juillerat@camptocamp.com>
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
* Raphaël Reverdy <raphael.reverdy@akretion.com>
* Jacques-Etienne Baudoux <je@bcim.be>
* Laurent Mignon <laurent.mignon@acsone.eu>
* Fernando La Chica - GreenICe <fernandolachica@gmail.com>
* Denis Roussel <denis.roussel@acsone.eu>

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.

This module is part of the `OCA/wms <https://github.com/OCA/wms/tree/16.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
41 changes: 41 additions & 0 deletions stock_storage_type/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2019-2021 Camptocamp SA
# Copyright 2019-2021 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Stock Storage Type",
"summary": "Manage packages and locations storage types",
"version": "16.0.1.0.1",
"development_status": "Beta",
"category": "Warehouse Management",
"website": "https://github.com/OCA/wms",
"author": "Camptocamp, BCIM, Odoo Community Association (OCA)",
"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="max_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>
11 changes: 11 additions & 0 deletions stock_storage_type/demo/stock_storage_category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2022 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="storage_category_pallets" model="stock.storage.category">
<field name="name">Pallets</field>
</record>
<record id="storage_category_cardboxes" model="stock.storage.category">
<field name="name">Cardboxes</field>
</record>
</odoo>
Loading