Commit Graph

12 Commits

Author SHA1 Message Date
Simone Orsi
133dc9d743 packaging_calculator: allow custom value handler
Use _packaging_values_handler ctx key to pass your own handler
for specific on demand overrides.
2020-08-03 10:30:06 +02:00
Simone Orsi
abf1fa8f77 Merge pull request #939 from Tonow-c2c/add_is_unit_stock_packaging_calculator
[IMP][stock_packaging_calculator] Add key is_unit for in the packaging calculator return
2020-07-17 16:23:28 +02:00
Akim Juillerat
eb859046fb stock_packaging_calculator: Add hook on packaging values
Fix tests
2020-07-17 14:56:49 +02:00
Tonow-c2c
b5bc72b08d [IMP][stock_packaging_calculator] Add key is_unit for in the packaging calculator return 2020-07-17 14:56:49 +02:00
Simone Orsi
73ed9451f5 Re-license stock_packaging_calculator w/ LGPL 2020-07-15 17:29:44 +02:00
Simone Orsi
77107d519a stock_packaging_calculator: add support for custom packaging name 2020-06-30 14:29:58 +02:00
Simone Orsi
7cb7e9dcb4 stock_packaging_calculator: add support for packaging filter 2020-06-30 14:20:33 +02:00
Simone Orsi
7ba93db768 stock_packaging_calculator: make contained mapping computed
Allows to reuse the mapping every time is needed.
2020-06-09 13:15:00 +02:00
Simone Orsi
e3a1d8910d stock_packaging_calculator: add contained packaging compute
Optionally include contained packaging qty.
2020-06-08 12:04:07 +02:00
Simone Orsi
cad2ae29f5 stock_packaging_calculator: return dict instead of tuple
Allows to ship more information with each element in the list.
2020-06-08 10:18:02 +02:00
Simone Orsi
cf9bc42bd9 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.
2020-06-08 09:56:12 +02:00
Simone Orsi
a99d23e0c2 Add stock_packaging_calculator 2020-05-27 10:30:54 +02:00