diff --git a/l10n_us_mis_financial_report/README.rst b/l10n_us_mis_financial_report/README.rst new file mode 100644 index 00000000..0d33a80e --- /dev/null +++ b/l10n_us_mis_financial_report/README.rst @@ -0,0 +1,91 @@ +===================================================== +Profit & Loss (US) / Balance sheet (US) 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%2Fl10n--usa-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-usa/tree/16.0/l10n_us_mis_financial_report + :alt: OCA/l10n-usa +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/l10n-usa-16-0/l10n-usa-16-0-l10n_us_mis_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/l10n-usa&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This addon provides MIS builder templates to generate generic (US) Profit & Loss and Balance Sheet reports based on account types. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Select one of the `Profit & Loss (US)` or `Balance Sheet (US)` templates in a new MIS report. + +For details, refer to the `MIS Builder documentation `_ + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Binhex + +Contributors +~~~~~~~~~~~~ + +* Christian Ramos (https://binhex.cloud) + +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-Christian-RB| image:: https://github.com/Christian-RB.png?size=40px + :target: https://github.com/Christian-RB + :alt: Christian-RB + +Current `maintainer `__: + +|maintainer-Christian-RB| + +This module is part of the `OCA/l10n-usa `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_us_mis_financial_report/__init__.py b/l10n_us_mis_financial_report/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/l10n_us_mis_financial_report/__manifest__.py b/l10n_us_mis_financial_report/__manifest__.py new file mode 100644 index 00000000..be54e55d --- /dev/null +++ b/l10n_us_mis_financial_report/__manifest__.py @@ -0,0 +1,18 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Profit & Loss (US) / Balance sheet (US) MIS templates", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "Binhex,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/l10n-usa", + "category": "Localization", + "depends": ["mis_template_financial_report"], + "data": [ + "data/mis_report_style.xml", + "data/mis_report.xml", + "data/mis_report_kpi.xml", + "data/mis_report_subreport.xml", + ], + "maintainers": ["Christian-RB"], +} diff --git a/l10n_us_mis_financial_report/data/mis_report.xml b/l10n_us_mis_financial_report/data/mis_report.xml new file mode 100644 index 00000000..2dd3bad0 --- /dev/null +++ b/l10n_us_mis_financial_report/data/mis_report.xml @@ -0,0 +1,10 @@ + + + Profit & Loss (US) + + + + Balance Sheet (US) + + + diff --git a/l10n_us_mis_financial_report/data/mis_report_kpi.xml b/l10n_us_mis_financial_report/data/mis_report_kpi.xml new file mode 100644 index 00000000..37510726 --- /dev/null +++ b/l10n_us_mis_financial_report/data/mis_report_kpi.xml @@ -0,0 +1,532 @@ + + + + net_profit + Net Profit + op_inc + other_inc - cost_of_reven - expenses - depreciation + + num + diff + sum + 0 + + + + income + Income + op_inc + other_inc + + num + diff + sum + 1 + + + + gross_profit + Gross Profit + op_inc - cost_of_reven + + num + diff + sum + 2 + + + + op_inc + Operating Income + -balp[('account_type', '=', 'income')][] + true + + + num + diff + sum + 3 + + + + + cost_of_reven + Cost of Revenue + balp[('account_type', '=', 'expense_direct_cost')][] + true + + + num + diff + sum + 4 + + + + + other_inc + Other Income + -balp[('account_type', '=', 'income_other')][] + true + + + num + diff + sum + 5 + + + + + expenses_total + Expenses + expenses + depreciation + + num + diff + sum + 6 + + + + expenses + Expenses + balp[('account_type', '=', 'expense')][] + true + + + num + diff + sum + 7 + + + + + depreciation + Depreciation + balp[('account_type', '=', 'expense_depreciation')][] + true + + + num + diff + sum + 8 + + + + + + + assets + Assets + current_assets + fixed_assets + non_current_assets + false + + num + diff + sum + 0 + + + + current_assets + Current Assets + bank_and_cash_accounts + receivables + current_assets_ca + prepayments + false + + num + diff + sum + 1 + + + + bank_and_cash_accounts + Bank and Cash Accounts + bale[('account_type', '=', 'asset_cash')] + true + + + num + diff + sum + 2 + + + + + receivables + Receivables + bale[('account_type', '=', 'asset_receivable'), ('non_trade', '=', False)] + true + + + num + diff + sum + 3 + + + + + current_assets_ca + Current Assets + bale['|',('account_type', '=', 'asset_current'), '&', ('account_type', '=', 'asset_receivable'), ('non_trade', '=', True)] + true + + + num + diff + sum + 4 + + + + + prepayments + Prepayments + bale[('account_type', '=', 'asset_prepayments')] + true + + + num + diff + sum + 5 + + + + + fixed_assets + Plus Fixed Assets + bale[('account_type', '=', 'asset_fixed')] + true + + + num + diff + sum + 6 + + + + + non_current_assets + Plus Non-current Assets + bale[('account_type', '=', 'asset_non_current')] + true + + + num + diff + sum + 7 + + + + + liability_header + LIABILITY + abs(liability + non_current_liabilities) + false + + num + diff + sum + 8 + + + + liability + Current Liabilities + abs(current_liabilities_1 + payables) + true + + num + diff + sum + 9 + + + + current_liabilities_1 + Current Liabilities + abs(bale['|', ('account_type', 'in', ('liability_current', 'liability_credit_card')), '&', ('account_type', '=', 'liability_payable'), ('non_trade', '=', True)]) + true + + + num + diff + sum + 10 + + + + + payables + Payables + abs(bale[('account_type', '=', 'liability_payable'), ('non_trade', '=', False)]) + true + + + num + diff + sum + 11 + + + + + non_current_liabilities + Plus Non-current Liabilities + abs(bale[('account_type', '=', 'liability_non_current')]) + true + + + num + diff + sum + 12 + + + + + equity + EQUITY + unallocated_earnings+retained_earning + false + + num + diff + sum + 13 + + + + unallocated_earnings + Unallocated Earnings + current_year_unallocated+previous_years_unallocated_earnings + false + + num + diff + sum + 14 + + + + current_year_unallocated + Current Year Unallocated Earnings + current_year_earnings+current_year_allocated_earnings + false + + num + diff + sum + 15 + + + + current_year_earnings + Current Year Earnings + subreport_pl_us.net_profit + false + + num + diff + sum + 16 + + + + current_year_allocated_earnings + Current Year Allocated Earnings + -balp[('account_type', '=', 'equity_unaffected')] + true + + + num + diff + sum + 17 + + + + + previous_years_unallocated_earnings + Previous Years Unallocated Earnings + balance_domain+allocated_earnings-current_year_unallocated + false + + num + diff + sum + 18 + + + + retained_earning + Retained Earning + -bale[('account_type', '=', 'equity')] + true + + + num + diff + sum + 19 + + + + + liabilities_equity + LIABILITIES + EQUITY + liability_header+equity + false + + num + diff + sum + 20 + + + + os + OFF BALANCE SHEET ACCOUNTS + abs(bale[('account_type', '=', 'off_balance')]) + true + + + num + diff + sum + 21 + + + + + allocated_earnings + Allocated earnings + -bale[('account_type', '=', 'equity_unaffected')] + false + + num + diff + sum + 22 + + + + + balance_domain + Balance Domain + -(balu[('account_type', 'in', ('income', 'income_other', 'expense_direct_cost', 'expense', 'expense_depreciation'))]+balp[('account_type', 'in', ('income', 'income_other', 'expense_direct_cost', 'expense', 'expense_depreciation'))]) + false + + num + diff + sum + 23 + + + + diff --git a/l10n_us_mis_financial_report/data/mis_report_style.xml b/l10n_us_mis_financial_report/data/mis_report_style.xml new file mode 100644 index 00000000..44cd48e3 --- /dev/null +++ b/l10n_us_mis_financial_report/data/mis_report_style.xml @@ -0,0 +1,32 @@ + + + + PL/BS double indented header + false + bold + false + 2 + + + PL/BS triple indented header + false + bold + false + 3 + + + PL/BS triple indented details + false + 3 + + + PL/BS cuadruple indented details + false + 4 + + + Hide + false + true + + diff --git a/l10n_us_mis_financial_report/data/mis_report_subreport.xml b/l10n_us_mis_financial_report/data/mis_report_subreport.xml new file mode 100644 index 00000000..5236e7de --- /dev/null +++ b/l10n_us_mis_financial_report/data/mis_report_subreport.xml @@ -0,0 +1,7 @@ + + + + + subreport_pl_us + + diff --git a/l10n_us_mis_financial_report/readme/CONTRIBUTORS.rst b/l10n_us_mis_financial_report/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..de56646d --- /dev/null +++ b/l10n_us_mis_financial_report/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Christian Ramos (https://binhex.cloud) diff --git a/l10n_us_mis_financial_report/readme/DESCRIPTION.rst b/l10n_us_mis_financial_report/readme/DESCRIPTION.rst new file mode 100644 index 00000000..6ee9fbef --- /dev/null +++ b/l10n_us_mis_financial_report/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This addon provides MIS builder templates to generate generic (US) Profit & Loss and Balance Sheet reports based on account types. diff --git a/l10n_us_mis_financial_report/readme/USAGE.rst b/l10n_us_mis_financial_report/readme/USAGE.rst new file mode 100644 index 00000000..e0556ad5 --- /dev/null +++ b/l10n_us_mis_financial_report/readme/USAGE.rst @@ -0,0 +1,3 @@ +Select one of the `Profit & Loss (US)` or `Balance Sheet (US)` templates in a new MIS report. + +For details, refer to the `MIS Builder documentation `_ diff --git a/l10n_us_mis_financial_report/readme/newsfragments/.gitkeep b/l10n_us_mis_financial_report/readme/newsfragments/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/l10n_us_mis_financial_report/static/description/icon.png b/l10n_us_mis_financial_report/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/l10n_us_mis_financial_report/static/description/icon.png differ diff --git a/l10n_us_mis_financial_report/static/description/index.html b/l10n_us_mis_financial_report/static/description/index.html new file mode 100644 index 00000000..c2a9ba51 --- /dev/null +++ b/l10n_us_mis_financial_report/static/description/index.html @@ -0,0 +1,431 @@ + + + + + +Profit & Loss (US) / Balance sheet (US) MIS templates + + + +
+

Profit & Loss (US) / Balance sheet (US) MIS templates

+ + +

Beta License: AGPL-3 OCA/l10n-usa Translate me on Weblate Try me on Runboat

+

This addon provides MIS builder templates to generate generic (US) Profit & Loss and Balance Sheet reports based on account types.

+

Table of contents

+ +
+

Usage

+

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

+

For details, refer to the MIS Builder documentation

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Binhex
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

Christian-RB

+

This module is part of the OCA/l10n-usa project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/setup/l10n_us_mis_financial_report/odoo/addons/l10n_us_mis_financial_report b/setup/l10n_us_mis_financial_report/odoo/addons/l10n_us_mis_financial_report new file mode 120000 index 00000000..9ee9fa93 --- /dev/null +++ b/setup/l10n_us_mis_financial_report/odoo/addons/l10n_us_mis_financial_report @@ -0,0 +1 @@ +../../../../l10n_us_mis_financial_report \ No newline at end of file diff --git a/setup/l10n_us_mis_financial_report/setup.py b/setup/l10n_us_mis_financial_report/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/l10n_us_mis_financial_report/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)