[FIX] deltatech_picking_transit: setup la instalare, guard transfer secund, fix compute/copy - #2629
Open
VoicuStefan2001 wants to merge 1 commit into
Open
[FIX] deltatech_picking_transit: setup la instalare, guard transfer secund, fix compute/copy#2629VoicuStefan2001 wants to merge 1 commit into
VoicuStefan2001 wants to merge 1 commit into
Conversation
…ecund, fix compute/copy - post_init_hook (doar la instalare): creeaza locatia de tranzit per companie si, pe fiecare depozit, tipurile de operatie 2 pasi livrare (cu transfer automat) si receptie, legate la stocul principal si la locatia de tranzit. Nu ruleaza la update -> clientii existenti nu sunt afectati. - Al doilea transfer se poate crea manual doar dupa validarea primului (marfa chiar in tranzit); butonul e ascuns pana la state == 'done'. - Al doilea transfer mosteneste cantitatea efectiv trimisa in tranzit, deci functioneaza si cand operatorul completeaza doar "Cantitate", nu si "Necesar". - Fix compute is_transit_transfer / sub_location_existent pe recordset multiplu (fara singleton error), separat efectul de blocare intr-un onchange dedicat. - Batch la copy_move_lines. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 18.0 #2629 +/- ##
=======================================
Coverage 72.84% 72.84%
=======================================
Files 1248 1249 +1
Lines 20970 20997 +27
Branches 2919 2924 +5
=======================================
+ Hits 15276 15296 +20
- Misses 4854 4859 +5
- Partials 840 842 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
Port pe Odoo 19: #2630 |
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
Îmbunătățiri și corecții pentru fluxul de transfer intern în 2 pași prin locația
de tranzit (
deltatech_picking_transit), plus configurare automată la instalare.Ce s-a schimbat
Setup la instalare (
hooks.py,post_init_hook)transfer automat bifat) și recepție 2 pași, legate la stocul principal al
depozitului și la locația de tranzit.
modulul nu sunt afectate (idempotent: sare peste tipurile deja existente).
Corecții de flux (
models/stock_picking.py,views/stock_picking_views.xml)(marfa chiar în tranzit). Butonul „Create Transfer" e ascuns până la
state == 'done', cu guard defensiv înopen_transfer_wizard.(
move.quantity), deci funcționează și când operatorul completează doar„Cantitate" și lasă „Necesar" pe 0.
is_transit_transferșisub_location_existent: fix pe recordset multiplu(eliminat singleton error), iar efectul de blocare (
action_toggle_is_locked)mutat dintr-un compute într-un
@api.onchangededicat.copy_move_lines: copiere în batch a liniilor de mișcare.Include și commit-ul anterior de pe branch (fix
sudola crearea celui de-aldoilea transfer — tichet 8970).
Testare
Verificat funcțional pe baze de test curate (instalare + rulare scenarii, apoi șterse):
[True, False]— fără singleton error.tranzit → recepție DEP2; solduri finale WH=70, Tranzit=0, DEP2=30. ✅
Note / riscuri
modulul instalat nu primește configurarea automată la simplu update.
🤖 Generated with Claude Code