Commit Graph

28 Commits

Author SHA1 Message Date
Florian da Costa
22d3c6ba95 Make stock_available_mrp compatible with other modules like stock_available_immediately 2019-08-31 09:26:35 +02:00
Rodrigo Macedo
82f3a0a669 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/
2019-08-30 14:23:19 +00:00
OCA-git-bot
f1f0515365 [UPD] README.rst 2019-07-29 03:43:10 +00:00
OCA Transbot
847e598382 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/
2019-07-20 11:53:09 +00:00
OCA-git-bot
2c2de107c3 [UPD] README.rst 2019-07-05 12:11:52 +00:00
oca-travis
022fb2429a [UPD] Update stock_available.pot 2019-07-05 11:07:30 +00:00
Sergio Teruel
d893726123 [MIG] stock_available: Migration to v12.0 2019-07-05 12:31:47 +02:00
Valentino
5e487b5086 [ADD] Use same decorator on product.product as on product.template tree view. 2019-07-05 12:31:29 +02:00
Cédric Pigeon
9afb7105c2 [10.0][CHG]stock_available...: improve stock methods computation 2019-07-05 12:31:29 +02:00
Osoul
28038b47b2 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/
2019-07-05 12:31:29 +02:00
Alexandre Saunier
e53c07decf [FIX] Improve migration to 11.0 2019-07-05 12:31:29 +02:00
Kiko Peiro
a2ba407e07 [MIG] stock_available: Migration to 11.0 2019-07-05 12:31:10 +02:00
François Honoré
2d73596ab9 [ADD] Add search function for immediately_usable_qty computed field + related unit test
Increase version number of the module
2019-07-05 12:31:10 +02:00
Denis Roussel
cc9df312ae [FIX] stock_available: Some affectations 2019-07-05 12:31:10 +02:00
David Vidal
73e91abf5a [MIG] stock_available_sale: Migration to 10.0 2019-07-05 12:31:10 +02:00
Cédric Pigeon
04479483de [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
2019-07-05 12:31:10 +02:00
SodexisTeam
6f82b8f548 [10.0][MIG] stock_available & stock_available_immediately (#219) 2019-07-05 12:31:10 +02:00
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