Commit Graph

20 Commits

Author SHA1 Message Date
Florent Xicluna
bb4fc04cce s_packaging_calculator: remove unneeded   constant 2023-12-05 11:57:02 +01:00
Sébastien Alix
e3f842dd89 stock_packaging_calculator: improve performance 2022-04-21 11:41:35 +02:00
Simone Orsi
6ce14df9c6 s_packaging_calculator: include units when units only on demand 2021-09-14 04:26:59 +00:00
Simone Orsi
df53d03f49 s_packaging_calculator: contained mapping depends on lang
Otherwise translations won't be taken into account.
2021-09-14 04:18:03 +00:00
Simone Orsi
5d44d558f6 s_packaging_calculator: add product_qty_by_packaging_as_str
Retrieve quickly packagin bty qty as a string.
2021-09-14 04:18:03 +00:00
Simone Orsi
7b7cacc7f6 s_packaging_calculator: ease override of packaging name 2021-09-14 04:18:03 +00:00
Simone Orsi
4f156d449e s_packaging_calculator: include barcode 2021-09-14 04:15:16 +00:00
Sébastien BEAU
02ba4eebfe [IMP] stock_packaging_calculator: black, isort, prettier 2021-01-06 15:03:10 +01:00
Simone Orsi
e713b1d805 packaging_calculator: allow custom value handler
Use _packaging_values_handler ctx key to pass your own handler
for specific on demand overrides.
2021-01-06 15:03:05 +01:00
Simone Orsi
5d0de4b143 packaging_calculator: fix sorting
Make sure unit is always the last element in the list.
2021-01-06 15:03:05 +01:00
Akim Juillerat
bac56d52ae stock_packaging_calculator: Add hook on packaging values
Fix tests
2021-01-06 15:03:05 +01:00
Tonow-c2c
37d44c72e6 [IMP][stock_packaging_calculator] Add key is_unit for in the packaging calculator return 2021-01-06 15:03:05 +01:00
Simone Orsi
181228f877 Re-license stock_packaging_calculator w/ LGPL 2021-01-06 15:03:05 +01:00
Simone Orsi
311c50025a stock_packaging_calculator: add support for custom packaging name 2021-01-06 15:03:05 +01:00
Simone Orsi
423cd926c6 stock_packaging_calculator: add support for packaging filter 2021-01-06 15:03:05 +01:00
Simone Orsi
35d3eb7cc2 stock_packaging_calculator: make contained mapping computed
Allows to reuse the mapping every time is needed.
2021-01-06 15:03:05 +01:00
Simone Orsi
49d45b461c stock_packaging_calculator: add contained packaging compute
Optionally include contained packaging qty.
2021-01-06 15:03:05 +01:00
Simone Orsi
3de5642d78 stock_packaging_calculator: return dict instead of tuple
Allows to ship more information with each element in the list.
2021-01-06 15:03:05 +01:00
Simone Orsi
b8ef0cbc75 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.
2021-01-06 15:03:05 +01:00
Simone Orsi
0655a516e2 Add stock_packaging_calculator 2021-01-06 15:03:05 +01:00