[16.0] Custom fields in accounting expressions
This is a very rough experiment on the Accounting Expression Processor to support expressions such as fldp.quantity[60%]
This will read the quantity field in the same read_group as debit and credit so we can write efficient expressions on any numerical field that is available in the move-line-like table.
TODO
- [ ] add tests
- [x] fix failing tests
- [ ] update legend
- [ ] update docs
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.
This is ready to go. I added tests and documentation.
Very useful to combine quantities (say, hours) with accounting data in the same MIS report.
/ocabot merge minor
This PR looks fantastic, let's merge it! Prepared branch 16.0-ocabot-merge-pr-584-by-sbidoul-bump-minor, awaiting test results.
Congratulations, your PR was merged at fa2375157ebbf51428d7247f2fa1d2ae33c0570d. Thanks a lot for contributing to OCA. ❤️
I see that the changes added here have lost an interesting functionality (which existed in v16 and exists in v15). Before, in comparison mode (2023 vs 2024 for example) accounts with no data will not be shown, now they are all shown (even if they have no data in any of the periods). It seems to be related to https://github.com/OCA/mis-builder/commit/edaee9b3211e245d3c2a704c23d9fec8c9a653ad#diff-c78e2ca554b9359f0e967b6ab457d608b0030631f2b73e2e31f5942457cb11c0R401 but I am not clear about the proper fix, because there are other related changes, can you check it? Thanks.
cc @sbidoul
Ah, sorry if this caused a regression. I'll have a look in the coming days. Could you create a separate issue and if possible a little more explanation as I'm not sure I fully understand the issue.
Ah, sorry if this caused a regression. I'll have a look in the coming days. Could you create a separate issue and if possible a little more explanation as I'm not sure I fully understand the issue.
Of course, created and explained with a use case. https://github.com/OCA/mis-builder/issues/665