-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
[14.0][FIX] l10n_it_fatturapa_in: Fixed singleton error on field computation #2355
[14.0][FIX] l10n_it_fatturapa_in: Fixed singleton error on field computation #2355
Conversation
@@ -174,9 +174,7 @@ def e_inv_dati_ritenuta(self): | |||
"invoice_date", | |||
) | |||
def _compute_e_invoice_validation_error(self): | |||
self.ensure_one() | |||
self.e_invoice_validation_error = False | |||
self.e_invoice_validation_message = False |
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.
Da odoo/odoo@9920f20 è possibile assegnare un valore ad un campo per più record, quindi per risolvere il problema credo sia sufficente rimuovere self.ensure_one
, puoi provare?
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.
Funziona. Ho anche aggiunto un piccolo test, provato prima e dopo la patch.
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, puoi dare un nome più significativo al test e/o aggiungere una docstring?
test_2349_fix
non fa capire cosa dovrebbe testare.
686c5f1
to
760f584
Compare
760f584
to
0eefd4e
Compare
@SimoRubi puoi controllare se ora è 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.
Revisione del codice, per me è ok
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 47dcf67. Thanks a lot for contributing to OCA. ❤️ |
Taking over #2350
Fixes: #2349
diff from #2350 (due to pre-commit formatting)
--
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