Commit Graph

883 Commits

Author SHA1 Message Date
Denis Roussel
4579d28c1c [FIX] stock_available: Some affectations 2020-06-16 11:18:12 +07:00
David Vidal
1df96ff831 [MIG] stock_available_sale: Migration to 10.0 2020-06-16 11:18:12 +07:00
Cédric Pigeon
4988d74218 [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
2020-06-16 11:18:12 +07:00
SodexisTeam
cbe3b6da7b [10.0][MIG] stock_available & stock_available_immediately (#219) 2020-06-16 11:18:12 +07:00
Cyril Gaudin
1ee49c86d0 bom stock: small improvements and add test for field choice 2020-06-16 11:18:12 +07:00
Laetitia Gangloff
8d0940e587 stock_available / stock_available_mrp : add possibility to choose which field use to compute potential 2020-06-16 11:18:12 +07:00
Lionel Sausin
d006917e0c [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
2020-06-16 11:18:12 +07:00
Alexandre Fayolle
d6a7d580bb 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)
2020-06-16 11:18:12 +07:00
Atchuthan, Sodexis
94d1fb7ac6 [9.0][PORT] Stock available 2020-06-16 11:18:12 +07:00
OCA Transbot
12c9c3a241 OCA Transbot updated translations from Transifex 2020-06-16 11:18:12 +07:00
Lionel Sausin
8cabcc04f3 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

Remove loop and use correct decorator

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.

Restore the qty avail. to promise on variant treeview

PEP8
2020-06-16 11:18:12 +07:00
Laetitia Gangloff
10f7643fe2 [FIX] stock_available : update sublocations computation 2020-06-16 11:18:12 +07:00
Giovanni francesco Capalbo
374ce93a81 [FIX] searching on products, leaving full calculations
not using internal qty_available that seems not to
take in consideration reserved quants.

[ADD] Tests
2020-06-16 11:18:12 +07:00
gfcapalbo
c3519850df [FIX] corrected calculation of immediately_usable_qty on product.product and
product.template, now takes in account variants and correctly displays value.
[FLAKE8]

Removing duplicate modules and moving README.rst into __unported__

[ADD} location calculations

[FIX] typo
2020-06-16 11:18:12 +07:00
Lionel Sausin (Numérigraphe)
8da242ce15 [ADD] stock_available
Generic module to compute the stock quantity available to promise using several implementations.
stock_available_immediatly is changed to become the first optional implementation.
Cherry pick of commit 0b060f619f from the v7 branch

[IMP] stock_available* uses new API

[ADD] stock_available_mrp

Module to take immediate manufaturing capability into account in the stock quantity available to promise.

Conflicts:
	stock_available/res_config.py

[DEL] move stock_available_mrp to __unported__

[ADD] stock_available_sale

Take sale quotations into account in the stock quantity available to promise
Cherry-picked from 497068f5f5

Conflicts:
	stock_available/res_config.py

[DEL] move stock_available_sale to __unported__

[IMP] READMEs and TODOs

Cherry-picked from v7 at 8add4bea7e

Conflicts:
	__unported__/stock_available_mrp/__openerp__.py
	stock_available/__openerp__.py
	stock_available_immediately/__openerp__.py

[IMP] respect product decimal precision

https://github.com/odoo/odoo/issues/5512 and b3e5a940e3 makes it clear the standard intends to support decimal precision on the product form.
2020-06-16 11:18:12 +07:00
OCA-git-bot
a6d061d236 stock_packaging_calculator 13.0.1.1.0 2020-06-09 08:09:47 +00:00
OCA-git-bot
bae259af56 [UPD] README.rst 2020-06-09 08:09:46 +00:00
OCA-git-bot
080f75e00d Merge PR #916 into 13.0
Signed-off-by simahawk
2020-06-09 07:48:01 +00:00
Simone Orsi
e3a1d8910d stock_packaging_calculator: add contained packaging compute
Optionally include contained packaging qty.
2020-06-08 12:04:07 +02:00
OCA Transbot
3f49756f4f 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_cycle_count
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_cycle_count/
2020-06-08 08:26:21 +00:00
OCA-git-bot
eebda40802 [ADD] setup.py 2020-06-08 08:25:58 +00:00
OCA-git-bot
a190e9d017 [ADD] icon.png 2020-06-08 08:25:58 +00:00
OCA-git-bot
d64b7fcd49 [UPD] README.rst 2020-06-08 08:25:57 +00:00
Simone Orsi
cad2ae29f5 stock_packaging_calculator: return dict instead of tuple
Allows to ship more information with each element in the list.
2020-06-08 10:18:02 +02:00
oca-travis
6d51220b4b [UPD] Update stock_packaging_calculator.pot 2020-06-08 08:00:41 +00:00
Simone Orsi
cf9bc42bd9 stock_packaging_calculator: make product uom the minimal unit
Customizing the minimal unit was not needed at all.
This way we always assume the precision is the on of the UoM.
2020-06-08 09:56:12 +02:00
OCA-git-bot
0820d044fd Merge PR #911 into 13.0
Signed-off-by simahawk
2020-06-08 07:48:38 +00:00
OCA-git-bot
b5c4df7820 stock_cycle_count 13.0.1.0.1 2020-06-03 08:27:02 +00:00
OCA-git-bot
2881dc63e0 [ADD] setup.py 2020-06-03 08:27:02 +00:00
OCA-git-bot
58588c4430 [UPD] README.rst 2020-06-03 08:27:02 +00:00
oca-travis
35b2ee46cc [UPD] Update stock_cycle_count.pot 2020-06-03 08:01:23 +00:00
OCA-git-bot
6f0da1b354 Merge PR #844 into 13.0
Signed-off-by LoisRForgeFlow
2020-06-03 07:49:18 +00:00
jim.hoefnagels
414c3bc89a [MIG] stock_cycle_count: Migration to 13.0 2020-06-02 13:04:23 +02:00
jim.hoefnagels
186249ba66 [IMP] stock_cycle_count: black, isort 2020-06-02 13:03:33 +02:00
Sergio Teruel
f25fe9152e [IMP] stock_cycle_count: Create test user without password to pass tests with other modules like password_policy 2020-06-02 13:03:33 +02:00
黎伟杰
1e51051b7a Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (127 of 127 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_cycle_count
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_cycle_count/zh_CN/
2020-06-02 13:03:33 +02:00
黎伟杰
f24bf12a67 Translated using Weblate (Chinese (Simplified))
Currently translated at 40.2% (51 of 127 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_cycle_count
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_cycle_count/zh_CN/
2020-06-02 13:03:33 +02:00
OCA-git-bot
8727672e72 [UPD] README.rst 2020-06-02 13:03:33 +02:00
OCA Transbot
88a806ad50 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_cycle_count
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_cycle_count/
2020-06-02 13:03:33 +02:00
OCA-git-bot
9fa2913912 [UPD] README.rst 2020-06-02 13:03:33 +02:00
oca-travis
cf9d1ee86c [UPD] Update stock_cycle_count.pot 2020-06-02 13:03:33 +02:00
Lois Rilo
d3b002212a [12.0][FIX/MIG] stock_cycle_count: fix zero confirmation rules.
Now zero-qty quants are not removed straight away but by a cron job.
Therefore, we have to also check that the quants are not zero-qty ones.
2020-06-02 13:03:33 +02:00
Bhavesh Odedra
8685d29a22 [12.0][MIG] stock_cycle_count: Migration to 12.0 2020-06-02 13:03:33 +02:00
Pedro M. Baeza
af4147049e [FIX] stock_cycle_count: Don't lose return value
For avoiding an error validating pickings.
2020-06-02 13:03:33 +02:00
OCA Transbot
16a0bed6d7 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2020-06-02 13:03:33 +02:00
oca-travis
3b57fe0511 [UPD] Update stock_cycle_count.pot 2020-06-02 13:03:33 +02:00
OCA-git-bot
97c37b3c80 [UPD] README.rst 2020-06-02 13:03:33 +02:00
Jordi Ballester Alomar
0b83fa9440 stock_cycle_count: fix issue with nan while doing the mean calculation 2020-06-02 13:03:33 +02:00
Lois Rilo
539ae5be22 [11.0][MIG] stock_cycle_count 2020-06-02 13:03:33 +02:00
oca-travis
4bd6e39587 [UPD] Update stock_cycle_count.pot 2020-06-02 13:03:33 +02:00