Commit Graph

17 Commits

Author SHA1 Message Date
Joan Mateu Jordi
7411e2ede1 [15.0][MIG] stock_available_mrp: Migration to 15.0 2022-01-28 12:00:00 +01:00
Cédric Pigeon
8429a58d68 [FIX] adapt back to V14 2022-01-27 08:45:53 +01:00
Guewen Baconnier
d1b185c089 Use Savepoint in stock_available_mrp tests 2022-01-27 08:45:53 +01:00
Florian da Costa
f8efed44e3 Migrate stock_available_mrp to v14 2022-01-27 08:45:53 +01:00
Víctor Martínez
0c7e5d953d [MIG] stock_available_mrp: Migration to 13.0 2022-01-27 08:45:53 +01:00
Víctor Martínez
c0755fadb8 [IMP] stock_available_mrp: black, isort, prettier 2022-01-27 08:45:53 +01:00
david
36b7166724 [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
2022-01-27 08:45:53 +01:00
david
e327c87b01 [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.
2022-01-27 08:45:53 +01:00
Florian da Costa
dad87cd0f0 Migrate stock_available_mrp to v12 2022-01-27 08:45:53 +01:00
Timon Tschanz
09fc54d64d [11.0][MIG] port stock_available_mrp to 11.0 2022-01-27 08:45:53 +01:00
Cédric Pigeon
9d271da401 [10.0][MIG] port stock_available_mrp to 10.0 2022-01-27 08:45:53 +01:00
Cyril Gaudin
f0dd2888f2 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
2022-01-27 08:45:53 +01:00
Cyril Gaudin
4d19639b1a [FIX+IMP] stock_available_mrp: fix recursive potential_qty in list view + small improvements 2022-01-27 08:45:53 +01:00
Cyril Gaudin
cf408c9d43 stock_available_mrp: fix BOM qty (multi-units, efficiency) 2022-01-27 08:45:53 +01:00
Lionel Sausin
fcdb457470 [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.
2022-01-27 08:45:53 +01:00
Laurent Mignon (ACSONE)
c536387849 [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
2022-01-27 08:45:53 +01:00
Lionel Sausin
3980bd635e [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
2022-01-27 08:45:53 +01:00