Skip to content
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

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

SylweKra
Copy link

Porting per la issue #3884

@francesco-ooops
Copy link
Contributor

@salvorapi potresti fare review? Grazie!

@francesco-ooops francesco-ooops added 14.0 is porting This pull request is porting a change from another version labels Jan 22, 2025
Copy link

@Marco-ooops Marco-ooops left a 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"
Copy link
Contributor

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"})

Copy link
Contributor

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"

Copy link
Contributor

@aleuffre aleuffre left a 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"
Copy link
Contributor

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"

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@francesco-ooops
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-4568-by-francesco-ooops-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit a4e72b4 into OCA:14.0 Jan 27, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at dfbca70. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
14.0 approved is porting This pull request is porting a change from another version merged 🎉 ready to merge
Projects
None yet
7 participants