Commit Graph

8 Commits

Author SHA1 Message Date
Simone Orsi
e4b3ec7690 Re-license stock_packaging_calculator w/ LGPL 2022-10-10 13:55:27 +02:00
Simone Orsi
4cc5819bed stock_packaging_calculator: add support for custom packaging name 2022-10-10 13:55:27 +02:00
Simone Orsi
b0e9819320 stock_packaging_calculator: add support for packaging filter 2022-10-10 13:55:27 +02:00
Simone Orsi
0636167004 stock_packaging_calculator: make contained mapping computed
Allows to reuse the mapping every time is needed.
2022-10-10 13:55:27 +02:00
Simone Orsi
359d599713 stock_packaging_calculator: add contained packaging compute
Optionally include contained packaging qty.
2022-10-10 13:55:27 +02:00
Simone Orsi
4c997b882d stock_packaging_calculator: return dict instead of tuple
Allows to ship more information with each element in the list.
2022-10-10 13:55:27 +02:00
Simone Orsi
0715a5ae3d stock_packaging_calculator: make product uom the minimal unit
Customizing the minimal unit was not needed at all.
This way we always assume the precision is the on of the UoM.
2022-10-10 13:55:27 +02:00
Simone Orsi
29c30b9dfc Add stock_packaging_calculator 2022-10-10 13:55:27 +02:00