-
-
Notifications
You must be signed in to change notification settings - Fork 299
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_fatturapa_in] fix import with type minimo, and add che… #4229
[FIX][l10n_it_fatturapa_in] fix import with type minimo, and add che… #4229
Conversation
@matteoopenf puoi sistemare il nome del commit secondo le guidelines? grazie! |
Il problema è solo il nome del modulo tra parentesi esatto? |
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.
LGTM
This PR has the |
f5f8152
to
6b112f7
Compare
@francesco-ooops fatto merge? |
@matteoopenf so che è una pipponata e non so darti indicazioni pratiche perchè non uso github, ma metterei nel nome commit: [FIX]l10n_it_fatturapa_in: fix import with type minimo E nella descrizione commit: Added check if invoice_line_ids is valorize to check the price_unit, if is not valorize stop the method because is not possibile assume the line is negative |
arrivo |
6b112f7
to
9ecd104
Compare
@OCA/local-italy-maintainers mergiamo? |
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!
Ho provato in runboat e confermo che il problema si verifica in 14.0
con il file https://github.com/OCA/l10n-italy/blob/1c0e8323ec675550e84129bdf9292ccd5962fb6d/l10n_it_fatturapa_in/tests/data/IT05979361218_001.xml:
(da http://oca-l10n-italy-14-0-d2bffbf6a8d1.runboat.odoo-community.org/web#id=15&active_id=1&model=account.move&view_type=form&cids=&menu_id=134).
Il problema viene corretto da questa PR (importando lo stesso file):
(da http://oca-l10n-italy-14-0-pr4229-9ecd104a85f3.runboat.odoo-community.org/web#id=15&active_id=1&model=account.move&view_type=form&cids=&menu_id=134)
Puoi aggiungere o modificare un test esistente in modo che fallisca senza questa correzione? Basterebbe anche solo aggiungere un controllo sul tipo di move
nel test che usa il dettaglio minimo.
Provo a guardare come torno sul problema per fare la pr anche per 16.0 |
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.
LGTM
@SirAionTech scusami sto tentando di fare il test "opposto" al 54, ma non capisco come dire di importare al minimo la fattura anziche' al massimo. |
ho provato a creare il test vediamo come va |
6a2bc39
to
6b7936b
Compare
@SirAionTech sto ottenendo questo errore tentando di forzare l'import al minimo Per caso sai darmi un aiuto cosi da concludere la cosa? |
oppure come in altri test, prima devo creare il partner e settare il livello di import e poi fare girare il wizard? |
Il test l10n-italy/l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py Lines 443 to 444 in 0aa4def
lo imposta sul partner prima di importare la fattura, puoi fare allo stesso modo. Oppure, forse sarebbe più semplice
(da #4229 (review)) |
ok provo ad aggiustare li, grazie mille |
9a92d35
to
e92c1eb
Compare
@SirAionTech ho aggiunto il test e ci dovremmo essere ora, ho anche fatto il porting sulla pr 16.0 |
Grazie, potresti includere il test nello stesso commit della sua correzione? |
ok due minuti e li unisco |
Added check if invoice_line_ids is valorize to check the price_unit, if is not valorize stop the method because is not possibile assume the line is negative Added test to veryfy when I imported a invoice with Minimo is not converted to credit, because have not lines to check
e92c1eb
to
c12e401
Compare
@SirAionTech fatto |
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.
/ocabot merge patch
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 06235d7. Thanks a lot for contributing to OCA. ❤️ |
Risolve #4228