Commit Graph

1483 Commits

Author SHA1 Message Date
Atchuthan, Sodexis
3cdb01ba16 [9.0][PORT] Stock available 2020-12-24 22:19:28 +01:00
OCA Transbot
2e43bb21fb OCA Transbot updated translations from Transifex 2020-12-24 22:19:28 +01:00
Lionel Sausin
3cce4ff7e8 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-12-24 22:19:28 +01:00
Laetitia Gangloff
fd076aa37e [FIX] stock_available : update sublocations computation 2020-12-24 22:19:28 +01:00
Giovanni francesco Capalbo
f064d99438 [FIX] searching on products, leaving full calculations
not using internal qty_available that seems not to
take in consideration reserved quants.

[ADD] Tests
2020-12-24 22:19:28 +01:00
gfcapalbo
455b98babe [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-12-24 22:19:28 +01:00
Lionel Sausin (Numérigraphe)
4905c4f201 [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-12-24 22:19:28 +01:00
Pierrick Brun
5d02fef31d [MIG] stock_mts_mto_rule: Migration to 14.0 2020-12-18 12:33:22 +01:00
Pierrick Brun
d283d1a5d9 [IMP] stock_mts_mto_rule: black, isort, prettier 2020-12-18 11:59:06 +01:00
OCA Transbot
7b46c6822c 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_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_mts_mto_rule/
2020-12-18 11:58:34 +01:00
oca-travis
3f3b92877d [UPD] Update stock_mts_mto_rule.pot 2020-12-18 11:58:34 +01:00
Deivis Laya
58688edb9a [MIG] stock_mts_mto_rule: Migration to 13.0 2020-12-18 11:58:34 +01:00
Deivis Laya
88bafdfd72 [IMP] stock_mts_mto_rule: black, isort, prettier 2020-12-18 11:58:34 +01:00
Matjaz Mozetic
d75d47a5fd Translated using Weblate (Slovenian)
Currently translated at 55.6% (10 of 18 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_mts_mto_rule/sl/
2020-12-18 11:58:34 +01:00
Pedro M. Baeza
69383a1b7e [IMP] stock_mts_mto_rule: Make tests resilient
Using an already created product can lead to incorrect tests on integrated
environments where other modules modify this product. We create a new one for
avoiding this side effect.
2020-12-18 11:58:34 +01:00
OCA-git-bot
9e51002a43 stock_mts_mto_rule 12.0.1.0.1 2020-12-18 11:58:34 +01:00
Andrii Skrypka
e745997f2d [FIX] stock_mts_mto_rule: add mts_rule_id and mto_rule_id on stock rule form view 2020-12-18 11:58:34 +01:00
黎伟杰
6fcd102477 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (18 of 18 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_mts_mto_rule/zh_CN/
2020-12-18 11:58:34 +01:00
Julien Thomazeau
5a958dc1e6 Translated using Weblate (French)
Currently translated at 11.8% (2 of 17 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_mts_mto_rule/fr_FR/
2020-12-18 11:58:34 +01:00
Jared Kipe
06ffee38a8 [MIG] Migrate stock_mts_mto_rule to 12.0
Major changes to the way Warehouses update their routes/rules and self heal.
Improved rule code to use `float_compare` and `float_is_zero`.
2020-12-18 11:58:34 +01:00
OCA-git-bot
eb75152a27 [ADD] icon.png 2020-12-18 11:58:34 +01:00
Florian da Costa
b108d856ba Migrate stock_mts_mto_rule to version 11 2020-12-18 11:58:34 +01:00
OCA Transbot
f1e7542bf2 OCA Transbot updated translations from Transifex
OCA Transbot updated translations from Transifex
2020-12-18 11:58:34 +01:00
Katherine Zaoral [Vauxoo]
6e9eae385e [FIX] _update_routes now handle multiple records (#325)
This method is called from the write() method the one how support
multiple records an api.multi method.

I was making some test when I tried to activate the mto+mts option for
multiple warehouse and the next error appears: ``ValueError: Expected singleton``

In order to fix this error I only added a loop to manage the multiple
registers.
2020-12-18 11:58:34 +01:00
OCA Transbot
cd185ef2cd OCA Transbot updated translations from Transifex
OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex
2020-12-18 11:58:34 +01:00
Pedro M. Baeza
679b2a2c6d [FIX] stock_mts_mto_rule: Don't fail on renaming WH code
There's a traceback when renaming warehouse code (without renaming warehouse name), as name argument is False.
2020-12-18 11:58:34 +01:00
OCA Transbot
3d076added OCA Transbot updated translations from Transifex 2020-12-18 11:58:34 +01:00
Sylvain GARANCHER
fe4b034ed4 [FIX] stock_mts_mto_rule : Fixed v10 migration bugs, revealed by new unit tests 2020-12-18 11:58:34 +01:00
Sylvain GARANCHER
299c2191b2 [IMP] stock_mts_mto_rule : Added some unit tests 2020-12-18 11:58:34 +01:00
Sylvain GARANCHER
8e43487ba4 [MIG] Migrate stock_mts_mto_rule to v10.0 2020-12-18 11:58:34 +01:00
jbeficent
cd38204fc3 stock_mts_mto_rule 2020-12-18 11:58:34 +01:00
Florian da Costa
fb1cd6a3a5 Do no run mts mto procurement if it already has been splited into at least another procurement 2020-12-18 11:58:34 +01:00
Levent Karakas
94558043de stock move name fix 2020-12-18 11:58:34 +01:00
OCA Transbot
d785c05c49 OCA Transbot updated translations from Transifex
OCA Transbot updated translations from Transifex
2020-12-18 11:58:34 +01:00
JulioSerna
e2dc0a6b44 set pull rule of customer location like split_procurement to allow when warehouse is two/three steps delivery propagate move by mts-mto in pick/pack/out 2020-12-18 11:58:34 +01:00
Lionel Sausin
d7f081484e Update READMEs
Conforms to the latest README template: bugtracker, runbot etc.
Fixes bugtracker URL on some modules.
States OCA as maintainer, removes other contributors from the 'Maintainer' section.
2020-12-18 11:58:34 +01:00
OCA Transbot
bca821e3cc OCA Transbot updated translations from Transifex 2020-12-18 11:58:34 +01:00
Florian da Costa
0569650888 fix stock_mts_mto procurement check method 2020-12-18 11:58:34 +01:00
Pedro M. Baeza
1531bac6d9 [MIG] Rename manifest files 2020-12-18 11:58:34 +01:00
Stéphane Bidoul (ACSONE)
faa5fec224 [FIX] remove en.po that was erroneously created by transbot 2020-12-18 11:58:34 +01:00
otherjustin
1d79817f10 Update README.rst
Add explanation for finding this setting
2020-12-18 11:58:34 +01:00
Pedro M. Baeza
ef1566f843 [MIG] Make modules uninstallable 2020-12-18 11:58:34 +01:00
Stéphane Bidoul
adf21cc00b [UPD] prefix versions with 8.0 2020-12-18 11:58:34 +01:00
OCA Transbot
03731cff2d OCA Transbot updated translations from Transifex 2020-12-18 11:58:34 +01:00
Gabriel Davini
17d08e3ba2 Better readme in stock_mts_mto_rule 2020-12-18 11:58:34 +01:00
Florian da Costa
86f50c5b8f add test + use standard mts and mto rules 2020-12-18 11:58:34 +01:00
Florian da Costa
6606940ab6 refactore creating a new route, a new procurement action and separate procurement rules to handle the mts+mto scenario 2020-12-18 11:58:34 +01:00
Florian da Costa
1689ea3dbf [MIG] stock_location_lockdown: Migration to 14.0 2020-12-17 15:14:11 +01:00
Florian da Costa
9b5678f1ff [IMP] stock_location_lockdown: black, isort, prettier 2020-12-17 15:14:11 +01:00
OCA-git-bot
44cd53edcf stock_location_lockdown 12.0.1.1.0 2020-12-17 15:13:40 +01:00