Commit Graph

43 Commits

Author SHA1 Message Date
OCA Transbot
8bdf5dda4f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_available_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_available_mrp/
2022-04-07 03:57:02 +00:00
OCA-git-bot
d860b10069 stock_available_mrp 13.0.2.0.0 2022-04-07 00:00:28 +00:00
OCA-git-bot
d7b05d2cb3 [UPD] README.rst 2022-04-07 00:00:27 +00:00
oca-travis
3510275b2c [UPD] Update stock_available_mrp.pot 2022-04-06 23:09:53 +00:00
david
beddc64941 [FIX] stock_available_mrp: normal BoM available to promise
Normal BoM products (those which are manufactured) are regular stored
products and their immediately_usable_qty will be summed with potential
stock. This was the expected behavior of the module and it was lost at
some point.

Phantom BoM products (kits) don't have real stock so their available to
promise quantity will be the same as the potential.

As an improvement, we've added the possibility to override the sum of
potential and available to promise. In some cases such addition doesn't
make sense as we don't know how long can take to manufacture those potential
units.

TT35589
2022-04-06 10:25:44 +02:00
OCA-git-bot
f2f636154b stock_available_mrp 13.0.1.0.2 2022-03-01 16:37:28 +00:00
Denis Roussel
2e8c5397e6 [TESTS] stock_available_mrp: Add test for phantom bom 2022-02-28 16:53:42 +01:00
Víctor Martínez
1cd40fd192 [FIX] stock_available_mrp: Set correctlly immediately_usable_qty value.
TT27873
2022-02-28 16:52:20 +01:00
OCA-git-bot
ffde1f0758 stock_available_mrp 13.0.1.0.1 2021-12-02 08:46:25 +00:00
david
a47492f645 [FIX] stock_available_mrp: non storable components
If a Bill of Materials contains a non storable component (consumable or
even service) the potential quantity will allways be 0. We should only
consider storable components as others are considered infinite.

TT33175
2021-12-01 19:10:58 +01:00
david
fd6d328a09 [FIX] stock_available_mrp: variable referenced before assignment
TT31916
2021-09-16 09:48:06 +02:00
OCA Transbot
5b7013be08 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_available_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_available_mrp/
2021-05-21 10:45:36 +00:00
OCA-git-bot
c8fb5107dc [UPD] README.rst 2021-05-21 07:43:36 +00:00
oca-travis
68a73915d8 [UPD] Update stock_available_mrp.pot 2021-05-21 07:06:58 +00:00
Víctor Martínez
6ad6a36495 [MIG] stock_available_mrp: Migration to 13.0 2021-05-19 16:40:46 +02:00
Víctor Martínez
84a04a66d0 [IMP] stock_available_mrp: black, isort, prettier 2021-05-13 16:17:07 +02:00
OCA-git-bot
fa1fef4694 stock_available_mrp 12.0.1.0.2 2021-05-13 16:16:30 +02:00
david
5d4a56bcb5 [FIX] stock_available_mrp: don't force type
In Odoo change odoo/odoo@3d34d58 the products with Kit BoMs couldn't
longer be other than `consu`. This was reverted in odoo/odoo@6c4623a
and some products are raising errors when forcing the type
2021-05-13 16:16:30 +02:00
OCA-git-bot
b5d85c2245 stock_available_mrp 12.0.1.0.1 2021-05-13 16:16:30 +02:00
david
bccb73635e [FIX] stock_available_mrp: upstream compatibility
After this change 3d34d58388
it isn't possible to have an storable kit product anymore. The main
issue is that we have to drop some uses cases that this module
considered for this kind of situations.
2021-05-13 16:16:30 +02:00
Yann Papouin
43f03ebc4f Translated using Weblate (French)
Currently translated at 100.0% (7 of 7 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_mrp/fr/
2021-05-13 16:16:30 +02:00
黎伟杰
03abcc8c48 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (7 of 7 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_mrp/zh_CN/
2021-05-13 16:16:30 +02:00
OCA Transbot
6192457f37 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_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_mrp/
2021-05-13 16:16:30 +02:00
OCA Transbot
4c5e538d46 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_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_mrp/
2021-05-13 16:16:30 +02:00
oca-travis
d76a2d7fcc [UPD] Update stock_available_mrp.pot 2021-05-13 16:16:30 +02:00
Pedro M. Baeza
2bde95c1d4 [FIX] stock_available_mrp: Fix RST formatting + generate README 2021-05-13 16:16:30 +02:00
Florian da Costa
047485dbbb Make stock_available_mrp compatible with other modules like stock_available_immediately 2021-05-13 16:16:30 +02:00
Florian da Costa
779c73a3ae Migrate stock_available_mrp to v12 2021-05-13 16:16:30 +02:00
Timon Tschanz
6a444a5bcc [11.0][MIG] port stock_available_mrp to 11.0 2021-05-13 16:16:30 +02:00
Timon Tschanz
1daa97a8e5 [FIX] stock_available_mrp: remove duplicate button + fix calculation of immediately usable qty 2021-05-13 16:16:30 +02:00
Cédric Pigeon
7351ff7e76 [ADD] include new improvments 2021-05-13 16:16:30 +02:00
Denis Roussel
922d42d62f [IMP] stock_available_mrp: readability + change compute bom_id + use recordset + Condition never statisfied 2021-05-13 16:16:30 +02:00
Cédric Pigeon
42470f1f3b [10.0][MIG] port stock_available_mrp to 10.0 2021-05-13 16:16:30 +02:00
OCA Transbot
0787dcc2be OCA Transbot updated translations from Transifex 2021-05-13 16:16:30 +02:00
Cyril Gaudin
c57208670a V9 migration modifications.
* mrp_bom.name has been deleted.
    * mrp_bom_line.type moved to mrp_bom.type.
    * Fix missing group_mrp_user issue.
    * Change versions
2021-05-13 16:16:30 +02:00
Cyril Gaudin
4d2b9567e7 [FIX+IMP] stock_available_mrp: fix recursive potential_qty in list view + small improvements 2021-05-13 16:16:30 +02:00
Laetitia Gangloff
fb41ccd372 stock_available / stock_available_mrp : add possibility to choose which field use to compute potential 2021-05-13 16:16:30 +02:00
Cyril Gaudin
3801d3481c stock_available_mrp: fix BOM qty (multi-units, efficiency) 2021-05-13 16:16:30 +02:00
OCA Transbot
93c1dc8f66 OCA Transbot updated translations from Transifex 2021-05-13 16:16:30 +02:00
Lionel Sausin
09cf0cc3f2 [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.
2021-05-13 16:16:30 +02:00
Laurent Mignon (ACSONE)
92de1c7455 [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
2021-05-13 16:16:30 +02:00
Lionel Sausin
e13f22c1ca [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
2021-05-13 16:16:30 +02:00
Stéphane Bidoul
2dc71233be [MOV] move addons out of __unported__ (they remain not installable) 2021-05-13 16:16:30 +02:00