Commit Graph

42 Commits

Author SHA1 Message Date
Christopher Ormaza
e067ec70e8 [15.0][MIG] stock_packaging_calculator 2022-10-10 13:55:27 +02:00
Christopher Ormaza
acb6344463 [IMP] stock_packaging_calculator: black, isort, prettier 2022-10-10 13:55:27 +02:00
OCA-git-bot
ef048daf86 stock_packaging_calculator 14.0.1.1.0 2022-10-10 13:55:27 +02:00
oca-travis
8e2b721618 [UPD] Update stock_packaging_calculator.pot 2022-10-10 13:55:27 +02:00
nguyen hoang hiep
f669dcd98c [IMP] stock_packaging_calculator: black, isort, prettier 2022-10-10 13:55:27 +02:00
oca-travis
e1f70afde3 [UPD] Update stock_packaging_calculator.pot 2022-10-10 13:55:27 +02:00
Simone Orsi
dd77e4240f 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.
2022-10-10 13:55:27 +02:00
Simone Orsi
99246b3a00 s_packaging_calculator: include units when units only on demand 2022-10-10 13:55:27 +02:00
Simone Orsi
a2134f26ac s_packaging_calculator: contained mapping depends on lang
Otherwise translations won't be taken into account.
2022-10-10 13:55:27 +02:00
Simone Orsi
45e3e2e137 s_packaging_calculator: add handy mixin
This mixin can be used to provide qty by packaging features
to any model.
2022-10-10 13:55:27 +02:00
Simone Orsi
051911e884 s_packaging_calculator: add product_qty_by_packaging_as_str
Retrieve quickly packagin bty qty as a string.
2022-10-10 13:55:27 +02:00
Simone Orsi
38baba3a6e s_packaging_calculator: ease override of packaging name 2022-10-10 13:55:27 +02:00
Simone Orsi
f14a906c36 s_packaging_calculator: include barcode 2022-10-10 13:55:27 +02:00
OCA-git-bot
9ebb2e7e11 stock_packaging_calculator 14.0.1.0.1 2022-10-10 13:55:27 +02:00
OCA-git-bot
3952dea9be [UPD] README.rst 2022-10-10 13:55:27 +02:00
oca-travis
88301f5bd7 [UPD] Update stock_packaging_calculator.pot 2022-10-10 13:55:27 +02:00
Sébastien BEAU
6e597bf581 [MIG] stock_packaging_calculator: Migration to 14.0 2022-10-10 13:55:27 +02:00
Sébastien BEAU
af15012c12 [IMP] stock_packaging_calculator: black, isort, prettier 2022-10-10 13:55:27 +02:00
OCA-git-bot
dcde9d28b6 stock_packaging_calculator 13.0.1.6.0 2022-10-10 13:55:27 +02:00
Simone Orsi
c0e5e4babc packaging_calculator: allow custom value handler
Use _packaging_values_handler ctx key to pass your own handler
for specific on demand overrides.
2022-10-10 13:55:27 +02:00
Simone Orsi
7be28d9f2f packaging_calculator: fix sorting
Make sure unit is always the last element in the list.
2022-10-10 13:55:27 +02:00
Simone Orsi
92c244ac0d stock_packaging_calculator 13.0.1.5.0 2022-10-10 13:55:27 +02:00
Akim Juillerat
050c658ab1 stock_packaging_calculator: Add hook on packaging values
Fix tests
2022-10-10 13:55:27 +02:00
Tonow-c2c
8e27481ac6 [IMP][stock_packaging_calculator] Add key is_unit for in the packaging calculator return 2022-10-10 13:55:27 +02:00
OCA-git-bot
043227b186 stock_packaging_calculator 13.0.1.4.0 2022-10-10 13:55:27 +02:00
Simone Orsi
e4b3ec7690 Re-license stock_packaging_calculator w/ LGPL 2022-10-10 13:55:27 +02:00
OCA-git-bot
fbb564ef0c stock_packaging_calculator 13.0.1.3.0 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
OCA-git-bot
391ce22c77 stock_packaging_calculator 13.0.1.2.0 2022-10-10 13:55:27 +02:00
oca-travis
b805191d52 [UPD] Update stock_packaging_calculator.pot 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
OCA-git-bot
5511806ae4 stock_packaging_calculator 13.0.1.1.0 2022-10-10 13:55:27 +02:00
OCA-git-bot
9a843df065 [UPD] README.rst 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
OCA-git-bot
9115aceaf5 [ADD] icon.png 2022-10-10 13:55:27 +02:00
OCA-git-bot
69ac7de34a [UPD] README.rst 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
oca-travis
8796f35572 [UPD] Update stock_packaging_calculator.pot 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
oca-git-bot
a901d10550 Initialize 16.0 branch 2022-10-03 22:07:40 +02:00