Commit Graph

1344 Commits

Author SHA1 Message Date
Alexandre Fayolle
d6a7d580bb product_available improvements
* fix the dependencies for the computed field

* use api.multi instead of api.one to avoid calling
  super()._immediately_usable_qty in a loop (this improves perfs on a tree view
  display)
2020-06-16 11:18:12 +07:00
Atchuthan, Sodexis
94d1fb7ac6 [9.0][PORT] Stock available 2020-06-16 11:18:12 +07:00
OCA Transbot
12c9c3a241 OCA Transbot updated translations from Transifex 2020-06-16 11:18:12 +07:00
Lionel Sausin
8cabcc04f3 Revert changes to computation of _immediately_usable_qty
Commit 6c16913 changed the way we compute the immediately_usable_qty: instead of using the virtual stock, we used the sum of quants without reservations. But a quant may actually be reserved and still be available (for example it may be reserved for an internal move).
Fixes https://github.com/OCA/stock-logistics-warehouse/issues/79

Remove loop and use correct decorator

Restore the features of stock_available_immediately

The previous fix restored stock_available but then there was no way to exclude the incomming moves from the count. This belongs in stock_available_immediately, restoring it cleanly.
This commit also takes care to respect the distinction between templates and variants, so it should fix https://github.com/OCA/stock-logistics-warehouse/issues/73 too.

Restore the qty avail. to promise on variant treeview

PEP8
2020-06-16 11:18:12 +07:00
Laetitia Gangloff
10f7643fe2 [FIX] stock_available : update sublocations computation 2020-06-16 11:18:12 +07:00
Giovanni francesco Capalbo
374ce93a81 [FIX] searching on products, leaving full calculations
not using internal qty_available that seems not to
take in consideration reserved quants.

[ADD] Tests
2020-06-16 11:18:12 +07:00
gfcapalbo
c3519850df [FIX] corrected calculation of immediately_usable_qty on product.product and
product.template, now takes in account variants and correctly displays value.
[FLAKE8]

Removing duplicate modules and moving README.rst into __unported__

[ADD} location calculations

[FIX] typo
2020-06-16 11:18:12 +07:00
Lionel Sausin (Numérigraphe)
8da242ce15 [ADD] stock_available
Generic module to compute the stock quantity available to promise using several implementations.
stock_available_immediatly is changed to become the first optional implementation.
Cherry pick of commit 0b060f619f from the v7 branch

[IMP] stock_available* uses new API

[ADD] stock_available_mrp

Module to take immediate manufaturing capability into account in the stock quantity available to promise.

Conflicts:
	stock_available/res_config.py

[DEL] move stock_available_mrp to __unported__

[ADD] stock_available_sale

Take sale quotations into account in the stock quantity available to promise
Cherry-picked from 497068f5f5

Conflicts:
	stock_available/res_config.py

[DEL] move stock_available_sale to __unported__

[IMP] READMEs and TODOs

Cherry-picked from v7 at 8add4bea7e

Conflicts:
	__unported__/stock_available_mrp/__openerp__.py
	stock_available/__openerp__.py
	stock_available_immediately/__openerp__.py

[IMP] respect product decimal precision

https://github.com/odoo/odoo/issues/5512 and b3e5a940e3 makes it clear the standard intends to support decimal precision on the product form.
2020-06-16 11:18:12 +07:00
Sergio Teruel
dea0f15895 [IMP] stock_move_location: Allow to select any location. 2020-06-11 09:25:14 +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
OCA-git-bot
a6d061d236 stock_packaging_calculator 13.0.1.1.0 2020-06-09 08:09:47 +00:00
OCA-git-bot
bae259af56 [UPD] README.rst 2020-06-09 08:09:46 +00:00
OCA-git-bot
080f75e00d Merge PR #916 into 13.0
Signed-off-by simahawk
2020-06-09 07:48:01 +00:00
Simone Orsi
e3a1d8910d stock_packaging_calculator: add contained packaging compute
Optionally include contained packaging qty.
2020-06-08 12:04:07 +02:00
OCA Transbot
3f49756f4f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_cycle_count
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_cycle_count/
2020-06-08 08:26:21 +00:00
OCA-git-bot
eebda40802 [ADD] setup.py 2020-06-08 08:25:58 +00:00
OCA-git-bot
a190e9d017 [ADD] icon.png 2020-06-08 08:25:58 +00:00
OCA-git-bot
d64b7fcd49 [UPD] README.rst 2020-06-08 08:25:57 +00: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
oca-travis
6d51220b4b [UPD] Update stock_packaging_calculator.pot 2020-06-08 08:00:41 +00: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
OCA-git-bot
0820d044fd Merge PR #911 into 13.0
Signed-off-by simahawk
2020-06-08 07:48:38 +00:00
OCA-git-bot
b5c4df7820 stock_cycle_count 13.0.1.0.1 2020-06-03 08:27:02 +00:00
OCA-git-bot
2881dc63e0 [ADD] setup.py 2020-06-03 08:27:02 +00:00
OCA-git-bot
58588c4430 [UPD] README.rst 2020-06-03 08:27:02 +00:00
oca-travis
35b2ee46cc [UPD] Update stock_cycle_count.pot 2020-06-03 08:01:23 +00:00
OCA-git-bot
6f0da1b354 Merge PR #844 into 13.0
Signed-off-by LoisRForgeFlow
2020-06-03 07:49:18 +00:00
jim.hoefnagels
414c3bc89a [MIG] stock_cycle_count: Migration to 13.0 2020-06-02 13:04:23 +02:00
jim.hoefnagels
186249ba66 [IMP] stock_cycle_count: black, isort 2020-06-02 13:03:33 +02:00
Sergio Teruel
f25fe9152e [IMP] stock_cycle_count: Create test user without password to pass tests with other modules like password_policy 2020-06-02 13:03:33 +02:00
黎伟杰
1e51051b7a Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (127 of 127 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_cycle_count
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_cycle_count/zh_CN/
2020-06-02 13:03:33 +02:00
黎伟杰
f24bf12a67 Translated using Weblate (Chinese (Simplified))
Currently translated at 40.2% (51 of 127 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_cycle_count
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_cycle_count/zh_CN/
2020-06-02 13:03:33 +02:00
OCA-git-bot
8727672e72 [UPD] README.rst 2020-06-02 13:03:33 +02:00
OCA Transbot
88a806ad50 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_cycle_count
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_cycle_count/
2020-06-02 13:03:33 +02:00
OCA-git-bot
9fa2913912 [UPD] README.rst 2020-06-02 13:03:33 +02:00
oca-travis
cf9d1ee86c [UPD] Update stock_cycle_count.pot 2020-06-02 13:03:33 +02:00
Lois Rilo
d3b002212a [12.0][FIX/MIG] stock_cycle_count: fix zero confirmation rules.
Now zero-qty quants are not removed straight away but by a cron job.
Therefore, we have to also check that the quants are not zero-qty ones.
2020-06-02 13:03:33 +02:00
Bhavesh Odedra
8685d29a22 [12.0][MIG] stock_cycle_count: Migration to 12.0 2020-06-02 13:03:33 +02:00
Pedro M. Baeza
af4147049e [FIX] stock_cycle_count: Don't lose return value
For avoiding an error validating pickings.
2020-06-02 13:03:33 +02:00
OCA Transbot
16a0bed6d7 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2020-06-02 13:03:33 +02:00
oca-travis
3b57fe0511 [UPD] Update stock_cycle_count.pot 2020-06-02 13:03:33 +02:00
OCA-git-bot
97c37b3c80 [UPD] README.rst 2020-06-02 13:03:33 +02:00
Jordi Ballester Alomar
0b83fa9440 stock_cycle_count: fix issue with nan while doing the mean calculation 2020-06-02 13:03:33 +02:00
Lois Rilo
539ae5be22 [11.0][MIG] stock_cycle_count 2020-06-02 13:03:33 +02:00
oca-travis
4bd6e39587 [UPD] Update stock_cycle_count.pot 2020-06-02 13:03:33 +02:00
Lois Rilo
99288ab78a [10.0][UPD] stock_cycle_count: add roadmap. 2020-06-02 13:03:33 +02:00
Lois Rilo
e821d9c55d [10.0][IMP] stock_cycle_count:
* simplify fetching latest inventory date
* use api.depends where needed
* add hook for cycle count creation
* take advantage of api.multi on check_zero_confirmation method
2020-06-02 13:03:33 +02:00
Lois Rilo
f0d840f729 [10.0] stock_cycle_count: adapt to follow OCA convention. 2020-06-02 13:03:33 +02:00
lreficent
10beda575e [10.0][IMP] fix api issues and clean up code 2020-06-02 13:03:33 +02:00
lreficent
b4e25ccf73 cycle_count: fix cycle count state issue 2020-06-02 13:03:33 +02:00