-
Notifications
You must be signed in to change notification settings - Fork 0
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] [ADD] script to generate bs and pl xml #6
base: 14.0
Are you sure you want to change the base?
Conversation
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.
A first quick review.
Enable pre-commit and trigger the reformatting of your script.
1065308
to
ed44120
Compare
fbd56c4
to
8283c77
Compare
@ThomasBinsfeld Could you update your review ? |
<field name="report_id" ref="mis_report_pl" /> | ||
<field name="name">acc_76A</field> | ||
<field name="description">Of which: non-recurring operating income [76A]</field> | ||
<field name="expression">balp[76A%]</field> |
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.
@mathisjacoby This expression is suspicious. As far as I know, there is no account code starting with 76A
in the official belgium chart of accounts. See for instance https://github.com/odoo/odoo/blob/16.0/addons/l10n_be/data/account.account.template.csv or https://plancomptablebelge.be/#classe-7
8283c77
to
3a5169f
Compare
<field name="report_id" ref="new_mis_report_pl" /> | ||
<field name="name">acc_70</field> | ||
<field name="description">Turnover [70]</field> | ||
<field name="expression">balp[70%]</field> |
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.
Since balp
is debit - credit
and revenue is typically credit on 70, this expression will give a negative result.
So we want -balp[70%]
here and several other places.
For P&L accounts, this is relatively straightforward (minus balp for accounts 7, plus balp for accounts 6). For BS accounts (1-5), it is less obvious.
<field name="report_id" ref="new_mis_report_pl" /> | ||
<field name="name">acc_67_77</field> | ||
<field name="description">Income taxes on the result [67/77]</field> | ||
<field name="expression">balp[67%,68%,69%,71%,72%,73%,74%,76%,77%]</field> |
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.
This one is not correct. Looking at the official account chart, it's probably this:
<field name="expression">balp[67%,68%,69%,71%,72%,73%,74%,76%,77%]</field> | |
<field name="expression">balp[67%,77%]</field> |
3a5169f
to
0159051
Compare
600b2f1
to
4062d27
Compare
Codecov Report
@@ Coverage Diff @@
## 14.0 #6 +/- ##
===========================================
- Coverage 73.63% 60.30% -13.33%
===========================================
Files 54 60 +6
Lines 1961 2615 +654
Branches 304 486 +182
===========================================
+ Hits 1444 1577 +133
- Misses 405 925 +520
- Partials 112 113 +1
Continue to review full report in Codecov by Sentry.
|
4062d27
to
e5562a2
Compare
No description provided.