Commit Graph

43 Commits

Author SHA1 Message Date
OCA-git-bot
dc4965b7a3 [UPD] README.rst 2022-02-22 18:11:26 +00:00
oca-ci
80c9663b60 [UPD] Update stock_packaging_calculator.pot 2022-02-22 18:06:56 +00:00
Christopher Ormaza
9c005aedbb [15.0][MIG] stock_packaging_calculator 2021-12-13 13:25:18 -05:00
Christopher Ormaza
9ded9efb55 [IMP] stock_packaging_calculator: black, isort, prettier 2021-12-13 13:14:34 -05:00
OCA-git-bot
57f81a2605 stock_packaging_calculator 14.0.1.1.0 2021-12-13 13:14:20 -05:00
oca-travis
725307ee8e [UPD] Update stock_packaging_calculator.pot 2021-12-13 13:14:20 -05:00
nguyen hoang hiep
b83cb979cc [IMP] stock_packaging_calculator: black, isort, prettier 2021-12-13 13:14:20 -05:00
oca-travis
6bfe0eedf2 [UPD] Update stock_packaging_calculator.pot 2021-12-13 13:14:20 -05:00
Simone Orsi
a30d36ea90 s_packaging_calculator: improve test util
This way no matter who's changing the behavior of the name getter
we'll get the right name.
2021-12-13 13:14:20 -05:00
Simone Orsi
ee59672e93 s_packaging_calculator: include units when units only on demand 2021-12-13 13:14:20 -05:00
Simone Orsi
77c2b38103 s_packaging_calculator: contained mapping depends on lang
Otherwise translations won't be taken into account.
2021-12-13 13:14:20 -05:00
Simone Orsi
dcfe9b9994 s_packaging_calculator: add handy mixin
This mixin can be used to provide qty by packaging features
to any model.
2021-12-13 13:14:20 -05:00
Simone Orsi
2d52fe87e5 s_packaging_calculator: add product_qty_by_packaging_as_str
Retrieve quickly packagin bty qty as a string.
2021-12-13 13:14:20 -05:00
Simone Orsi
2e6fddce9e s_packaging_calculator: ease override of packaging name 2021-12-13 13:14:20 -05:00
Simone Orsi
11c8f3fccc s_packaging_calculator: include barcode 2021-12-13 13:14:20 -05:00
OCA-git-bot
2eae0e40b5 stock_packaging_calculator 14.0.1.0.1 2021-12-13 13:14:20 -05:00
OCA-git-bot
0ec650a03b [UPD] README.rst 2021-12-13 13:14:20 -05:00
oca-travis
6591a22fc3 [UPD] Update stock_packaging_calculator.pot 2021-12-13 13:14:20 -05:00
Sébastien BEAU
77bc73978e [MIG] stock_packaging_calculator: Migration to 14.0 2021-12-13 13:14:20 -05:00
Sébastien BEAU
b086eb7cc3 [IMP] stock_packaging_calculator: black, isort, prettier 2021-12-13 13:14:20 -05:00
OCA-git-bot
0102fec4ef stock_packaging_calculator 13.0.1.6.0 2021-12-13 13:14:20 -05:00
Simone Orsi
19092f8f9f packaging_calculator: allow custom value handler
Use _packaging_values_handler ctx key to pass your own handler
for specific on demand overrides.
2021-12-13 13:14:20 -05:00
Simone Orsi
415fff5ac2 packaging_calculator: fix sorting
Make sure unit is always the last element in the list.
2021-12-13 13:14:20 -05:00
Simone Orsi
c4b0237727 stock_packaging_calculator 13.0.1.5.0 2021-12-13 13:14:20 -05:00
Akim Juillerat
0b1eaf90a6 stock_packaging_calculator: Add hook on packaging values
Fix tests
2021-12-13 13:14:20 -05:00
Tonow-c2c
6a3bb8df9c [IMP][stock_packaging_calculator] Add key is_unit for in the packaging calculator return 2021-12-13 13:14:20 -05:00
OCA-git-bot
edcfbafd06 stock_packaging_calculator 13.0.1.4.0 2021-12-13 13:14:20 -05:00
Simone Orsi
f67122873f Re-license stock_packaging_calculator w/ LGPL 2021-12-13 13:14:20 -05:00
OCA-git-bot
25e2fa6307 stock_packaging_calculator 13.0.1.3.0 2021-12-13 13:14:20 -05:00
Simone Orsi
267a39c345 stock_packaging_calculator: add support for custom packaging name 2021-12-13 13:14:20 -05:00
Simone Orsi
a560a7e00c stock_packaging_calculator: add support for packaging filter 2021-12-13 13:14:20 -05:00
OCA-git-bot
a1f94a09b3 stock_packaging_calculator 13.0.1.2.0 2021-12-13 13:14:20 -05:00
oca-travis
1cf5fde2ee [UPD] Update stock_packaging_calculator.pot 2021-12-13 13:14:20 -05:00
Simone Orsi
e5d336fcd2 stock_packaging_calculator: make contained mapping computed
Allows to reuse the mapping every time is needed.
2021-12-13 13:14:20 -05:00
OCA-git-bot
cb0eb5f712 stock_packaging_calculator 13.0.1.1.0 2021-12-13 13:14:20 -05:00
OCA-git-bot
7539376001 [UPD] README.rst 2021-12-13 13:14:20 -05:00
Simone Orsi
93bf5e3bc6 stock_packaging_calculator: add contained packaging compute
Optionally include contained packaging qty.
2021-12-13 13:14:20 -05:00
OCA-git-bot
4dd8a45ab3 [ADD] icon.png 2021-12-13 13:14:20 -05:00
OCA-git-bot
9b48b273dd [UPD] README.rst 2021-12-13 13:14:20 -05:00
Simone Orsi
e0249f93c5 stock_packaging_calculator: return dict instead of tuple
Allows to ship more information with each element in the list.
2021-12-13 13:14:20 -05:00
oca-travis
97ea8068da [UPD] Update stock_packaging_calculator.pot 2021-12-13 13:14:20 -05:00
Simone Orsi
d893e45497 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-12-13 13:14:20 -05:00
Simone Orsi
c5c0a634ff Add stock_packaging_calculator 2021-12-13 13:14:20 -05:00