From 754ef41e4ffdb61eba81434eca56ba1df64e8f65 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Tue, 27 Aug 2024 17:16:18 +0100 Subject: [PATCH] [MIG] mis_builder_demo: pre-commit auto fixes --- .pre-commit-config.yaml | 1 - mis_builder_demo/README.rst | 99 ++++++++++--------- mis_builder_demo/__manifest__.py | 9 +- mis_builder_demo/readme/CONTRIBUTORS.md | 3 + mis_builder_demo/readme/CONTRIBUTORS.rst | 3 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 0 mis_builder_demo/readme/HISTORY.md | 49 +++++++++ mis_builder_demo/readme/HISTORY.rst | 53 ---------- mis_builder_demo/readme/ROADMAP.md | 5 + mis_builder_demo/readme/ROADMAP.rst | 3 - mis_builder_demo/readme/USAGE.md | 10 ++ mis_builder_demo/readme/USAGE.rst | 10 -- .../static/description/index.html | 66 +++++++------ 13 files changed, 159 insertions(+), 152 deletions(-) create mode 100644 mis_builder_demo/readme/CONTRIBUTORS.md delete mode 100644 mis_builder_demo/readme/CONTRIBUTORS.rst rename mis_builder_demo/readme/{DESCRIPTION.rst => DESCRIPTION.md} (100%) create mode 100644 mis_builder_demo/readme/HISTORY.md delete mode 100644 mis_builder_demo/readme/HISTORY.rst create mode 100644 mis_builder_demo/readme/ROADMAP.md delete mode 100644 mis_builder_demo/readme/ROADMAP.rst create mode 100644 mis_builder_demo/readme/USAGE.md delete mode 100644 mis_builder_demo/readme/USAGE.rst diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aafee5e1f..1b12aaf20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,6 @@ exclude: | (?x) # NOT INSTALLABLE ADDONS - ^mis_builder_demo/| # END NOT INSTALLABLE ADDONS # Files and folders generated by bots, to avoid loops ^setup/|/static/description/index\.html$| diff --git a/mis_builder_demo/README.rst b/mis_builder_demo/README.rst index 026952cef..202252730 100644 --- a/mis_builder_demo/README.rst +++ b/mis_builder_demo/README.rst @@ -17,13 +17,13 @@ MIS Builder Demo :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmis--builder-lightgray.png?logo=github - :target: https://github.com/OCA/mis-builder/tree/16.0/mis_builder_demo + :target: https://github.com/OCA/mis-builder/tree/17.0/mis_builder_demo :alt: OCA/mis-builder .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/mis-builder-16-0/mis-builder-16-0-mis_builder_demo + :target: https://translation.odoo-community.org/projects/mis-builder-17-0/mis-builder-17-0-mis_builder_demo :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/mis-builder&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/mis-builder&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -46,77 +46,80 @@ Usage This module provide the following demo data based on the Odoo generic chart of accounts: -* A few styles. -* A budget. -* A report template showing expenses by category -* A sample committed purchase view model, showing uninvoiced purchase - order lines and draft invoice lines. -* A report instance showing budget, committed purchases, actuals - and available. +- A few styles. +- A budget. +- A report template showing expenses by category +- A sample committed purchase view model, showing uninvoiced purchase + order lines and draft invoice lines. +- A report instance showing budget, committed purchases, actuals and + available. 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. Changelog ========= 16.0.1.0.0 (2023-04-01) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- **Features** -- Migration to 16.0. - - - removal of analytic fetures because the upstream ``analytic_distribution`` mechanism - is not compatible; support may be introduced in separate module, depending on use - cases (`#472 `_) +- Migration to 16.0. + - removal of analytic fetures because the upstream + ``analytic_distribution`` mechanism is not compatible; support may + be introduced in separate module, depending on use cases + (`#472 `__) 13.0.3.1.2 (2020-04-22) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- **Bugfixes** -- Fix currency rate in uninvoiced purchases. (`#274 `_) - +- Fix currency rate in uninvoiced purchases. + (`#274 `__) 13.0.3.1.0 (2020-01-??) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- Migration to odoo 13.0. 12.0.3.1.0 (2019-10-26) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- **Features** -- Handle multi currency for commited purchase view. The amount in this - view are now converted to the base currency (the one with rate 1), - so summing them has some meaning. As a consequence, this view has - less usefulness if the company currency is not the one with rate 1, - Debit and credit being assumed to be in company currency. - - Add the M2M to account.analytic.tag in the commited purchase view. +- Handle multi currency for commited purchase view. The amount in this + view are now converted to the base currency (the one with rate 1), so + summing them has some meaning. As a consequence, this view has less + usefulness if the company currency is not the one with rate 1, Debit + and credit being assumed to be in company currency. - Fix sign issue in commited purchase view. + Add the M2M to account.analytic.tag in the commited purchase view. - Include customer invoice in commited purchase view. The view is therefore - not only about purchases anymore. This should not be an issue because - GL accounts are differents for purchases and income anyway and generally - used in different KPI. + Fix sign issue in commited purchase view. - These are breaking changes. Change the status of ``mis_builder_demo`` to alpha, - since it is a demo module and it's content can change at any time without - any compatibility guarantees. (`#222 `_) + Include customer invoice in commited purchase view. The view is + therefore not only about purchases anymore. This should not be an + issue because GL accounts are differents for purchases and income + anyway and generally used in different KPI. + These are breaking changes. Change the status of ``mis_builder_demo`` + to alpha, since it is a demo module and it's content can change at + any time without any compatibility guarantees. + (`#222 `__) **Bugfixes** -- Fix date casting error on committed expenses drilldown. (`#185 `_) +- Fix date casting error on committed expenses drilldown. + (`#185 `__) Bug Tracker =========== @@ -124,7 +127,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. @@ -132,19 +135,19 @@ Credits ======= Authors -~~~~~~~ +------- * ACSONE SA/NV Contributors -~~~~~~~~~~~~ +------------ -* Stéphane Bidoul -* Arnaud Pineux -* Dzung Tran +- Stéphane Bidoul +- Arnaud Pineux +- Dzung Tran Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -164,6 +167,6 @@ Current `maintainer `__: |maintainer-sbidoul| -This module is part of the `OCA/mis-builder `_ project on GitHub. +This module is part of the `OCA/mis-builder `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mis_builder_demo/__manifest__.py b/mis_builder_demo/__manifest__.py index 82edfcd5e..dfb22bdd1 100644 --- a/mis_builder_demo/__manifest__.py +++ b/mis_builder_demo/__manifest__.py @@ -3,11 +3,10 @@ { "name": "MIS Builder Demo", - "summary": """ - Demo addon for MIS Builder""", - "version": "16.0.1.0.2", + "summary": "Demo addon for MIS Builder", + "version": "17.0.1.0.0", "license": "AGPL-3", - "author": "ACSONE SA/NV, " "Odoo Community Association (OCA)", + "author": "ACSONE SA/NV, Odoo Community Association (OCA)", "website": "https://github.com/OCA/mis-builder", "depends": ["mis_builder_budget", "purchase"], "data": [ @@ -18,7 +17,7 @@ "data/mis_budget.xml", "data/mis_report_instance.xml", ], - "installable": False, + "installable": True, "maintainers": ["sbidoul"], "development_status": "Alpha", } diff --git a/mis_builder_demo/readme/CONTRIBUTORS.md b/mis_builder_demo/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..9af37c9d5 --- /dev/null +++ b/mis_builder_demo/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Stéphane Bidoul \<\> +- Arnaud Pineux \<\> +- Dzung Tran \<\> diff --git a/mis_builder_demo/readme/CONTRIBUTORS.rst b/mis_builder_demo/readme/CONTRIBUTORS.rst deleted file mode 100644 index c26f7842e..000000000 --- a/mis_builder_demo/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,3 +0,0 @@ -* Stéphane Bidoul -* Arnaud Pineux -* Dzung Tran diff --git a/mis_builder_demo/readme/DESCRIPTION.rst b/mis_builder_demo/readme/DESCRIPTION.md similarity index 100% rename from mis_builder_demo/readme/DESCRIPTION.rst rename to mis_builder_demo/readme/DESCRIPTION.md diff --git a/mis_builder_demo/readme/HISTORY.md b/mis_builder_demo/readme/HISTORY.md new file mode 100644 index 000000000..733cc775d --- /dev/null +++ b/mis_builder_demo/readme/HISTORY.md @@ -0,0 +1,49 @@ +## 16.0.1.0.0 (2023-04-01) + +**Features** + +- Migration to 16.0. + - removal of analytic fetures because the upstream + `analytic_distribution` mechanism is not compatible; support may be + introduced in separate module, depending on use cases + ([\#472](https://github.com/OCA/mis-builder/issues/472)) + +## 13.0.3.1.2 (2020-04-22) + +**Bugfixes** + +- Fix currency rate in uninvoiced purchases. + ([\#274](https://github.com/OCA/mis-builder/issues/274)) + +## 13.0.3.1.0 (2020-01-??) + +Migration to odoo 13.0. + +## 12.0.3.1.0 (2019-10-26) + +**Features** + +- Handle multi currency for commited purchase view. The amount in this + view are now converted to the base currency (the one with rate 1), so + summing them has some meaning. As a consequence, this view has less + usefulness if the company currency is not the one with rate 1, Debit + and credit being assumed to be in company currency. + + Add the M2M to account.analytic.tag in the commited purchase view. + + Fix sign issue in commited purchase view. + + Include customer invoice in commited purchase view. The view is + therefore not only about purchases anymore. This should not be an + issue because GL accounts are differents for purchases and income + anyway and generally used in different KPI. + + These are breaking changes. Change the status of `mis_builder_demo` to + alpha, since it is a demo module and it's content can change at any + time without any compatibility guarantees. + ([\#222](https://github.com/oca/mis-builder/issues/222)) + +**Bugfixes** + +- Fix date casting error on committed expenses drilldown. + ([\#185](https://github.com/oca/mis-builder/issues/185)) diff --git a/mis_builder_demo/readme/HISTORY.rst b/mis_builder_demo/readme/HISTORY.rst deleted file mode 100644 index 4b9037e2c..000000000 --- a/mis_builder_demo/readme/HISTORY.rst +++ /dev/null @@ -1,53 +0,0 @@ -16.0.1.0.0 (2023-04-01) -~~~~~~~~~~~~~~~~~~~~~~~ - -**Features** - -- Migration to 16.0. - - - removal of analytic fetures because the upstream ``analytic_distribution`` mechanism - is not compatible; support may be introduced in separate module, depending on use - cases (`#472 `_) - - -13.0.3.1.2 (2020-04-22) -~~~~~~~~~~~~~~~~~~~~~~~ - -**Bugfixes** - -- Fix currency rate in uninvoiced purchases. (`#274 `_) - - -13.0.3.1.0 (2020-01-??) -~~~~~~~~~~~~~~~~~~~~~~~ - -Migration to odoo 13.0. - -12.0.3.1.0 (2019-10-26) -~~~~~~~~~~~~~~~~~~~~~~~ - -**Features** - -- Handle multi currency for commited purchase view. The amount in this - view are now converted to the base currency (the one with rate 1), - so summing them has some meaning. As a consequence, this view has - less usefulness if the company currency is not the one with rate 1, - Debit and credit being assumed to be in company currency. - - Add the M2M to account.analytic.tag in the commited purchase view. - - Fix sign issue in commited purchase view. - - Include customer invoice in commited purchase view. The view is therefore - not only about purchases anymore. This should not be an issue because - GL accounts are differents for purchases and income anyway and generally - used in different KPI. - - These are breaking changes. Change the status of ``mis_builder_demo`` to alpha, - since it is a demo module and it's content can change at any time without - any compatibility guarantees. (`#222 `_) - - -**Bugfixes** - -- Fix date casting error on committed expenses drilldown. (`#185 `_) diff --git a/mis_builder_demo/readme/ROADMAP.md b/mis_builder_demo/readme/ROADMAP.md new file mode 100644 index 000000000..432d71e05 --- /dev/null +++ b/mis_builder_demo/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_demo/readme/ROADMAP.rst b/mis_builder_demo/readme/ROADMAP.rst deleted file mode 100644 index ef4e2d78a..000000000 --- a/mis_builder_demo/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_demo/readme/USAGE.md b/mis_builder_demo/readme/USAGE.md new file mode 100644 index 000000000..781fa650a --- /dev/null +++ b/mis_builder_demo/readme/USAGE.md @@ -0,0 +1,10 @@ +This module provide the following demo data based on the Odoo generic +chart of accounts: + +- A few styles. +- A budget. +- A report template showing expenses by category +- A sample committed purchase view model, showing uninvoiced purchase + order lines and draft invoice lines. +- A report instance showing budget, committed purchases, actuals and + available. diff --git a/mis_builder_demo/readme/USAGE.rst b/mis_builder_demo/readme/USAGE.rst deleted file mode 100644 index 644ad0189..000000000 --- a/mis_builder_demo/readme/USAGE.rst +++ /dev/null @@ -1,10 +0,0 @@ -This module provide the following demo data based on the Odoo generic -chart of accounts: - -* A few styles. -* A budget. -* A report template showing expenses by category -* A sample committed purchase view model, showing uninvoiced purchase - order lines and draft invoice lines. -* A report instance showing budget, committed purchases, actuals - and available. diff --git a/mis_builder_demo/static/description/index.html b/mis_builder_demo/static/description/index.html index bc76b4404..b5863c8e5 100644 --- a/mis_builder_demo/static/description/index.html +++ b/mis_builder_demo/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 @@ 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.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,7 +369,7 @@

MIS Builder Demo

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:b01c4eb68c27939c99fc2380d0af3e58e047cef88ae51e3f2815f372f0aad160 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Alpha License: AGPL-3 OCA/mis-builder Translate me on Weblate Try me on Runboat

+

Alpha License: AGPL-3 OCA/mis-builder Translate me on Weblate Try me on Runboat

Demo addon for MIS Builder.

Important

@@ -408,15 +408,17 @@

Usage

  • A report template showing expenses by category
  • A sample committed purchase view model, showing uninvoiced purchase order lines and draft invoice lines.
  • -
  • A report instance showing budget, committed purchases, actuals -and available.
  • +
  • A report instance showing budget, committed purchases, actuals and +available.
  • 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.

    Changelog

    @@ -425,9 +427,10 @@

    16.0.1.0.0 (2023-04-01)

    Features

    • Migration to 16.0.
        -
      • removal of analytic fetures because the upstream analytic_distribution mechanism -is not compatible; support may be introduced in separate module, depending on use -cases (#472)
      • +
      • removal of analytic fetures because the upstream +analytic_distribution mechanism is not compatible; support may +be introduced in separate module, depending on use cases +(#472)
    @@ -436,7 +439,8 @@

    16.0.1.0.0 (2023-04-01)

    13.0.3.1.2 (2020-04-22)

    Bugfixes

      -
    • Fix currency rate in uninvoiced purchases. (#274)
    • +
    • Fix currency rate in uninvoiced purchases. +(#274)
    @@ -448,24 +452,26 @@

    12.0.3.1.0 (2019-10-26)

    Features

    • Handle multi currency for commited purchase view. The amount in this -view are now converted to the base currency (the one with rate 1), -so summing them has some meaning. As a consequence, this view has -less usefulness if the company currency is not the one with rate 1, -Debit and credit being assumed to be in company currency.

      +view are now converted to the base currency (the one with rate 1), so +summing them has some meaning. As a consequence, this view has less +usefulness if the company currency is not the one with rate 1, Debit +and credit being assumed to be in company currency.

      Add the M2M to account.analytic.tag in the commited purchase view.

      Fix sign issue in commited purchase view.

      -

      Include customer invoice in commited purchase view. The view is therefore -not only about purchases anymore. This should not be an issue because -GL accounts are differents for purchases and income anyway and generally -used in different KPI.

      -

      These are breaking changes. Change the status of mis_builder_demo to alpha, -since it is a demo module and it’s content can change at any time without -any compatibility guarantees. (#222)

      +

      Include customer invoice in commited purchase view. The view is +therefore not only about purchases anymore. This should not be an +issue because GL accounts are differents for purchases and income +anyway and generally used in different KPI.

      +

      These are breaking changes. Change the status of mis_builder_demo +to alpha, since it is a demo module and it’s content can change at +any time without any compatibility guarantees. +(#222)

    Bugfixes

      -
    • Fix date casting error on committed expenses drilldown. (#185)
    • +
    • Fix date casting error on committed expenses drilldown. +(#185)
    @@ -474,7 +480,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.

    @@ -496,13 +502,15 @@

    Contributors

    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:

    sbidoul

    -

    This module is part of the OCA/mis-builder project on GitHub.

    +

    This module is part of the OCA/mis-builder project on GitHub.

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