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
[MIG] Migrate mis_builder, mis_builder_budget, mis_builder_demo to 16.0 #472
Conversation
/ocabot migration mis_builder |
There's no issue in this repo with the title 'Migration to version 16.0' and the milestone 16.0, so not possible to add the comment. |
/ocabot migration mis_builder |
40e6d36
to
ead84d2
Compare
@adrienpeiffer Can you rebase, please? |
@adrienpeiffer any news about this? I would like to know if more hands are needed here. |
I had a quick look at this. The PDF and XLSX exports work. There are a few UX issues (default company, preview/export buttons on the report form are not visible). The preview widget does not work. Does it need to be rewritten in OWL? The analytic filters... well I don't immediately see how we could implement them in 16.0. |
hi @sbidoul , about the widget
|
Thanks! Please do a PR to acsone:16.0-mig-mis_builder-ape
I'm not sure how that would work? |
I think, because the analytic lines link to the |
Hm, yes, but I'm afraid that will not work performance-wise. |
Hello! Thank you! 😄 Could you please rebase to check and test? Thank you! |
@rafaelbn there is nothing to rebase. runboat is usable. |
A few more thoughts about analytic filters. I'm going to removing everything that concerns analytic tags and analytic groups. These concepts are gone for good. The remaining analytic filters would be analytic account and analytic plan. Selecting an analytic plan would be mandatory when filtering on analytic accounts. Maybe we can make the analytic filters visible only if analytic_account_id and analytic_plan_id are present in the move line source. I'm still wondering what the analytic plan hierarchy is good for... |
b0d01ca
to
81f8c96
Compare
e111352
to
3532931
Compare
4a1f36c
to
1def407
Compare
@dzungtran89 little steps that can be done:
|
Hello @sbidoul ,
For a migration from 15 to 16:
Do you have an idea actually or we have still to analyse? I'm worried about transition. Let me know any help. I will try to record a analysis. Thank you! |
Hi @rafaelbn if you have information about how the analytic concepts are migrated from 15 to 16 that would help. I very much doubt we can migrate reports that rely on analytic automatically, though. |
Hi @sbidoul , thanks for your suggestions. The below are two forward ports
The reason of having two PRs is to avoid mixing up the commit history of two modules |
I let @sbidoul the honor of merging when he's ready. |
Let's wait until mid next week to let people test? |
OK for me. |
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.
Functional test locally and it worked like a charm!
There is probably a bug when changing the move line source in a report template after reports have been created for it. I'll look into it. |
More broadly it would be good to show a nicer error message is such case [invalid domain]. This can happen for many reasons. I created #557 to track this. |
@CasVissers-360ERP a friendlier error message is now provided when invalid fields are used in expressions or filter domains. Let me know how it works for you. |
Since the widget is getting a life of its own (thanks OWL for enabling this!), I refactored it's configuration a little bit and moved it to its own tab in the report configuration form. |
Functional review:
Now on the analytic filtering:
Not sure if this is what you mean but our use-case: I was thinking odoo/odoo#116496 might help here, what if we added a filter option on KPI's: "Filter Analytic Accounts" a m2m to account.analytic.account. When computing amounts, if analytic distribution is set and available on the model, search analytic distributions to find if the analytic account is used. If this is the case we look at the distribution and correct the amount. I know it can be performance heavy, but this is something we can mention in the view? "Using analytic accounts in KPI's might have an impact on performance". Future ideas/changes might fix the performance? Anyhow from my side no blocking issues to merge this PR. Thanks |
@CasVissers-360ERP I fixed the help page. Thanks for the testing. I'm following odoo/odoo#116496 too. It would definitely help, in situations where each move line is allocated 100% in exactly one analytic account per plan. With proper indexing it may even be performant. I hope they land it. For analytic distributions the only solution I see is a move-line-like SQL view on analytic lines. |
Let's go :) /ocabot merge patch |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at f577b3f. Thanks a lot for contributing to OCA. ❤️ |
TODO :
port [15.0] Fix display of analytic tags in PDF and Excel reports #481analytic tags are goneDepens on :