Commit Graph

305 Commits

Author SHA1 Message Date
Lionel Sausin
749f69e669 [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
2016-03-21 14:36:11 +01:00
Alexandre Fayolle
7cc0b2beab 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)
2016-03-21 12:11:19 +01:00
Alex Comba
ab621e0223 Merge pull request #129 from otherjustin/patch-1
Update README.rst
2016-03-08 16:53:12 +01:00
otherjustin
8962b64249 Update README.rst
Add explanation for finding this setting
2016-03-08 15:56:45 +01:00
OCA Transbot
b020ff21c2 OCA Transbot updated translations from Transifex 2016-02-28 02:17:52 -05:00
OCA Git Bot
fb3ac6995b [UPD] addons table in README.md 2016-02-27 02:33:47 +01:00
Alexandre Fayolle
50a7ba640b Merge pull request #117 from sodexis/9.0_ported_stock_available
[9.0][PORT] stock_available and stock_available_immediately
2016-02-26 13:20:16 +01:00
Alexandre Fayolle
a0276f1ef2 [SEC] fix unsafe eval in unported addon 2016-02-15 09:22:48 +01:00
Atchuthan, Sodexis
7599471de7 [9.0][PORT] Stock available immediately 2016-02-10 11:42:16 +05:30
Atchuthan, Sodexis
081adb63c5 [9.0][PORT] Stock available 2016-02-10 11:41:48 +05:30
Pedro M. Baeza
cb02b5af7c Merge pull request #97 from guewen/9.0-oca-deps
Use oca_dependencies.txt
2015-11-05 22:19:46 +01:00
Guewen Baconnier
7e68d67edb Use oca_dependencies.txt 2015-11-05 21:48:57 +01:00
Stéphane Bidoul
945e94bc97 [UPD] addons table in README.md 2015-10-14 20:12:12 +02:00
Pedro M. Baeza
a29683a16a [FIX] stock_available: Fix manifest 2015-10-14 10:35:17 +02:00
Pedro M. Baeza
f2ad865370 [MIG] Update metafiles 2015-10-14 02:54:55 +02:00
Pedro M. Baeza
bb6c64772f [MIG] Make modules uninstallable 2015-10-14 02:54:54 +02:00
Stéphane Bidoul
82552bb014 [MOV] move addons out of __unported__ (they remain not installable) 2015-10-13 16:59:05 +02:00
Stéphane Bidoul
c1e7621067 [UPD] prefix versions with 8.0 2015-10-09 10:03:18 +02:00
OCA Transbot
727b415685 OCA Transbot updated translations from Transifex 2015-10-05 06:16:20 -04:00
Alex Comba
655d45c532 Merge pull request #86 from LatinuxSistemas/8.0
Better readme in stock_mts_mto_rule
2015-09-23 19:50:51 +02:00
Gabriel Davini
8dde28113a Better readme in stock_mts_mto_rule 2015-09-23 14:14:29 -03:00
Stéphane Bidoul
a3f868fb90 [ADD] addons table in README.md 2015-09-23 16:27:29 +02:00
Stéphane Bidoul
198be5f33f unported modules must not be installable 2015-09-22 17:54:23 +02:00
Moises Lopez - https://www.vauxoo.com/
3c8eeee9a6 Merge pull request #80 from numerigraphe/8.0-stock_available-based-on-virtual
Revert changes to computation of _immediately_usable_qty + distinguish product/variants
2015-09-17 10:34:52 -05:00
Lionel Sausin
aa6478d244 Fix the beta lint checks of Travis 2015-09-16 09:35:18 +02:00
Lionel Sausin
d1fea83c33 Merge branch '8.0' of https://github.com/OCA/stock-logistics-warehouse into 8.0-stock_available-based-on-virtual 2015-09-15 15:03:54 +02:00
Pedro M. Baeza
645f7ff8b8 Merge pull request #82 from gurneyalex/8.0-improve-travis
[8.0] fix travis build
2015-09-15 14:58:53 +02:00
Alexandre Fayolle
6d2aaa6ff6 force recomputation of stock.location hierachy
before running the tests. This fixes the failure experienced when running the
test in --init mode rather than --update mode.
2015-09-15 14:03:38 +02:00
Alexandre Fayolle
078d7416cd update travis config, setup transifex 2015-09-15 13:43:45 +02:00
Lionel Sausin
fe44a2cbe3 PEP8 2015-09-10 15:25:49 +02:00
Lionel Sausin
2014a87a18 Restore the qty avail. to promise on variant treeview 2015-09-10 14:55:27 +02:00
Lionel Sausin
3f45564185 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.
2015-09-09 15:03:40 +02:00
Lionel Sausin
bc25e1395d Revert "[DEL] removed references to product.py, not needed anymore, the quant calculations done in product template are fine."
This reverts commit d6dee6f90d.
2015-09-09 14:06:49 +02:00
Lionel Sausin
11a308372e Revert "[DEL] remove old tests, rewriting"
This reverts commit c74aab47e9.
2015-09-09 14:06:44 +02:00
Lionel Sausin
b7decf20af Remove loop and use correct decorator 2015-09-08 18:14:13 +02:00
Lionel Sausin
9d97678712 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
2015-09-08 18:06:24 +02:00
Nhomar Hernández [Vauxoo]
f594f72330 Merge pull request #66 from acsone/8.0-fix_stock_available-lga
[FIX] stock_available : use extend instead of append
2015-08-05 04:24:47 -05:00
Laetitia Gangloff
e15a497a31 [FIX] stock_available : update sublocations computation 2015-08-05 11:18:12 +02:00
Pedro M. Baeza
e36f8b76df Merge pull request #51 from lepistone/reserve-show-location
show reservation location in tree and groupby
2015-08-04 13:46:31 +02:00
Pedro M. Baeza
7d7d5d8b7a Merge pull request #64 from factorlibre/8.0
Add Spanish translation of stock reserve modules
2015-08-04 09:22:49 +02:00
Pedro M. Baeza
da48290a30 Merge pull request #47 from florian-dacosta/8.0-stock-dynamic-mto
ADD module stock dynamic mto
2015-08-04 09:14:44 +02:00
Pedro M. Baeza
3760dcd34a Merge pull request #60 from mlaitinen/fix50
Allow releasing multiple reservations at once
2015-07-30 19:50:48 +02:00
Ismael Calvo
06e9b50b77 Fix translation 2015-07-30 18:18:50 +02:00
Ismael Calvo
88643e2f88 Change translation stock/existencias 2015-07-30 18:10:05 +02:00
Ismael Calvo
f74ab5d0f5 Add Spanish translation of stock reserve modules 2015-07-30 17:57:12 +02:00
Alexandre Fayolle
b43772eabf port stock available immediately to 8.0 2015-07-27 11:39:22 +02:00
Alexandre Fayolle
ffa0f6a609 Update travis configuration
use sudo: false to enable container build
use cache: pip to cache pip packages
2015-07-24 23:05:57 +02:00
Miku Laitinen
05a6b29da0 Replaced for loop in release() with mapped() 2015-07-19 17:26:02 +03:00
Giovanni francesco Capalbo
1ad536c6c2 [ADD] Tests 2015-07-16 17:17:51 +02:00
Giovanni francesco Capalbo
088f09476f [FIX] searching on products, leaving full calculations
not using internal qty_available that seems not to
take in consideration reserved quants.
2015-07-16 15:23:57 +02:00