Commit Graph

311 Commits

Author SHA1 Message Date
Cyril Gaudin
4107c1d52b stock_available_mrp: fix BOM qty (multi-units, efficiency) 2016-03-21 16:04:40 +01:00
OCA Transbot
21cbee1ff1 OCA Transbot updated translations from Transifex 2016-03-21 16:04:40 +01:00
Lionel Sausin
05b4f47895 Code formatting nitpicking 2016-03-21 16:04:40 +01:00
Lionel Sausin
707363fc62 [FIX] fix multi-company test
Record rules used to not be checked on stock quants, but now they are since Odoo's commit 2fd14db57433d08ab368a7e18d18ae8d49dafab1 (https://github.com/odoo/odoo/commit/2fd14db).
In our test we changed the company of the products and BoMs but we neglected that the stock was not attached to the right company, and that made the test fail.
To fix that, make the test inventory for the right company.
Since there is a little inconsistency in the demo data with a negative quantity of an unrelated product, use the `partial` filter for the inventories instead of the `none` filter, so that no wrong inventory lines are added automatically.
2016-03-21 16:04:40 +01:00
Laurent Mignon (ACSONE)
fe21ce9d91 [FIX] Browse mrp.bom as current user
sudo is not required since mrp.bom are readable to groups with access to the qty_x fields on a product. Moreover using sudo to retrive the bom will ignore the company_id defined on the bom
2016-03-21 16:04:40 +01:00
Lionel Sausin
8e9c8e68bf [MIGR] stock_available_mrp: migrate to v8
Compute potential quantities for both product templates and variants. To keep the code simple, only the biggest potential of any single variant is accounted for in the template's potential.
Take all levels of phantom BoM into account, respects validity dates etc. thanks to the use of the standard method _bom_explode, as suggested by @gdgellatly in https://github.com/OCA/stock-logistics-warehouse/pull/5#issuecomment-66902191
Improve tests, rewritten in python.
Adhere to new file/manifest/README conventions.
Simplify copyright headers
2016-03-21 16:04:40 +01:00
Cyril Gaudin
879338724b bom stock: small improvements and add test for field choice 2016-03-21 15:29:05 +01:00
Laetitia Gangloff
8bb53f48aa stock_available / stock_available_mrp : add possibility to choose which field use to compute potential 2016-03-21 15:28:20 +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