-
-
Notifications
You must be signed in to change notification settings - Fork 298
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] Redundant inherit in balance report #2168
Conversation
Ok so try an ocabot merge command |
/ocabot merge minor |
Hey, thanks for contributing! Proceeding to merge this for you. |
@OpenCode your merge command was aborted due to failed check(s), which you can inspect on this commit of 11.0-ocabot-merge-pr-2168-by-OpenCode-bump-minor. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
@OpenCode @eLBati This is an issue on the naming you did on the reports... Odoo already has on account module that report and the same field names: https://github.com/odoo/odoo/blob/11.0/addons/account/wizard/account_report_trial_balance.py#L8 which inherit that one : https://github.com/odoo/odoo/blob/11.0/addons/account/wizard/account_report_common.py#L10 For translations, Odoo transforms the model name account.balance.report and account_balance_report to field_account_balance_report_<field_name> : for both ! As the first one is already loaded from account module, it detects that the field reference already exists, so suffixes by the id. My question: Why not having an italian based name for your reports ? l10n.it.account.balance.report for instance. That will solve:
|
15d29c9
to
681496e
Compare
I can try to change report name |
Ok, that's the best approach. For travis build, I think this is because a test fails there https://travis-ci.com/github/OCA/l10n-italy/jobs/490679770#L2213 So, ocabot redo the build to try merging (and so the field reference is different next time - comparing each commit for pot on the merge branch). |
My last commit changes the report name with a l10nit_ prefix. This PR was rebased, so Travis can run code on python 3.6. The error you linked, is fixed (I hope) in another PR: #2160 |
c664f03
to
4b37e74
Compare
@rousseldenis PR #2160 merged and rebased here. I think now we have a complete situation in this PR, too. |
@OpenCode @rousseldenis thanks! @OpenCode Should this also be done for v12? |
If we merge this one, we will do this for 12, too. |
@rousseldenis @eLBati I think we can close this PR. Actually, branch 11.0 is working again, so we are sure that this isn't the reason. Are you agree? |
OK |
Closing as requested. |
Descrizione del problema o della funzionalità:
Travis genera un sacco di commit per i file .pot del modulo account_balance_report
--
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