Skip to content

Commit

Permalink
[MIG] mis_template_financial_report: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SirAionTech committed Dec 27, 2023
1 parent 0908608 commit 7a7edf1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion mis_template_financial_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Copyright 2020 Hunki Enterprises BV
# Copyright 2023 Simone Rubino - Aion Tech
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Profit & Loss / Balance sheet MIS templates",
"version": "15.0.1.0.1",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Hunki Enterprises BV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-reporting",
Expand Down
12 changes: 8 additions & 4 deletions mis_template_financial_report/data/mis_report_kpi.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<!--
~ Copyright 2023 Simone Rubino - Aion Tech
~ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="kpi_loss" model="mis.report.kpi">
<field name="name">loss</field>
<field name="description">Loss</field>
<field
name="expression"
>balp[('user_type_id', 'in', (ref('account.data_account_type_depreciation').id, ref('account.data_account_type_direct_costs').id, ref('account.data_account_type_expenses').id))][]</field>
>balp[('account_type', 'in', ('expense_depreciation', 'expense_direct_cost', 'expense'))][]</field>
<field name="auto_expand_accounts">true</field>
<field name="auto_expand_accounts_style_id" ref="style_details" />
<field name="style_id" ref="style_header" />
Expand All @@ -19,7 +23,7 @@
<field name="description">Profit</field>
<field
name="expression"
>-balp[('user_type_id', 'in', (ref('account.data_account_type_other_income').id, ref('account.data_account_type_revenue').id,))][]</field>
>-balp[('account_type', 'in', ('income_other', 'income',))][]</field>
<field name="auto_expand_accounts">true</field>
<field name="auto_expand_accounts_style_id" ref="style_details" />
<field name="style_id" ref="style_header" />
Expand Down Expand Up @@ -74,7 +78,7 @@
<field name="description">Liabilities</field>
<field
name="expression"
>-bale[('user_type_id', 'in', (ref('account.data_account_type_current_liabilities').id, ref('account.data_account_type_equity').id, ref('account.data_account_type_non_current_liabilities').id, ref('account.data_account_type_payable').id))][]</field>
>-bale[('account_type', 'in', ('liability_current', 'equity', 'liability_non_current', 'liability_payable'))][]</field>
<field name="auto_expand_accounts">true</field>
<field name="auto_expand_accounts_style_id" ref="style_details_double_indent" />
<field name="style_id" ref="style_header_indent" />
Expand All @@ -90,7 +94,7 @@
<field name="description">Assets</field>
<field
name="expression"
>bale[('user_type_id', 'in', (ref('account.data_account_type_credit_card').id, ref('account.data_account_type_prepayments').id, ref('account.data_account_type_current_assets').id, ref('account.data_account_type_fixed_assets').id, ref('account.data_account_type_liquidity').id, ref('account.data_account_type_non_current_assets').id, ref('account.data_account_type_receivable').id))][]</field>
>bale[('account_type', 'in', ('liability_credit_card', 'asset_prepayments', 'asset_current', 'asset_fixed', 'asset_cash', 'asset_non_current', 'asset_receivable'))][]</field>
<field name="auto_expand_accounts">true</field>
<field name="auto_expand_accounts_style_id" ref="style_details" />
<field name="style_id" ref="style_header" />
Expand Down
3 changes: 3 additions & 0 deletions mis_template_financial_report/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
* Holger Brunn <mail@hunki-enterprises.nl> (https://hunki-enterprises.nl)
* Stefan Rijnhart <stefan@opener.amsterdam> (https://opener.amsterdam)
* `Aion Tech <https://aiontech.company/>`_:

* Simone Rubino <simone.rubino@aion-tech.it>
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
odoo-test-helper

0 comments on commit 7a7edf1

Please sign in to comment.