From f0c9d156ae67ac378274ea5097deb9a300d40765 Mon Sep 17 00:00:00 2001 From: Christopher Ormaza Date: Tue, 24 Sep 2024 10:22:02 -0500 Subject: [PATCH] [IMP] mis_builder_cash_flow: pre-commit auto fixes --- mis_builder_cash_flow/README.rst | 58 ++++++++++--------- .../models/account_account.py | 1 - mis_builder_cash_flow/pyproject.toml | 3 + mis_builder_cash_flow/readme/CONTRIBUTORS.md | 5 ++ mis_builder_cash_flow/readme/CONTRIBUTORS.rst | 6 -- mis_builder_cash_flow/readme/DESCRIPTION.md | 6 ++ mis_builder_cash_flow/readme/DESCRIPTION.rst | 5 -- mis_builder_cash_flow/readme/ROADMAP.md | 5 ++ mis_builder_cash_flow/readme/ROADMAP.rst | 3 - mis_builder_cash_flow/readme/USAGE.md | 11 ++++ mis_builder_cash_flow/readme/USAGE.rst | 8 --- mis_builder_cash_flow/report/mis_cash_flow.py | 1 - .../static/description/index.html | 44 ++++++++------ 13 files changed, 88 insertions(+), 68 deletions(-) create mode 100644 mis_builder_cash_flow/pyproject.toml create mode 100644 mis_builder_cash_flow/readme/CONTRIBUTORS.md delete mode 100644 mis_builder_cash_flow/readme/CONTRIBUTORS.rst create mode 100644 mis_builder_cash_flow/readme/DESCRIPTION.md delete mode 100644 mis_builder_cash_flow/readme/DESCRIPTION.rst create mode 100644 mis_builder_cash_flow/readme/ROADMAP.md delete mode 100644 mis_builder_cash_flow/readme/ROADMAP.rst create mode 100644 mis_builder_cash_flow/readme/USAGE.md delete mode 100644 mis_builder_cash_flow/readme/USAGE.rst diff --git a/mis_builder_cash_flow/README.rst b/mis_builder_cash_flow/README.rst index 78952b3d..67e2b74a 100644 --- a/mis_builder_cash_flow/README.rst +++ b/mis_builder_cash_flow/README.rst @@ -17,22 +17,23 @@ MIS Builder Cash Flow :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/16.0/mis_builder_cash_flow + :target: https://github.com/OCA/account-financial-reporting/tree/17.0/mis_builder_cash_flow :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-16-0/account-financial-reporting-16-0-mis_builder_cash_flow + :target: https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-mis_builder_cash_flow :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=16.0 + :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 module allows you to have a cash flow forecast. -The forecast is based on two types of date: +This module allows you to have a cash flow forecast. The forecast is +based on two types of date: -* Accounting entries: Due date field instead of Date -* Forecast lines: manual lines created that forecast in/out cashflow moves. +- Accounting entries: Due date field instead of Date +- Forecast lines: manual lines created that forecast in/out cashflow + moves. **Table of contents** @@ -44,19 +45,24 @@ Usage To use this module, you need to: -#. Go to Accounting > Reports > MIS Reporting > MIS Reports and choose "Cash Flow" report -#. You can add forecast lines on Accounting > Reports > MIS Reporting > Cash Flow Forecast Line -#. If you select on "Target Moves" the value "All Posted Entries", you will get only - lines for already posted invoices/entries + the forecast lines. -#. Selecting "All Entries", draft invoices/entries are also included. -#. In any case, cancelled invoices/entries are not included. +1. Go to Accounting > Reports > MIS Reporting > MIS Reports and choose + "Cash Flow" report +2. You can add forecast lines on Accounting > Reports > MIS Reporting > + Cash Flow Forecast Line +3. If you select on "Target Moves" the value "All Posted Entries", you + will get only lines for already posted invoices/entries + the + forecast lines. +4. Selecting "All Entries", draft invoices/entries are also included. +5. In any case, cancelled invoices/entries are not included. Known issues / Roadmap ====================== -The mis_builder `roadmap `_ -and `known issues `_ can -be found on GitHub. +The mis_builder +`roadmap `__ +and `known +issues `__ +can be found on GitHub. Bug Tracker =========== @@ -64,7 +70,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -72,22 +78,22 @@ Credits ======= Authors -~~~~~~~ +------- * ADHOC SA Contributors -~~~~~~~~~~~~ +------------ -* Juan José Scarafía -* Gonzalo Ruzafa -* Alberto Martín -* `Tecnativa `_: +- Juan José Scarafía +- Gonzalo Ruzafa +- Alberto Martín +- `Tecnativa `__: - * Pedro M. Baeza + - Pedro M. Baeza Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -107,6 +113,6 @@ Current `maintainer `__: |maintainer-jjscarafia| -This module is part of the `OCA/account-financial-reporting `_ project on GitHub. +This module is part of the `OCA/account-financial-reporting `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mis_builder_cash_flow/models/account_account.py b/mis_builder_cash_flow/models/account_account.py index 3c06494d..fe7653b5 100644 --- a/mis_builder_cash_flow/models/account_account.py +++ b/mis_builder_cash_flow/models/account_account.py @@ -4,7 +4,6 @@ from odoo import fields, models class AccountAccount(models.Model): - _inherit = "account.account" hide_in_cash_flow = fields.Boolean(string="Hide in Cash Flow?") diff --git a/mis_builder_cash_flow/pyproject.toml b/mis_builder_cash_flow/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/mis_builder_cash_flow/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/mis_builder_cash_flow/readme/CONTRIBUTORS.md b/mis_builder_cash_flow/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..93cc1332 --- /dev/null +++ b/mis_builder_cash_flow/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- Juan José Scarafía \<\> +- Gonzalo Ruzafa \<\> +- Alberto Martín \<\> +- [Tecnativa](https://www.tecnativa.com): + - Pedro M. Baeza diff --git a/mis_builder_cash_flow/readme/CONTRIBUTORS.rst b/mis_builder_cash_flow/readme/CONTRIBUTORS.rst deleted file mode 100644 index 6c0f8064..00000000 --- a/mis_builder_cash_flow/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,6 +0,0 @@ -* Juan José Scarafía -* Gonzalo Ruzafa -* Alberto Martín -* `Tecnativa `_: - - * Pedro M. Baeza diff --git a/mis_builder_cash_flow/readme/DESCRIPTION.md b/mis_builder_cash_flow/readme/DESCRIPTION.md new file mode 100644 index 00000000..0c482e61 --- /dev/null +++ b/mis_builder_cash_flow/readme/DESCRIPTION.md @@ -0,0 +1,6 @@ +This module allows you to have a cash flow forecast. The forecast is +based on two types of date: + +- Accounting entries: Due date field instead of Date +- Forecast lines: manual lines created that forecast in/out cashflow + moves. diff --git a/mis_builder_cash_flow/readme/DESCRIPTION.rst b/mis_builder_cash_flow/readme/DESCRIPTION.rst deleted file mode 100644 index 4ffe5d7a..00000000 --- a/mis_builder_cash_flow/readme/DESCRIPTION.rst +++ /dev/null @@ -1,5 +0,0 @@ -This module allows you to have a cash flow forecast. -The forecast is based on two types of date: - -* Accounting entries: Due date field instead of Date -* Forecast lines: manual lines created that forecast in/out cashflow moves. diff --git a/mis_builder_cash_flow/readme/ROADMAP.md b/mis_builder_cash_flow/readme/ROADMAP.md new file mode 100644 index 00000000..4a70d78f --- /dev/null +++ b/mis_builder_cash_flow/readme/ROADMAP.md @@ -0,0 +1,5 @@ +The mis_builder +[roadmap](https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement) +and [known +issues](https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Abug) +can be found on GitHub. diff --git a/mis_builder_cash_flow/readme/ROADMAP.rst b/mis_builder_cash_flow/readme/ROADMAP.rst deleted file mode 100644 index 085352cd..00000000 --- a/mis_builder_cash_flow/readme/ROADMAP.rst +++ /dev/null @@ -1,3 +0,0 @@ -The mis_builder `roadmap `_ -and `known issues `_ can -be found on GitHub. diff --git a/mis_builder_cash_flow/readme/USAGE.md b/mis_builder_cash_flow/readme/USAGE.md new file mode 100644 index 00000000..5ac955ce --- /dev/null +++ b/mis_builder_cash_flow/readme/USAGE.md @@ -0,0 +1,11 @@ +To use this module, you need to: + +1. Go to Accounting \> Reports \> MIS Reporting \> MIS Reports and + choose "Cash Flow" report +2. You can add forecast lines on Accounting \> Reports \> MIS Reporting + \> Cash Flow Forecast Line +3. If you select on "Target Moves" the value "All Posted Entries", you + will get only lines for already posted invoices/entries + the + forecast lines. +4. Selecting "All Entries", draft invoices/entries are also included. +5. In any case, cancelled invoices/entries are not included. diff --git a/mis_builder_cash_flow/readme/USAGE.rst b/mis_builder_cash_flow/readme/USAGE.rst deleted file mode 100644 index 4de3545e..00000000 --- a/mis_builder_cash_flow/readme/USAGE.rst +++ /dev/null @@ -1,8 +0,0 @@ -To use this module, you need to: - -#. Go to Accounting > Reports > MIS Reporting > MIS Reports and choose "Cash Flow" report -#. You can add forecast lines on Accounting > Reports > MIS Reporting > Cash Flow Forecast Line -#. If you select on "Target Moves" the value "All Posted Entries", you will get only - lines for already posted invoices/entries + the forecast lines. -#. Selecting "All Entries", draft invoices/entries are also included. -#. In any case, cancelled invoices/entries are not included. diff --git a/mis_builder_cash_flow/report/mis_cash_flow.py b/mis_builder_cash_flow/report/mis_cash_flow.py index fbcd48ef..06e2f0e3 100644 --- a/mis_builder_cash_flow/report/mis_cash_flow.py +++ b/mis_builder_cash_flow/report/mis_cash_flow.py @@ -6,7 +6,6 @@ from odoo import fields, models, tools class MisCashFlow(models.Model): - _name = "mis.cash_flow" _description = "MIS Cash Flow" _auto = False diff --git a/mis_builder_cash_flow/static/description/index.html b/mis_builder_cash_flow/static/description/index.html index bfa8bc02..0c6aad4a 100644 --- a/mis_builder_cash_flow/static/description/index.html +++ b/mis_builder_cash_flow/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,12 +369,13 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:10cecb34c58c0bbb0d8e633c640704a68633dc689b0c873bb9fa16bea7bafead !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/account-financial-reporting Translate me on Weblate Try me on Runboat

-

This module allows you to have a cash flow forecast. -The forecast is based on two types of date:

+

Beta License: AGPL-3 OCA/account-financial-reporting Translate me on Weblate Try me on Runboat

+

This module allows you to have a cash flow forecast. The forecast is +based on two types of date:

  • Accounting entries: Due date field instead of Date
  • -
  • Forecast lines: manual lines created that forecast in/out cashflow moves.
  • +
  • Forecast lines: manual lines created that forecast in/out cashflow +moves.

Table of contents

@@ -394,26 +395,31 @@ The forecast is based on two types of date:

Usage

To use this module, you need to:

    -
  1. Go to Accounting > Reports > MIS Reporting > MIS Reports and choose “Cash Flow” report
  2. -
  3. You can add forecast lines on Accounting > Reports > MIS Reporting > Cash Flow Forecast Line
  4. -
  5. If you select on “Target Moves” the value “All Posted Entries”, you will get only -lines for already posted invoices/entries + the forecast lines.
  6. +
  7. Go to Accounting > Reports > MIS Reporting > MIS Reports and choose +“Cash Flow” report
  8. +
  9. You can add forecast lines on Accounting > Reports > MIS Reporting > +Cash Flow Forecast Line
  10. +
  11. If you select on “Target Moves” the value “All Posted Entries”, you +will get only lines for already posted invoices/entries + the +forecast lines.
  12. Selecting “All Entries”, draft invoices/entries are also included.
  13. In any case, cancelled invoices/entries are not included.

Known issues / Roadmap

-

The mis_builder roadmap -and known issues can -be found on GitHub.

+

The mis_builder +roadmap +and known +issues +can be found on GitHub.

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.

+feedback.

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

@@ -439,13 +445,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +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:

jjscarafia

-

This module is part of the OCA/account-financial-reporting project on GitHub.

+

This module is part of the OCA/account-financial-reporting project on GitHub.

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