-
-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
33 changed files
with
1,570 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:35e3ad836c47238b09fe511febcb806bafddc4699aedb0e224e55517c31128d0 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 & 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.