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

[FIX] l10n_it_intrastat: Permettere agli override di eseguire un'azione #4311

Conversation

SirAionTech
Copy link
Contributor

@SirAionTech SirAionTech commented Aug 1, 2024

Risolve #3858 per 16.0.

@SirAionTech
Copy link
Contributor Author

@primes2h @sergiocorato @matteoopenf visto che avete guardato la PR #3857 equivalente per 14.0, magari vi interessa anche questa?

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.

@aleuffre
Copy link
Contributor

aleuffre commented Aug 6, 2024

Ci sono altre instanze in cui è stato discusso questo punto, anche recentemente, io sono molto a favore di restituire sempre il risultato di super() a meno che non ci siano ragioni forti per non farlo, ma non tutti sono d'accordo.

#4191 (comment)

Potrebbe forse essere discusso come linea guida generale?

@SirAionTech
Copy link
Contributor Author

SirAionTech commented Aug 6, 2024

Ci sono altre instanze in cui è stato discusso questo punto, anche recentemente, io sono molto a favore di restituire sempre il risultato di super() a meno che non ci siano ragioni forti per non farlo, ma non tutti sono d'accordo.

#4191 (comment)

Potrebbe forse essere discusso come linea guida generale?

Sì, esiste la regola missing-return (vedi in https://github.com/OCA/pylint-odoo) di pylint, che c'è nel template OCA dei repo (https://github.com/OCA/oca-addons-repo-template/blob/f8cceacfd7c6594223087f0b3d67adcedaefb8be/src/.pylintrc-mandatory.jinja#L89) ma non è nel nostro repository, non so come mai e nel nostro repo (

missing-return,
).

Non so come mai non abbia beccato questo pezzo di codice.
Da quel poco che ho capito di https://github.com/OCA/pylint-odoo/blob/35cc929edb224723d330c4422f8109ff1f6f3d13/src/pylint_odoo/checkers/odoo_addons.py#L1248-L1255, potrebbe essere stato fregato dal return True a fine metodo

Copy link
Member

@tafaRU tafaRU left a comment

Choose a reason for hiding this comment

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

Ci sono dei conflitti da sistemare. Per il resto 👍

For instance, module `account_financial_risk` needs to return an action when an invoice is posted
@SirAionTech SirAionTech force-pushed the 16.0-fix-l10n_it_intrastat-propagate_post_result branch from 9afc738 to ea8203d Compare August 19, 2024 08:02
@SirAionTech
Copy link
Contributor Author

Fatto rebase per risolvere i conflitti

@SirAionTech
Copy link
Contributor Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-4311-by-SirAionTech-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 23c2b18 into OCA:16.0 Aug 20, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 5210010. 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

l10n_it_instrastat modifica il funzionamento di action_post bloccando account_financial_risk
4 participants