Skip to content
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

Syncing from upstream OCA/account-financial-reporting (17.0) #1029

Merged
merged 29 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e5190c1
[RFR] l10n_nl_mis_reports -> mis_template_financial_report
StefanRijnhart Oct 17, 2021
a3fcb28
[MIG] mis_template_financial_report: Migration to 14.0
StefanRijnhart Oct 19, 2021
47c0b51
[RFR] mis_template_financial_report: make horizontal rendering optional
StefanRijnhart Oct 19, 2021
6b24d16
Added translation using Weblate (French)
abdawone Feb 11, 2022
49a96c2
Translated using Weblate (French)
abdawone Feb 11, 2022
d0293f5
Added translation using Weblate (Spanish)
victoralmau May 4, 2022
462e90b
Translated using Weblate (Spanish)
victoralmau May 4, 2022
58c1852
Added translation using Weblate (Finnish)
jarmokortetjarvi Aug 16, 2022
421003e
[FIX] mis_template_financial_report: Remove balance of "Current Year …
victoralmau Sep 1, 2022
3be4cbb
[MIG] mis_template_financial_report: Migration to 15.0
ernesto-garcia-tecnativa Feb 22, 2023
f27d6e1
[UPD] Update mis_template_financial_report.pot
Feb 23, 2023
6032068
[UPD] README.rst
OCA-git-bot Feb 23, 2023
95c0bec
mis_template_financial_report 15.0.1.0.1
OCA-git-bot Feb 23, 2023
8ed6aa1
Update translation files
weblate Feb 24, 2023
57e85d8
[UPD] README.rst
OCA-git-bot Sep 3, 2023
70479b2
[MIG] mis_template_financial_report: Migration to 16.0
hbrunn Apr 8, 2024
312bc0b
[FIX] mis_template_financial_report: feature parity with v12
hbrunn Apr 8, 2024
c49f508
fixup! [MIG] mis_template_financial_report: Migration to 16.0
hbrunn Apr 15, 2024
5f2f783
[UPD] Update mis_template_financial_report.pot
Jun 5, 2024
a9055f9
Update translation files
weblate Jun 14, 2024
e7c6881
Added translation using Weblate (Italian)
mymage Jun 15, 2024
d5c57f1
Translated using Weblate (Italian)
mymage Jun 15, 2024
755e79f
Added translation using Weblate (Portuguese)
peterromao Aug 1, 2024
124c055
Translated using Weblate (Portuguese)
peterromao Aug 1, 2024
a67d7bc
[IMP] mis_template_financial_report: pre-commit auto fixes
BurkhalterY Oct 6, 2024
d4f77e9
[MIG] mis_template_financial_report: Migration to 17.0
BurkhalterY Oct 6, 2024
f04d6d8
Merge PR #1231 into 17.0
OCA-git-bot Nov 15, 2024
1c03ad9
[UPD] Update mis_template_financial_report.pot
Nov 15, 2024
0e95181
[BOT] post-merge updates
OCA-git-bot Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ addon | version | maintainers | summary
[account_financial_report](account_financial_report/) | 17.0.1.4.0 | | OCA Financial Reports
[account_tax_balance](account_tax_balance/) | 17.0.1.0.0 | | Compute tax balances based on date range
[mis_builder_cash_flow](mis_builder_cash_flow/) | 17.0.1.0.0 | [![jjscarafia](https://github.com/jjscarafia.png?size=30px)](https://github.com/jjscarafia) | MIS Builder Cash Flow
[mis_template_financial_report](mis_template_financial_report/) | 17.0.1.0.0 | [![hbrunn](https://github.com/hbrunn.png?size=30px)](https://github.com/hbrunn) | Profit & Loss / Balance sheet MIS templates
[partner_statement](partner_statement/) | 17.0.1.0.0 | [![MiquelRForgeFlow](https://github.com/MiquelRForgeFlow.png?size=30px)](https://github.com/MiquelRForgeFlow) | OCA Financial Reports

[//]: # (end addons)
Expand Down
111 changes: 111 additions & 0 deletions mis_template_financial_report/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
===========================================
Profit & Loss / Balance sheet MIS templates
===========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:43a58797d5d60f19a2ce7f6e20a38f052a0d5d7c3ebe2ef50fa88e9899b2069e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-reporting/tree/17.0/mis_template_financial_report
:alt: OCA/account-financial-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-mis_template_financial_report
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This addon provides MIS builder templates to generate generic Profit &
Loss and Balance Sheet reports.

**Table of contents**

.. contents::
:local:

Configuration
=============

To render the reports from this module horizontally in two columns on
the same page, check the Horizontal checkbox on the Layout tab of the
report. This checkbox is only available for reports that support the
horizontal mode.

Usage
=====

Select one of the Profit & Loss or Balance Sheet templates in a new MIS
report.

For details, refer to the `MIS Builder
documentation <https://github.com/OCA/mis-builder/tree/14.0/mis_builder#usage>`__

Known issues / Roadmap
======================

- support horizontal mode for xslx export
- split off all code to mis_builder_horizontal and only keep the KPI
definitions here

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-reporting/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20mis_template_financial_report%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Hunki Enterprises BV

Contributors
------------

- Holger Brunn <[email protected]>
(https://hunki-enterprises.nl)
- Stefan Rijnhart <[email protected]> (https://opener.amsterdam)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-hbrunn| image:: https://github.com/hbrunn.png?size=40px
:target: https://github.com/hbrunn
:alt: hbrunn

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-hbrunn|

This module is part of the `OCA/account-financial-reporting <https://github.com/OCA/account-financial-reporting/tree/17.0/mis_template_financial_report>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions mis_template_financial_report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
31 changes: 31 additions & 0 deletions mis_template_financial_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2020 Hunki Enterprises BV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Profit & Loss / Balance sheet MIS templates",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "Hunki Enterprises BV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-reporting",
"category": "Localization",
"depends": ["mis_builder"],
"data": [
"data/mis_report_style.xml",
"data/mis_report.xml",
"data/mis_report_kpi.xml",
"data/mis_report_subreport.xml",
"views/mis_report_instance_views.xml",
"views/mis_report_kpi_views.xml",
"views/templates.xml",
],
"assets": {
"web.assets_backend": [
"mis_template_financial_report/static/src/components/mis_report_widget.xml",
"mis_template_financial_report/static/src/components/mis_report_widget.css",
],
"web.report_assets_common": [
"mis_template_financial_report/static/src/css/report.css"
],
},
"maintainers": ["hbrunn"],
}
10 changes: 10 additions & 0 deletions mis_template_financial_report/data/mis_report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<odoo>
<record id="report_pl" model="mis.report">
<field name="name">Profit &amp; Loss</field>
<field name="style_id" ref="style_default" />
</record>
<record id="report_bs" model="mis.report">
<field name="name">Balance Sheet</field>
<field name="style_id" ref="style_default" />
</record>
</odoo>
101 changes: 101 additions & 0 deletions mis_template_financial_report/data/mis_report_kpi.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<odoo>
<record id="kpi_loss" model="mis.report.kpi">
<field name="name">loss</field>
<field name="description">Loss</field>
<field name="expression">balp[('account_type', 'like', '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" />
<field name="type">num</field>
<field name="compare_method">diff</field>
<field name="accumulation_method">sum</field>
<field name="sequence">100</field>
<field name="report_id" ref="report_pl" />
</record>
<record id="kpi_profit" model="mis.report.kpi">
<field name="name">profit</field>
<field name="description">Profit</field>
<field
name="expression"
>-balp['|', ('account_type', 'like', 'income%'), ('account_type', 'like', 'equity_unaffected')][]</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" />
<field name="type">num</field>
<field name="compare_method">diff</field>
<field name="accumulation_method">sum</field>
<field name="sequence">0</field>
<field name="report_id" ref="report_pl" />
<field name="split_after" eval="True" />
</record>
<record id="kpi_pl_to_report" model="mis.report.kpi">
<field name="id">3</field>
<field name="name">pl_to_report</field>
<field name="description">Profit or loss to report</field>
<field name="expression">profit - loss</field>
<field name="auto_expand_accounts">false</field>
<field name="style_id" ref="style_header" />
<field name="type">num</field>
<field name="compare_method">diff</field>
<field name="accumulation_method">none</field>
<field name="sequence">101</field>
<field name="report_id" ref="report_pl" />
</record>
<record id="kpi_liability_total" model="mis.report.kpi">
<field name="id">8</field>
<field name="name">liability_header</field>
<field name="description">Liability</field>
<field name="expression">liability + subreport_pl.pl_to_report</field>
<field name="auto_expand_accounts">false</field>
<field name="style_id" ref="style_header" />
<field name="type">num</field>
<field name="compare_method">none</field>
<field name="accumulation_method">none</field>
<field name="sequence">100</field>
<field name="report_id" ref="report_bs" />
</record>
<record id="kpi_liability_pl_subreport" model="mis.report.kpi">
<field name="id">7</field>
<field name="name">pl</field>
<field name="description">Profit / Loss</field>
<field name="expression">subreport_pl.pl_to_report</field>
<field name="auto_expand_accounts">false</field>
<field name="style_id" ref="style_header_indent" />
<field name="type">num</field>
<field name="compare_method">pct</field>
<field name="accumulation_method">sum</field>
<field name="sequence">102</field>
<field name="report_id" ref="report_bs" />
</record>
<record id="kpi_liability" model="mis.report.kpi">
<field name="id">5</field>
<field name="name">liability</field>
<field name="description">Liabilities</field>
<field
name="expression"
>-bale['|', ('account_type', 'like', 'liability%'), ('account_type', '=', 'equity')][]</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" />
<field name="type">num</field>
<field name="compare_method">diff</field>
<field name="accumulation_method">sum</field>
<field name="sequence">101</field>
<field name="report_id" ref="report_bs" />
</record>
<record id="kpi_assets" model="mis.report.kpi">
<field name="id">4</field>
<field name="name">assets</field>
<field name="description">Assets</field>
<field name="expression">bale[('account_type', 'like', 'asset%')][]</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" />
<field name="type">num</field>
<field name="compare_method">diff</field>
<field name="accumulation_method">sum</field>
<field name="sequence">0</field>
<field name="report_id" ref="report_bs" />
<field name="split_after" eval="True" />
</record>
</odoo>
31 changes: 31 additions & 0 deletions mis_template_financial_report/data/mis_report_style.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<odoo>
<record id="style_default" model="mis.report.style">
<field name="name">PL/BS default</field>
<field name="dp_inherit">false</field>
<field name="dp">2</field>
<field name="hide_empty_inherit">false</field>
<field name="hide_empty">true</field>
</record>
<record id="style_header" model="mis.report.style">
<field name="name">PL/BS header</field>
<field name="font_weight_inherit">false</field>
<field name="font_weight">bold</field>
</record>
<record id="style_details_double_indent" model="mis.report.style">
<field name="name">PL/BS double indented details</field>
<field name="indent_level_inherit">false</field>
<field name="indent_level">2</field>
</record>
<record id="style_header_indent" model="mis.report.style">
<field name="name">PL/BS indented header</field>
<field name="font_weight_inherit">false</field>
<field name="font_weight">bold</field>
<field name="indent_level_inherit">false</field>
<field name="indent_level">1</field>
</record>
<record id="style_details" model="mis.report.style">
<field name="name">PL/BS details</field>
<field name="indent_level_inherit">false</field>
<field name="indent_level">1</field>
</record>
</odoo>
7 changes: 7 additions & 0 deletions mis_template_financial_report/data/mis_report_subreport.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<odoo>
<record id="subreport_pl" model="mis.report.subreport">
<field name="report_id" ref="report_bs" />
<field name="subreport_id" ref="report_pl" />
<field name="name">subreport_pl</field>
</record>
</odoo>
Loading
Loading