Commit Graph

440 Commits

Author SHA1 Message Date
Cyril Gaudin
fa04fb532f bom stock: small improvements and add test for field choice 2019-07-05 12:30:59 +02:00
Laetitia Gangloff
1b494822e2 stock_available / stock_available_mrp : add possibility to choose which field use to compute potential 2019-07-05 12:30:59 +02:00
Lionel Sausin
9020363693 [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
2019-07-05 12:30:59 +02:00
Alexandre Fayolle
9f31835728 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)
2019-07-05 12:30:59 +02:00
Atchuthan, Sodexis
46adfc06a8 [9.0][PORT] Stock available 2019-07-05 12:30:59 +02:00
OCA Transbot
d09ae66d5a OCA Transbot updated translations from Transifex 2019-07-05 12:30:59 +02:00
Lionel Sausin
36d6557e24 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
2019-07-05 12:30:51 +02:00
Laetitia Gangloff
fabfa01c3e [FIX] stock_available : update sublocations computation 2019-07-05 12:28:57 +02:00
Giovanni francesco Capalbo
94075e6030 [FIX] searching on products, leaving full calculations
not using internal qty_available that seems not to
take in consideration reserved quants.

[ADD] Tests
2019-07-05 12:28:57 +02:00
gfcapalbo
c0c9862ae9 [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
2019-07-05 12:28:57 +02:00
Lionel Sausin (Numérigraphe)
4faefa0f17 [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.
2019-07-05 12:28:57 +02:00
OCA-git-bot
91030bb3ed Merge PR #630 into 12.0
Signed-off-by lreficent
2019-07-04 14:36:53 +00:00
OCA-git-bot
3b47826852 [ADD] setup.py 2019-07-04 14:36:53 +00:00
OCA-git-bot
21b0110255 [UPD] README.rst 2019-07-04 14:36:53 +00:00
oca-travis
e6c1c84127 [UPD] Update stock_inventory_verification_request.pot 2019-07-04 13:54:07 +00:00
Michael Allen
e13c6d3616 [12.0][MIG]stock_inventory_verification_request migration to 12.0 2019-07-04 17:22:16 +05:30
OCA Transbot
e240cd8b5d Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2019-07-04 17:22:16 +05:30
oca-travis
e1715b4685 [UPD] Update stock_inventory_verification_request.pot 2019-07-04 17:22:15 +05:30
OCA-git-bot
f715ea5528 [UPD] README.rst 2019-07-04 17:22:15 +05:30
Lois Rilo
51e3e3c0dc [11.0][MIG] stock_inventory_verification_request 2019-07-04 17:22:15 +05:30
Alexandre Fayolle
bb0eda2bab [FIX] bad inheritance declaration 2019-07-04 17:22:15 +05:30
Alexandre Fayolle
97e6d91966 fix pylint warning and errors 2019-07-04 17:22:15 +05:30
OCA Transbot
548fba1bc9 OCA Transbot updated translations from Transifex 2019-07-04 17:22:15 +05:30
lreficent
1cea55d0ef [10.0][MIG] stock_inventory_verification_request 2019-07-04 17:22:15 +05:30
OCA Transbot
31244bb039 OCA Transbot updated translations from Transifex 2019-07-04 17:22:15 +05:30
lreficent
f18722b0a9 [IMP]: stock_inventory_verification_request:
* Add tests.
 * Several minor fixes.
 * Update README.
2019-07-04 17:22:15 +05:30
lreficent
99c3bd41ce [ADD] stock_inventory_verification_request 2019-07-04 17:22:15 +05:30
OCA-git-bot
cd18a2425f Merge PR #635 into 12.0
Signed-off-by jbeficent
2019-07-04 06:03:09 +00:00
OCA-git-bot
380018ce94 [ADD] setup.py 2019-07-04 06:03:08 +00:00
oca-travis
9bd39e7613 [UPD] Update stock_removal_location_by_priority.pot 2019-07-04 05:22:35 +00:00
mreficent
b537219830 [MIG] stock_removal_location_by_priority: Migration to 12.0 2019-07-04 05:12:44 +00:00
OCA Transbot
05a9db1c98 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2019-07-04 05:12:44 +00:00
mreficent
ba25220a1c [FIX] stock_removal_by_priority: avoid pre-init-hook if reinstalled 2019-07-04 05:12:44 +00:00
oca-travis
facb95c932 [UPD] Update stock_removal_location_by_priority.pot 2019-07-04 05:12:44 +00:00
OCA-git-bot
62a761ac30 [UPD] README.rst 2019-07-04 05:12:44 +00:00
Lois Rilo
e8374ca996 [11.0][MIG] stock_removal_location_by_priority 2019-07-04 05:12:44 +00:00
oca-travis
dcd1c8be98 [UPD] Update stock_removal_location_by_priority.pot 2019-07-04 05:12:44 +00:00
mreficent
ae1c5e527f [IMP/FIX] Removal priority should be independent of company 2019-07-04 05:12:44 +00:00
mreficent
a93647fb59 [MIG] stock_removal_location_by_priority: Migration to 10.0 2019-07-04 05:12:44 +00:00
OCA Transbot
7d2f157571 OCA Transbot updated translations from Transifex 2019-07-04 05:12:44 +00:00
lreficent
f7e1c0f1c4 stock_removal_location_by_priority: Add init_hook to speed up installation 2019-07-04 05:12:44 +00:00
mreficent
97e17b5bf9 Stock Removal Location by Priority 2019-07-04 05:12:44 +00:00
OCA-git-bot
915618eaeb Merge PR #622 into 12.0
Signed-off-by rousseldenis
2019-07-03 22:07:14 +00:00
OCA-git-bot
61ed3477ff [ADD] setup.py 2019-07-03 22:07:14 +00:00
OCA-git-bot
8fc3e1aa7d [UPD] README.rst 2019-07-03 22:07:13 +00:00
oca-travis
79dad5658a [UPD] Update stock_inventory_discrepancy.pot 2019-07-03 20:04:00 +00:00
oca-travis
8b85d9372f [UPD] Update stock_inventory_chatter.pot 2019-07-03 20:04:00 +00:00
Bhavesh Odedra
c45c37c1b9 [12.0][MIG] stock_inventory_discrepancy: Migration to 12.0 2019-07-03 15:56:34 +00:00
OCA-git-bot
c9709a317f [ADD] icon.png 2019-07-03 15:56:34 +00:00
Denis Roussel
ace63575a1 [10.0][FIX] stock_inventory_discrepancy: Launch wizard as current user 2019-07-03 15:56:34 +00:00