-
-
Notifications
You must be signed in to change notification settings - Fork 309
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_ricevute_bancarie: fix state update on riba lines #4568
[14.0][FIX] l10n_it_ricevute_bancarie: fix state update on riba lines #4568
Conversation
@salvorapi potresti fare review? Grazie! |
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.
funzionale ok
self.env["riba.distinta"].browse(active_id).state = "accredited" | ||
riba_distinta = self.env["riba.distinta"].browse(active_id) | ||
riba_distinta.state = "accredited" | ||
riba_distinta.line_ids.state = "accredited" |
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.
non ci andrebbe un qualcosa tipo: riba_distinta.mapped("line_ids").update({"state": "accredited"})
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.
L'assegnazione funziona anche su un recordset, senza dare SingletonError. Ad esempio da Odoo Shell:
env["res.partner"].search([], limit=3).name = "pippo"
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.
Code review, LGTM
self.env["riba.distinta"].browse(active_id).state = "accredited" | ||
riba_distinta = self.env["riba.distinta"].browse(active_id) | ||
riba_distinta.state = "accredited" | ||
riba_distinta.line_ids.state = "accredited" |
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.
L'assegnazione funziona anche su un recordset, senza dare SingletonError. Ad esempio da Odoo Shell:
env["res.partner"].search([], limit=3).name = "pippo"
This PR has the |
/ocabot merge patch |
On my way to merge this fine PR! |
Congratulations, your PR was merged at dfbca70. Thanks a lot for contributing to OCA. ❤️ |
Porting per la issue #3884