Commit Graph

51 Commits

Author SHA1 Message Date
OCA Transbot
2e43bb21fb OCA Transbot updated translations from Transifex 2020-12-24 22:19:28 +01:00
Lionel Sausin
3cce4ff7e8 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-12-24 22:19:28 +01:00
Laetitia Gangloff
fd076aa37e [FIX] stock_available : update sublocations computation 2020-12-24 22:19:28 +01:00
Giovanni francesco Capalbo
f064d99438 [FIX] searching on products, leaving full calculations
not using internal qty_available that seems not to
take in consideration reserved quants.

[ADD] Tests
2020-12-24 22:19:28 +01:00
gfcapalbo
455b98babe [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-12-24 22:19:28 +01:00
Lionel Sausin (Numérigraphe)
4905c4f201 [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-12-24 22:19:28 +01:00
oca-git-bot
90cd216a32 [IMP] update dotfiles [ci skip] 2020-12-11 20:21:16 +01:00
OCA-git-bot
242d7ebf9a [ADD] setup.py 2020-12-04 10:07:33 +00:00
OCA-git-bot
34a689b147 [UPD] addons table in README.md 2020-12-04 10:07:31 +00:00
oca-travis
74178ceeac [UPD] Update stock_move_location.pot 2020-12-04 09:54:30 +00:00
OCA-git-bot
1825eed800 Merge PR #1023 into 14.0
Signed-off-by pedrobaeza
2020-12-04 09:44:29 +00:00
João Marques
f589c4808d [MIG] stock_move_location: Migration to 14.0
TT26454
2020-12-04 09:38:10 +00:00
João Marques
f200666cd9 [IMP] stock_move_location: black, isort, prettier 2020-12-02 07:39:43 +00:00
OCA-git-bot
f08d896a12 stock_move_location 13.0.1.0.4 2020-12-02 07:39:43 +00:00
sergio-teruel
28a4a60824 [IMP + FIX] stock_move_location: Display reserved quantity in wizard lines. Reassign reserved quantities for quants moved. 2020-12-02 07:39:43 +00:00
OCA-git-bot
519348d3b5 stock_move_location 13.0.1.0.3 2020-12-02 07:39:43 +00:00
Sergio Teruel
01de75371c [IMP] stock_move_location: Allow to select any location. 2020-12-02 07:39:43 +00:00
OCA-git-bot
0903217219 pre-commit update 2020-12-02 07:39:43 +00:00
OCA-git-bot
8fff03f135 stock_move_location 13.0.1.0.2 2020-12-02 07:39:43 +00:00
hveficent
322a9591ac [FIX] stock_move_location: Error on onchange origin location 2020-12-02 07:39:43 +00:00
OCA-git-bot
7cab70902f stock_move_location 13.0.1.0.1 2020-12-02 07:39:43 +00:00
Sergio Teruel
6da116db36 [IMP] stock_move_location: Allow to disable apply putaway strategy 2020-12-02 07:39:43 +00:00
Sergio Teruel
db65653652 [FIX] stock_move_location: Keep product lines when user launch wizard from stock quant view 2020-12-02 07:39:43 +00:00
Joan Sisquella
785279db5f [MIG] stock_move_location: Migration to 13.0 2020-12-02 07:39:43 +00:00
Joan Sisquella
50d51c6f83 [IMP] stock_move_location: black, isort 2020-12-02 07:39:43 +00:00
OCA-git-bot
1b593e5783 stock_move_location 12.0.1.2.0 2020-12-02 07:39:43 +00:00
Joan Sisquella
85a7b4d822 [11.0][FIX] stock_move_location:
* fix test as per migration
* fix inconsistency in reserved quantity for planned transfers
2020-12-02 07:39:43 +00:00
Lois Rilo
c850f4b02d [11.0][IMP] stock_move_location:
* fix tests as per latest changes
* extend test as per latest changes
* add little help in technical fields
2020-12-02 07:39:43 +00:00
Jordi Ballester Alomar
1f51887d13 display picking type in move location wizard, and get a default value 2020-12-02 07:39:43 +00:00
Lois Rilo
b081e98982 [11.0] stock_move_location: add small margin between buttons,
done inline because the same margin is defined in  style files
for account dashboard, however I don't want to apply the
account_kanban class here as it would have more effects.
2020-12-02 07:39:43 +00:00
Jordi Ballester Alomar
f95da47cf4 in planned transfers do not set the qty_done in move lines 2020-12-02 07:39:43 +00:00
Jordi Ballester Alomar
83f484259b This commit introduces changes to stock_move_location:
- The ability to start the wizard from a picking type in the inventory dasbhoard
- A toggle to edit the origin and destination locations.
2020-12-02 07:39:43 +00:00
Joan Sisquella
9aa5edd09f [12.0][FIX][stock_move_location] Planned transfer: quantity done 2020-12-02 07:39:43 +00:00
Joan Sisquella
88d7bcc183 [12.0][IMP] stock_move_location: Applies put away strategy 2020-12-02 07:39:43 +00:00
Joan Sisquella
7222cafdfc [MIG] stock_move_location to v12
[FIX] improvement move line generation
2020-12-02 07:39:43 +00:00
Stefan Wild
fb4db0e6b2 Translated using Weblate (German)
Currently translated at 100.0% (33 of 33 strings)

Translation: stock-logistics-warehouse-11.0/stock-logistics-warehouse-11.0-stock_move_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-11-0/stock-logistics-warehouse-11-0-stock_move_location/de/
2020-12-02 07:39:43 +00:00
Stefan Wild
f6702546a4 Translated using Weblate (German)
Currently translated at 100.0% (33 of 33 strings)

Translation: stock-logistics-warehouse-11.0/stock-logistics-warehouse-11.0-stock_move_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-11-0/stock-logistics-warehouse-11-0-stock_move_location/de/
2020-12-02 07:39:43 +00:00
Stefan Wild
cfd0deecef Translated using Weblate (German)
Currently translated at 100.0% (33 of 33 strings)

Translation: stock-logistics-warehouse-11.0/stock-logistics-warehouse-11.0-stock_move_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-11-0/stock-logistics-warehouse-11-0-stock_move_location/de/
2020-12-02 07:39:43 +00:00
Stefan Wild
0fb4eb17f8 Added translation using Weblate (German) 2020-12-02 07:39:43 +00:00
Sergio Teruel
89140e18b4 [11.0][FIX] stock_move_location: Not check availability when do immediate transfer. 2020-12-02 07:39:43 +00:00
Enric Tobella
978d1f4ccb Translated using Weblate (Spanish)
Currently translated at 100.0% (32 of 32 strings)

Translation: stock-logistics-warehouse-11.0/stock-logistics-warehouse-11.0-stock_move_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-11-0/stock-logistics-warehouse-11-0-stock_move_location/es/
2020-12-02 07:39:43 +00:00
Sergio Teruel
9bb0ce24cd [11.0][IMP] stock_move_location: Allow move products from one location to another directly from selected quants 2020-12-02 07:39:43 +00:00
Sergio Teruel
5de891e266 Added translation using Weblate (Spanish) 2020-12-02 07:39:43 +00:00
sebalix
9bbd18b4b4 [FIX] stock_move_location: fix the 'group_lines()' method
A recordset object is not reliable enough to use as a key for the
built-in 'sorted' and 'itertools.groupby' functions (sometimes it works,
sometimes not).
Using the ID of the record (here the product ID) can fix the problem, but the
'group_lines()' has been totally rewritten for a simpler implementation without
any use of 'sorted' or 'itertools.groupby' functions to group the wizard lines
by product: an iteration on lines to fill a dictionary does the job.
2020-12-02 07:39:43 +00:00
sebalix
a05acd418c [11.0][MIG] stock_move_location: fixing/improving code + add a roadmap
for further improvements
2020-12-02 07:39:43 +00:00
mpanarin
a3cda8db38 prevent user from creating lots from the wizard 2020-12-02 07:35:04 +00:00
mpanarin
3546b770a4 [IMP] refactor to use pickings instead of inventories 2020-12-02 07:35:04 +00:00
mpanarin
19c60699c2 [MIG] 11.0 stock_move_location 2020-12-02 07:35:04 +00:00
Mathieu Vatel
1949b367fd [ADD] stock_move_location 2020-12-02 07:35:04 +00:00
oca-git-bot
e100181186 [IMP] update dotfiles [ci skip] 2020-11-01 22:33:05 +01:00