-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] l10n_it_split_payment: fix unbalanced lines #2515
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grazie della PR!
Vorrei provarla ma non so come riprodurre l'errore, puoi aggiungere in descrizione almeno gli step per riprodurre il problema?
Se poi riesci sarebbe bene anche aggiungere un test per evitare regressioni in futuro.
In base a https://github.com/OCA/l10n-italy/wiki/Team-di-sviluppo poi servirebbe anche una issue di tracciamento per portare l'eventuale correzioni alle altre versinoi supportate.
d4983e8
to
2b9ef52
Compare
Aggiunto test |
2b9ef52
to
1012ba6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grazie degli step e del test!
In base a https://github.com/OCA/l10n-italy/wiki/Team-di-sviluppo poi servirebbe anche una issue di tracciamento per portare l'eventuale correzioni alle altre versinoi supportate.
Aggiungo che per poter vedere le righe contabili devo confermare la fattura e per poter aggiungere la seconda riga devo prima riportarla in bozza.
Una volta fatto ciò in runbot ottengo l'errore:
che suppongo sia quello che vuoi correggere.
Ho provato nel runbot generato dalla tua PR ma non riesco ad aggiungere la seconda riga perché continua a togliermela da sotto il mouse, qui sotto il video che parte dalla fattura con lo split payment già confermata e riportata in bozza:
https://user-images.githubusercontent.com/32064796/142841062-ba6eaa50-5ffc-4953-be2e-4fa00b4d1fb1.mp4
Puoi verificare?
1012ba6
to
dec57ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aspettavo a fare review perché i test falliscono, ma tanto vale scriverlo direttamente 😄
Puoi correggere i test?
falliscono i test di fatturapa_out_sp |
Sì ma quei test non mi pare abbiano problemi in |
/ocabot rebase |
Congratulations, PR rebased to 14.0. |
dec57ed
to
48e61b9
Compare
@Borruso FYI sto lavorando su questa. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per quanto riguarda i problemi sollevati nei test, debuggando ho scoperto che:
- https://github.com/OCA/l10n-italy/runs/7387629100?check_suite_focus=true#step:8:751 si dovrebbe risolvere con un rebase su
14.0
in modo da includere [14.0][FIX] l10n_it_ricevute_bancarie: avoid loosing reference to lines partner #2821 - https://github.com/OCA/l10n-italy/runs/7387629100?check_suite_focus=true#step:8:903 lo puoi risolvere così come ho fatto in tafaRU@804a977
Ti avrei fatto una PR ma il tuo fork non è visibile
Provando la tua PR su runboat ho trovato un problema:
Nota, se può essere d'aiuto: il problema specifico si risolve sostituendo in questi due punti (primo e secondo) il metodo write
con update
. Così facendo però si introduce di nuovo l'effetto collaterale della scomparsa delle Invoice Lines.
-edit-
Se la fattura viene salvata le Invoice Lines ricompaiono.
/ocabot rebase |
Congratulations, PR rebased to 14.0. |
48e61b9
to
5e59b4c
Compare
abbiamo testato su runboat e sembra funzionare e non crea più lo sbilanciamento, credo quindi solo i test vado sistemati, appena si riesce anche con i test riproviamo e approvo |
stiamo lavorandoci, vedi Borruso#11 |
1e4fe17
to
51cd055
Compare
51cd055
to
71d5008
Compare
71d5008
to
34cb070
Compare
3165394
to
66fe90e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Borruso nei vari force-pushed che hai fatto hai alterato il contenuto del commit 0c55bf6 che ora è privo di senso.
Hai pertanto due possibilità:
- riportarlo simile a com'era in Borruso@6b03b4d
- schiacchiarlo con il tuo precedente (288a730)
Per me va bene anche la seconda, next time però fai più attenzione 😉
Grazie.
Steps to reproduce: * choose partner with fiscal position (Split Payment = True) * create an invoice with a line * edit the price unit Current behavior: See https://user-images.githubusercontent.com/3512779/179964568-955cbe00-5346-4532-a53b-efa1b1eb663e.gif for further info
2022-07-18 10:49:29,798 268 ERROR odoo odoo.addons.l10n_it_fatturapa_out_sp.tests.test_fatturapa_xml_validation: FAIL: TestFatturaPAXMLValidation.test_4_xml_export Traceback (most recent call last): File "/__w/l10n-italy/l10n-italy/l10n_it_fatturapa_out_sp/tests/test_fatturapa_xml_validation.py", line 91, in test_4_xml_export self.check_content(xml_content, "IT06363391001_00004.xml") File "/__w/l10n-italy/l10n-italy/l10n_it_fatturapa_out/tests/fatturapa_common.py", line 209, in check_content self.assertEqual(etree.tostring(test_fatt), etree.tostring(xml)) AssertionError: b'<ns[1596 chars]016/0016</Numero><ImportoTotaleDocumento>17.08[1123 chars]ica>' != b'<ns[1596 chars]016/06/0001</Numero><ImportoTotaleDocumento>17[1126 chars]ica>' See https://github.com/OCA/l10n-italy/runs/7387629100?check_suite_focus=true#step:8:909 for reference
66fe90e
to
7a40954
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grazie!
/ocabot merge patch |
On my way to merge this fine PR! |
Congratulations, your PR was merged at adc1c45. Thanks a lot for contributing to OCA. ❤️ |
Per riprodurre l'errore:
Mentre se faccio fattura da ordine e non aggiungo poi righe aggiuntive allora le righe contabili generate sono corrette