-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
[16.0][FIX] l10n_it_declaration_of_intent: doppio scarico fattura #3467
[16.0][FIX] l10n_it_declaration_of_intent: doppio scarico fattura #3467
Conversation
@Borruso ma questa PR è per la 14 o 16 ? perchè nel titolo c'è 14.0 ma il merge evidenzia il repo 16 |
@Borruso dai miei test su Odoo 16EE l'obiettivo preposto viene raggiunto, ovvero l'importo non viene più scaricato da entrambe le dichiarazioni d'intento. |
scusi presidente |
e878803
to
e3df2d4
Compare
e3df2d4
to
d392f0d
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 della PR!
Grande che hai aggiunto il test!
Ho fatto solo revisione del codice
P.S. puoi modificare il messaggio del commit in modo che rispetti le linee guida OCA (rif. https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#71commit-message)?
Ad esempio il primo punto è:
Commit messages are in English
def update_declarations( | ||
self, declarations, grouped_lines, declarations_used_amounts | ||
): |
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.
def update_declarations( | |
self, declarations, grouped_lines, declarations_used_amounts | |
): | |
def update_declarations( | |
self, declarations_used_amounts, grouped_lines | |
): |
declarations
non è più usato dal metodo e comunque le sue informazioni sono recuperabili da declarations_used_amounts
declarations = [force_declaration] | ||
declarations = {force_declaration.id: amount} | ||
else: | ||
declarations = declarations | ||
declarations = declarations_used_amounts |
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.
La variabile declarations
non sono più semplici dichiarazioni ma un dizionario, si può chiarire nel nome della variabile?
Ad esempio declaration_id_to_amount_dict
records = declaration_model.get_valid( | ||
type_d="out", partner_id=self.partner2.id, date=self.today_date | ||
) | ||
self.assertEqual(len(records), 2) |
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.
records = declaration_model.get_valid( | |
type_d="out", partner_id=self.partner2.id, date=self.today_date | |
) | |
self.assertEqual(len(records), 2) | |
valid_declarations = declaration_model.get_valid( | |
type_d="out", partner_id=self.partner2.id, date=self.today_date | |
) | |
self.assertEqual(valid_declarations, self.declaration2 | self.declaration3) |
o almeno dare un nome più significativo invece di records
.
@@ -503,3 +503,22 @@ def test_action_register_payment(self): | |||
else: | |||
payments = action["domain"][0][2] | |||
self.assertTrue(len(payments) > 1) | |||
|
|||
def test_multiple_valid(self): | |||
declaration_model = self.env["l10n_it_declaration_of_intent.declaration"].sudo() |
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.
Puoi aggiungere una breve descrizione di cosa deve verificare questo test?
d392f0d
to
de86906
Compare
@SirAionTech fatto puoi controllare? |
de86906
to
716fdca
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.
Revisione del codice, per me è ok.
Grazie di aver tradotto il messaggio del commit, ora però viene tagliato
P.S. puoi modificare il messaggio del commit in modo che rispetti le linee guida OCA (rif. https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#71commit-message)?
Ad esempio il primo punto è:Commit messages are in English
C'è anche:
please check if the commit message is cut with ellipsis
716fdca
to
3e51527
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.
Revisione del codice, per me è ok.
@apolitano27 grazie di aver provato le modifiche, puoi evidenziare se secondo te la PR va bene così o sono necessarie modifiche? |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
/ocabot rebase |
Congratulations, PR rebased to 16.0. |
3e51527
to
6785350
Compare
@sergiocorato il commit di questa PR ha te come autore, vuoi controllare che sia tutto ok? |
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.
Funtional test: OK
This PR has the |
/ocabot merge patch |
On my way to merge this fine PR! |
It looks like something changed on |
Congratulations, your PR was merged at 012e8a0. Thanks a lot for contributing to OCA. ❤️ |
Risolve #3116
--
Confermo di aver firmato il CLA https://odoo-community.org/page/cla e di aver letto le linee guida su https://odoo-community.org/page/contributing