[12.0 -> 14.0] account.move records created based on account.asset have invalid names
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
Direzione di ricerca
Start with _deduce_sequence_number_reset in odoo/addons/account/models/account_move.py, which the issue says picks an existing journal move to infer the sequence format, and with the _setup_move_data to create_move path in account_asset_management. Reproduce by migrating a 12.0 database with asset-generated moves and running Compute Assets. The issue does not say what the fix should be, so agree on an approach with maintainers before coding. Done means asset-created moves no longer block new move creation after migration.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Module
account_asset_management from 12.0 to 13.0 onward, after the fusion of the account.invoice/account.move tables.
Describe the bug
-
In V12.0,
account.moverecords created fromaccount.assetrecords use the asset's name -
In v13.0 onwards, the fusion of
account.move/account.invoicemean that both table follow the same sequence generator for new invoice/move numbers.
Fittingly, the_setup_move_datamethod used inasset_compute->_compute_entries->create_moveno longer sets thenamefield on newly createdaccount.moverecords. -
However,
account.moverecords created fromaccount.asset(using theCompute Assetsaction) in the version 12.0 can mess with the sequence number generation - Indeed, from Odoo 14.0, the_deduce_sequence_number_resettries to extrapolate the sequence number format by taking an existing move in the journal.
If the createdaccount.moveis not a refund, it looks foraccount.movein the same journal,which are not ofout_refundandin_refund, which incluesentrymoves created from assets, that can have non-standard names if created in previous Odoo versions.
That causes aValidationErrorsince the name is not standard
(see the_deduce_sequence_number_resetmethod inodoo/addons/account/models/account_move.py)
To Reproduce
Affected versions: 14.0 onwards
Steps to reproduce the behavior:
- Create a v12.0 database
- Create assets and moves related to these assets
- Migrated the database to v14.0
- Try to use the Compute Assets action
Expected behavior
The account.move entities created from account.asset in previous Odoo versions, which do not possess standard sequence number names, shouldn't bar the creation of new account.move entities when the database is migrated.
I'm not sure if people have already surrounded the issue (renamed account.move records, simply didn't compute assets before a migration), but I'm interested in people's suggestions which might have migrated an Odoo database with the same module.
- Lingua principale
- Python
- Stelle
- 995
- Fork
- 837
- Merge medio
- 5g 6h
- PR unite (30g)
- 13
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OCA/OpenUpgrade
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
OCA/OpenUpgrade#5380 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Migration to version 20.0Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
OCA/OpenUpgrade#6044 · 6 commenti · 6 reazioni ·
I maintainer di solito rispondono entro 3 giorni
-
bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
OCA/OpenUpgrade#6004 · 5 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
OCA/OpenUpgrade#5594 ·
I maintainer di solito rispondono entro 3 giorni
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
OCA/OpenUpgrade#5592 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di OCA/OpenUpgrade
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pytest-dev/pyfakefs#1367 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
IFEvalG exclude_word_harder misses the keyword next to punctuation, at the start or end of the text, and in other letter caseForse già presa @damienen l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
allenai/open-instruct#2151 ·
I maintainer di solito rispondono entro 1 giorno
-
feat(plan): support convertorLabels and convertorAffinity in Plan resourceForse già presa @AmenB l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
RedHatQE/openshift-python-wrapper#2849 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 25 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
libnativeapi/nativeapi#21 ·