Commit Graph

36 Commits

Author SHA1 Message Date
OCA-git-bot
3eb8429ef8 stock_available 13.0.1.0.1 2020-08-24 11:40:09 +00:00
oca-travis
aa4696f03d [UPD] Update stock_available.pot 2020-08-24 10:20:29 +00:00
ps-tubtim
7e38dc1aab [MIG] stock_available: Migration to 13.0 2020-06-16 13:37:06 +07:00
ps-tubtim
13f714c49c [IMP] stock_available: black, isort 2020-06-16 11:18:13 +07:00
OCA-git-bot
e6f7018122 stock_available 12.0.1.0.1 2020-06-16 11:18:13 +07:00
Tony Gu
fa0e995fdd [Fix] use the same view id for differnt view using in product and product template 2020-06-16 11:18:13 +07:00
黎伟杰
2784e2d25e Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (21 of 21 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available/zh_CN/
2020-06-16 11:18:13 +07:00
黎伟杰
8a87a846c2 Translated using Weblate (Chinese (Simplified))
Currently translated at 23.8% (5 of 21 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available/zh_CN/
2020-06-16 11:18:13 +07:00
Florian da Costa
29dfe25d3f Make stock_available_mrp compatible with other modules like stock_available_immediately 2020-06-16 11:18:13 +07:00
Rodrigo Macedo
a0f835afe0 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (21 of 21 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available/pt_BR/
2020-06-16 11:18:13 +07:00
OCA-git-bot
7575a1bbcf [UPD] README.rst 2020-06-16 11:18:13 +07:00
OCA Transbot
def771f5dc 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_available
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available/
2020-06-16 11:18:13 +07:00
OCA-git-bot
2ab61bc953 [UPD] README.rst 2020-06-16 11:18:13 +07:00
oca-travis
b0d441d935 [UPD] Update stock_available.pot 2020-06-16 11:18:13 +07:00
Sergio Teruel
673be5b66f [MIG] stock_available: Migration to v12.0 2020-06-16 11:18:13 +07:00
Valentino
0f6e375a72 [ADD] Use same decorator on product.product as on product.template tree view. 2020-06-16 11:18:12 +07:00
Cédric Pigeon
8c6a72e29d [10.0][CHG]stock_available...: improve stock methods computation 2020-06-16 11:18:12 +07:00
Osoul
5803e0a7ac Added translation using Weblate (Arabic)
Currently translated at 61.9% (13 of 21 strings)

Translation: stock-logistics-warehouse-11.0/stock-logistics-warehouse-11.0-stock_available
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-11-0/stock-logistics-warehouse-11-0-stock_available/ar/
2020-06-16 11:18:12 +07:00
Alexandre Saunier
8cff602b08 [FIX] Improve migration to 11.0 2020-06-16 11:18:12 +07:00
Kiko Peiro
af5398bef0 [MIG] stock_available: Migration to 11.0 2020-06-16 11:18:12 +07:00
François Honoré
cfb618e788 [ADD] Add search function for immediately_usable_qty computed field + related unit test
Increase version number of the module
2020-06-16 11:18:12 +07:00
Denis Roussel
4579d28c1c [FIX] stock_available: Some affectations 2020-06-16 11:18:12 +07:00
David Vidal
1df96ff831 [MIG] stock_available_sale: Migration to 10.0 2020-06-16 11:18:12 +07:00
Cédric Pigeon
4988d74218 [10.0]stock_available: improve computation performance
[CHG] improve code regarding code review

[ADD] add test

[CHG] optimize stock computation by avoiding to call useless compute
2020-06-16 11:18:12 +07:00
SodexisTeam
cbe3b6da7b [10.0][MIG] stock_available & stock_available_immediately (#219) 2020-06-16 11:18:12 +07:00
Cyril Gaudin
1ee49c86d0 bom stock: small improvements and add test for field choice 2020-06-16 11:18:12 +07:00
Laetitia Gangloff
8d0940e587 stock_available / stock_available_mrp : add possibility to choose which field use to compute potential 2020-06-16 11:18:12 +07:00
Lionel Sausin
d006917e0c [IMP] Decouple the quantity for templates and variants
There are cases where we dot NOT want to simply sum the quantities of all the
variants. For example when dealing with manufacturing capacities, we may have
to chose between variants because we can't make ALL of them with the same
components.

So instead of a simple non-modular implementation, we'll let each module define
his own implementation of how to compute the product template's quantity
available for sale.

Conflicts:
	stock_available/__openerp__.py
	stock_available_immediately/__openerp__.py
2020-06-16 11:18:12 +07:00
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