[PORT] deltatech_picking_transit: port 18.0 -> 19.0 (setup la instalare, guard, fix compute/copy) - #2630
Open
VoicuStefan2001 wants to merge 1 commit into
Open
[PORT] deltatech_picking_transit: port 18.0 -> 19.0 (setup la instalare, guard, fix compute/copy)#2630VoicuStefan2001 wants to merge 1 commit into
VoicuStefan2001 wants to merge 1 commit into
Conversation
…re, guard, fix compute/copy) Portare a modificarilor din 18.0.0.0.15, adaptate la Odoo 19: - API 19: `self.env._()`/`env._()` in loc de `from odoo import _`. - Fix real de portare: `move_ids_without_package` (eliminat in Odoo 19) inlocuit cu `move_ids` -> versiunea 19.0 anterioara era rupta pe caile de creare/copiere. - post_init_hook (doar la instalare): locatie de tranzit per companie + tipuri de operatie 2 pasi (livrare cu transfer automat, receptie) pe fiecare depozit. - Al doilea transfer se poate crea manual doar dupa validarea primului. - Al doilea transfer mosteneste cantitatea efectiv trimisa in tranzit. - Fix compute is_transit_transfer / sub_location_existent pe recordset multiplu, efect de blocare mutat intr-un onchange dedicat; batch la copy_move_lines. - Include si fix-ul sudo la crearea celui de-al doilea transfer (tichet 8970). Pereche cu PR-ul pe 18.0: #2629 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 19.0 #2630 +/- ##
==========================================
- Coverage 73.13% 73.04% -0.09%
==========================================
Files 733 734 +1
Lines 13784 13825 +41
Branches 2471 2481 +10
==========================================
+ Hits 10081 10099 +18
- Misses 2886 2906 +20
- Partials 817 820 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Port pe Odoo 19 al modificărilor din PR-ul pereche pe 18.0
(#2629), plus configurare automată la
instalare pentru fluxul de transfer intern în 2 pași prin locația de tranzit.
Adaptări specifice Odoo 19
self.env._()/env._()în loc defrom odoo import _(importul nu mai există în Odoo 19).
move_ids_without_packagea fost eliminat dinstock.pickingîn Odoo 19 → înlocuit cumove_ids. Versiunea 19.0 anterioarăera de fapt ruptă pe căile de creare/copiere a celui de-al doilea transfer.
Ce s-a schimbat (ca pe 18.0)
hooks.py,post_init_hook): locație de tranzit percompanie + tipuri de operație 2 pași (livrare cu transfer automat, recepție)
pe fiecare depozit, legate la stocul principal și la tranzit. Rulează doar la
instalare → bazele existente nu sunt afectate (idempotent).
(buton ascuns până la
state == 'done'+ guard înopen_transfer_wizard).(
move.quantity), deci funcționează și când operatorul completează doar„Cantitate" și lasă „Necesar" pe 0.
is_transit_transfer/sub_location_existentpe recordsetmultiplu; efect de blocare mutat într-un
@api.onchangededicat.copy_move_linesîn batch.sudola crearea celui de-al doilea transfer (tichet 8970).Testare
Verificat funcțional pe bază Odoo 19 curată (instalare → setup hook pe 3 depozite
→ operare), apoi ștearsă:
WH=70, Tranzit=0, DEP2=30. ✅
Note
19.0.0.0.9→19.0.0.0.10.🤖 Generated with Claude Code