Skip to content

[FIX]l10n_it_riba_oca fix add riba cost issue https://github.com/OCA/…#5119

Open
mmircoli-nexapp wants to merge 2 commits intoOCA:18.0from
mmircoli-nexapp:18.0-FIX-riba-new
Open

[FIX]l10n_it_riba_oca fix add riba cost issue https://github.com/OCA/…#5119
mmircoli-nexapp wants to merge 2 commits intoOCA:18.0from
mmircoli-nexapp:18.0-FIX-riba-new

Conversation

@mmircoli-nexapp
Copy link
Copy Markdown

…l10n-italy/issues/5063

@mmircoli-nexapp
Copy link
Copy Markdown
Author

i test falliscono per #5118

Copy link
Copy Markdown

@AlSacco AlSacco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approvata Funzionalmente

@francesco-ooops francesco-ooops linked an issue Feb 20, 2026 that may be closed by this pull request
2 tasks
@mmircoli-nexapp
Copy link
Copy Markdown
Author

@francesco-ooops se qui fai rebase perfavore che ora hanno mergiato la pr che sistema i test
Grazie Mille

@francesco-ooops
Copy link
Copy Markdown
Contributor

/ocabot rebase

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, PR rebased to 18.0.

@mmircoli-nexapp
Copy link
Copy Markdown
Author

@monen17 se riesci a fare review che alla fine di fatto ho fatto come suggerivi.
Grazie ancora dell'hint

@mmircoli-nexapp
Copy link
Copy Markdown
Author

qualcuno riesce a fare review? cosi da arrivare a due e review e arrivare al merge?

Copy link
Copy Markdown
Contributor

@monen17 monen17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie della PR!
Visto che è una fix, secondo me ci vorrebbe anche il suo test, potresti aggiungerlo?

Inoltre puoi descrivere brevemente il problema nel titolo del commit?
Così si capisce perché il commit è stato fatto senza dover aprire la issue linkata

@gbtechnology
Copy link
Copy Markdown

Salve, io ho fatto ulteriori test e credo sia tutto ok.

@mmircoli-nexapp
Copy link
Copy Markdown
Author

mmircoli-nexapp commented Mar 23, 2026 via email

@monen17
Copy link
Copy Markdown
Contributor

monen17 commented Mar 23, 2026

Salve, io ho fatto ulteriori test e credo sia tutto ok.

Ciao, grazie!
Puoi mettere l'approvazione seguendo https://www.odoo-italia.org/documentazione/14.0/sviluppo/review.html#invio-della-revisione ? Così conta come approvazione in Github, ed è più facile contare quanti utenti hanno approvato queste modifiche.

@mmircoli-nexapp
Copy link
Copy Markdown
Author

@monen17 ho aggiunto il test e cambiato il messaggio del commit

@mmircoli-nexapp
Copy link
Copy Markdown
Author

se per caso occorre che diventa un unico commit dimmelo

@mmircoli-nexapp mmircoli-nexapp requested a review from monen17 March 24, 2026 07:43
@mmircoli-nexapp
Copy link
Copy Markdown
Author

@monen17 quando puoi fammi sapere perfavore

@mmircoli-nexapp
Copy link
Copy Markdown
Author

@monen17 riesci a fare review?

Copy link
Copy Markdown

@MaurizioPellegrinet MaurizioPellegrinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test funzionale: OK

… cost of riba is not

 added if the invoice is confirmed when the user is in list view, because from list skip some check, with this fix the cost is always added.
@mmircoli-nexapp
Copy link
Copy Markdown
Author

Grazie della PR! Visto che è una fix, secondo me ci vorrebbe anche il suo test, potresti aggiungerlo?

Inoltre puoi descrivere brevemente il problema nel titolo del commit? Così si capisce perché il commit è stato fatto senza dover aprire la issue linkata

Ciao, riusciamo a mergiare?

Copy link
Copy Markdown
Contributor

@monen17 monen17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie delle modifiche, puoi sistemare i commit in modo che seguano https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#71commit-message ? Al momento sono Image

Puoi mettere tutto in unico commit? Così è chiaro che il test è stato aggiunto per verificare le altre modifiche nello stesso commit.

Comment on lines +51 to +60
when confirming invoices from the list view using 'Confirm Entries',
the collection fees must be added. Before this fix, the fee-adding
logic was only in action_post() and was skipped when _post() was
called directly.
"""
# ---- Set Service in Company Config
self.invoice.company_id.due_cost_service_id = self.service_due_cost.id
# ---- Validate Invoice using _post() directly, simulating the code
# ---- path used by batch confirmation from list view
self.invoice._post(soft=False)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie del test!
Però non ho capito come mai bisogna simulare il comportamento del wizard.
Se il problema è che le spese non vengono aggiunte quando viene eseguito il wizard "Confirm Entries" sulla lista di fatture, il test dovrebbe verificare quel caso: creare un wizard per più fatture ed eseguirlo.

Il fatto che il wizard usi un metodo (_post) piuttosto che un altro (action_post) è un particolare dell'implementazione che non interessa al test, come non interessa a un testatore che prova la funzionalità.

Comment on lines +70 to +77
# ---- Test Cost lines total is equal to 10.00 (5.00 x 2 due dates)
self.assertEqual(
(
self.invoice.invoice_line_ids[1].price_unit
+ self.invoice.invoice_line_ids[2].price_unit
),
10.00,
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie dei commenti, saranno molto utili ai posteri!
Però puoi togliere il ---- all'inizio di ogni commento? Ti immagini come sarebbe il codice se ognuno aggiungesse cose del genere nei propri commenti?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[l10n_it_RIBA_OCA] Mancato inserimento spese riba in fattura

7 participants