Commit Graph

344 Commits

Author SHA1 Message Date
Cyril Gaudin
cf408c9d43 stock_available_mrp: fix BOM qty (multi-units, efficiency) 2022-01-27 08:45:53 +01:00
OCA Transbot
e00bbeb1d4 OCA Transbot updated translations from Transifex 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
Stéphane Bidoul
ec7dd953f5 [MOV] move addons out of __unported__ (they remain not installable) 2022-01-27 08:45:53 +01:00
OCA-git-bot
2d6d623a94 [ADD] setup.py 2022-01-24 15:31:20 +00:00
OCA-git-bot
f5a75b5788 [UPD] README.rst 2022-01-24 15:31:20 +00:00
OCA-git-bot
f89f5b2354 [UPD] addons table in README.md 2022-01-24 15:31:18 +00:00
oca-ci
72cf2666aa [UPD] Update stock_available.pot 2022-01-24 15:28:28 +00:00
OCA-git-bot
f7aafc76f4 Merge PR #1356 into 15.0
Signed-off-by LoisRForgeFlow
2022-01-24 15:25:56 +00:00
Jasmin Solanki
ad2919df47 [MIG] stock_available: Migration to 15.0 2022-01-21 17:10:49 +05:30
Jasmin Solanki
bbb8974698 [IMP] stock_available: black, isort, prettier 2022-01-21 16:58:21 +05:30
OCA-git-bot
318b397062 stock_available 14.0.1.0.3 2022-01-21 16:58:11 +05:30
Cédric Pigeon
c59d76eba4 [14.0] stock_available: improve search performance 2022-01-21 16:58:11 +05:30
OCA-git-bot
7942ba4fa5 stock_available 14.0.1.0.2 2022-01-21 16:58:11 +05:30
Florian da Costa
3f69e2b738 Add depends_context to quantity computed field 2022-01-21 16:58:11 +05:30
OCA-git-bot
5ea1597601 stock_available 14.0.1.0.1 2022-01-21 16:58:11 +05:30
OCA-git-bot
9a4b5cc39b [UPD] README.rst 2022-01-21 16:58:11 +05:30
oca-travis
1b6d9b6ab8 [UPD] Update stock_available.pot 2022-01-21 16:58:11 +05:30
Florian da Costa
79cc78971f [MIG] stock_available: Migration to 14.0 2022-01-21 16:58:11 +05:30
Florian da Costa
693e5d3601 [IMP] stock_available: black, isort, prettier 2022-01-21 16:58:11 +05:30
oca-travis
49ce077113 [UPD] bot updates 2022-01-21 16:58:11 +05:30
ps-tubtim
fe5c50963d [MIG] stock_available: Migration to 13.0 2022-01-21 16:58:11 +05:30
ps-tubtim
c06023fb4d [IMP] stock_available: black, isort 2022-01-21 16:58:11 +05:30
OCA-git-bot
b5a760fd3f stock_available 12.0.1.0.1 2022-01-21 16:58:11 +05:30
Tony Gu
73b3b92dca [Fix] use the same view id for differnt view using in product and product template 2022-01-21 16:58:11 +05:30
黎伟杰
7ec8fe1c14 Translated using Weblate (Chinese (Simplified))
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/zh_CN/
2022-01-21 16:58:11 +05:30
黎伟杰
136e643788 Translated using Weblate (Chinese (Simplified))
Currently translated at 23.8% (5 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/zh_CN/
2022-01-21 16:58:11 +05:30
Florian da Costa
432e3565c2 Make stock_available_mrp compatible with other modules like stock_available_immediately 2022-01-21 16:58:11 +05:30
Rodrigo Macedo
c5b9b1103c 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/
2022-01-21 16:58:11 +05:30
OCA-git-bot
8b5aace172 [UPD] README.rst 2022-01-21 16:58:11 +05:30
OCA Transbot
52ccaa54c5 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/
2022-01-21 16:58:11 +05:30
OCA-git-bot
1acaa34116 [UPD] README.rst 2022-01-21 16:58:11 +05:30
oca-travis
b8bdf55520 [UPD] Update stock_available.pot 2022-01-21 16:58:11 +05:30
Sergio Teruel
62bb120732 [MIG] stock_available: Migration to v12.0 2022-01-21 16:58:11 +05:30
Valentino
84e99716c6 [ADD] Use same decorator on product.product as on product.template tree view. 2022-01-21 16:58:11 +05:30
Cédric Pigeon
5fc72b9d4a [10.0][CHG]stock_available...: improve stock methods computation 2022-01-21 16:58:11 +05:30
Osoul
02e064d4a4 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/
2022-01-21 16:58:11 +05:30
Alexandre Saunier
4dd27adde0 [FIX] Improve migration to 11.0 2022-01-21 16:58:11 +05:30
Kiko Peiro
b0519bf0e4 [MIG] stock_available: Migration to 11.0 2022-01-21 16:58:10 +05:30
François Honoré
6accb1f899 [ADD] Add search function for immediately_usable_qty computed field + related unit test
Increase version number of the module
2022-01-21 16:58:10 +05:30
Denis Roussel
39a3a7bf57 [FIX] stock_available: Some affectations 2022-01-21 16:58:10 +05:30
David Vidal
b484963a7b [MIG] stock_available_sale: Migration to 10.0 2022-01-21 16:58:10 +05:30
Cédric Pigeon
8178b608e4 [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
2022-01-21 16:58:10 +05:30
SodexisTeam
cbec46f9aa [10.0][MIG] stock_available & stock_available_immediately (#219) 2022-01-21 16:58:10 +05:30
Cyril Gaudin
18af4c3d2c bom stock: small improvements and add test for field choice 2022-01-21 16:58:10 +05:30
Laetitia Gangloff
19d128c58b stock_available / stock_available_mrp : add possibility to choose which field use to compute potential 2022-01-21 16:58:10 +05:30
Lionel Sausin
07d334c2ec [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
2022-01-21 16:58:10 +05:30
Alexandre Fayolle
df6b08c8ce 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)
2022-01-21 16:58:10 +05:30