From b80575f4ffc22ad5ed1cb55d6fed946482b3095a Mon Sep 17 00:00:00 2001 From: Camille Morand Date: Fri, 25 Nov 2022 11:33:24 +0100 Subject: [PATCH 01/12] [15.0][ADD] mis_builder_budget_product: initial commit --- mis_builder_budget_product/README.rst | 0 mis_builder_budget_product/__init__.py | 1 + mis_builder_budget_product/__manifest__.py | 17 + .../i18n/mis_builder_budget_product.pot | 26 + mis_builder_budget_product/models/__init__.py | 1 + .../models/mis_budget_by_account_item.py | 46 ++ .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 3 + mis_builder_budget_product/readme/HISTORY.rst | 0 mis_builder_budget_product/readme/ROADMAP.rst | 3 + mis_builder_budget_product/readme/USAGE.rst | 4 + .../readme/newsfragments/.gitignore | 0 .../readme/newsfragments/32.feature | 1 + .../static/description/icon.png | Bin 0 -> 4770 bytes .../static/description/index.html | 463 ++++++++++++++++++ .../views/mis_budget_by_account_item.xml | 31 ++ 16 files changed, 597 insertions(+) create mode 100644 mis_builder_budget_product/README.rst create mode 100644 mis_builder_budget_product/__init__.py create mode 100644 mis_builder_budget_product/__manifest__.py create mode 100644 mis_builder_budget_product/i18n/mis_builder_budget_product.pot create mode 100644 mis_builder_budget_product/models/__init__.py create mode 100644 mis_builder_budget_product/models/mis_budget_by_account_item.py create mode 100644 mis_builder_budget_product/readme/CONTRIBUTORS.rst create mode 100644 mis_builder_budget_product/readme/DESCRIPTION.rst create mode 100644 mis_builder_budget_product/readme/HISTORY.rst create mode 100644 mis_builder_budget_product/readme/ROADMAP.rst create mode 100644 mis_builder_budget_product/readme/USAGE.rst create mode 100644 mis_builder_budget_product/readme/newsfragments/.gitignore create mode 100644 mis_builder_budget_product/readme/newsfragments/32.feature create mode 100644 mis_builder_budget_product/static/description/icon.png create mode 100644 mis_builder_budget_product/static/description/index.html create mode 100644 mis_builder_budget_product/views/mis_budget_by_account_item.xml diff --git a/mis_builder_budget_product/README.rst b/mis_builder_budget_product/README.rst new file mode 100644 index 0000000..e69de29 diff --git a/mis_builder_budget_product/__init__.py b/mis_builder_budget_product/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/mis_builder_budget_product/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/mis_builder_budget_product/__manifest__.py b/mis_builder_budget_product/__manifest__.py new file mode 100644 index 0000000..99ff333 --- /dev/null +++ b/mis_builder_budget_product/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2022 Camptocamp SA (https://www.camptocamp.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "MIS Builder Budget Contributions", + "summary": """ + Offer more options for budgets for MIS reports""", + "version": "15.0.1.0.0", + "license": "AGPL-3", + "author": "Camptocamp, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/mis-builder-contrib", + "depends": ["mis_builder_budget"], + "data": [ + "views/mis_budget_by_account_item.xml", + ], + "installable": True, +} diff --git a/mis_builder_budget_product/i18n/mis_builder_budget_product.pot b/mis_builder_budget_product/i18n/mis_builder_budget_product.pot new file mode 100644 index 0000000..0729655 --- /dev/null +++ b/mis_builder_budget_product/i18n/mis_builder_budget_product.pot @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mis_builder_budget_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-25 10:30+0000\n" +"PO-Revision-Date: 2022-11-25 10:30+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mis_builder_budget_product +#: model:ir.model,name:mis_builder_budget_product.model_mis_budget_by_account_item +msgid "MIS Budget Item (by Account)" +msgstr "" + +#. module: mis_builder_budget_product +#: model:ir.model.fields,field_description:mis_builder_budget_product.field_mis_budget_by_account_item__product_id +msgid "Product" +msgstr "" diff --git a/mis_builder_budget_product/models/__init__.py b/mis_builder_budget_product/models/__init__.py new file mode 100644 index 0000000..e1afecd --- /dev/null +++ b/mis_builder_budget_product/models/__init__.py @@ -0,0 +1 @@ +from . import mis_budget_by_account_item diff --git a/mis_builder_budget_product/models/mis_budget_by_account_item.py b/mis_builder_budget_product/models/mis_budget_by_account_item.py new file mode 100644 index 0000000..20f5769 --- /dev/null +++ b/mis_builder_budget_product/models/mis_budget_by_account_item.py @@ -0,0 +1,46 @@ +# Copyright 2022 Camptocamp SA (https://www.camptocamp.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import api, fields, models +from odoo.osv import expression + + +class MisBudgetByAccountItem(models.Model): + + _inherit = "mis.budget.by.account.item" + _order = "budget_id, date_from, account_id, product_id" + + product_id = fields.Many2one( + comodel_name="product.product", + domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]", + ) + + def _prepare_overlap_domain(self): + # Two budget items are not overlapping if they have different products. However, + # if they are similar for every other point, and they have the same product, or + # at least one of the lines has no defined product (which means that it includes + # the product of the other line), they are overlapping. + domain = super()._prepare_overlap_domain() + if self.product_id: + # If the current line has a product, we have overlapping for another line with + # the same product or an empty one + domain = expression.AND( + [ + domain, + [ + "|", + ("product_id", "=", False), + ("product_id", "=", self.product_id.id), + ], + ] + ) + # If the current line has no product, it includes all of them, so a similar line + # implies overlapping, no matter the value of product_id + return domain + + @api.constrains( + "product_id", + ) + def _check_product(self): + """Check dates if product changes.""" + self._check_dates() + return diff --git a/mis_builder_budget_product/readme/CONTRIBUTORS.rst b/mis_builder_budget_product/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..cbc201f --- /dev/null +++ b/mis_builder_budget_product/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Camille Morand diff --git a/mis_builder_budget_product/readme/DESCRIPTION.rst b/mis_builder_budget_product/readme/DESCRIPTION.rst new file mode 100644 index 0000000..3d5e356 --- /dev/null +++ b/mis_builder_budget_product/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This modules offers some additions to the original MIS Builder Budget module : + +* It allows to display the product in the budget lines by account (and to filter by product in the MIS reports) diff --git a/mis_builder_budget_product/readme/HISTORY.rst b/mis_builder_budget_product/readme/HISTORY.rst new file mode 100644 index 0000000..e69de29 diff --git a/mis_builder_budget_product/readme/ROADMAP.rst b/mis_builder_budget_product/readme/ROADMAP.rst new file mode 100644 index 0000000..5914e8b --- /dev/null +++ b/mis_builder_budget_product/readme/ROADMAP.rst @@ -0,0 +1,3 @@ +The mis_builder `roadmap `_ +and `known issues `_ can +be found on github. diff --git a/mis_builder_budget_product/readme/USAGE.rst b/mis_builder_budget_product/readme/USAGE.rst new file mode 100644 index 0000000..cb58782 --- /dev/null +++ b/mis_builder_budget_product/readme/USAGE.rst @@ -0,0 +1,4 @@ +**Budget by GL accounts** + +When a budget by GL accounts is created, it is optionally populated with one line per product besides the default +behaviour. diff --git a/mis_builder_budget_product/readme/newsfragments/.gitignore b/mis_builder_budget_product/readme/newsfragments/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/mis_builder_budget_product/readme/newsfragments/32.feature b/mis_builder_budget_product/readme/newsfragments/32.feature new file mode 100644 index 0000000..e92b13e --- /dev/null +++ b/mis_builder_budget_product/readme/newsfragments/32.feature @@ -0,0 +1 @@ +Create a new module to add features to MIS Builder Budget. For now, it adds the product_id to the Budget items by account. diff --git a/mis_builder_budget_product/static/description/icon.png b/mis_builder_budget_product/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1afa781fabb8088818f3940ef56711e6281bd31e GIT binary patch literal 4770 zcmZu#byO7G(*^`-1OX}O5~N$YVTlD{Q6!g;TpA>nW(g_D1?dGOr9)!r66st*Kysy} zOW?!v{{H;#IdkXS^PFeS+_^P#Kk5S2hzV#3FfcHP0qV+n4;ubY@E$+((wJ^*59+a{ zrke7DerQ)ptw9e8-&Osc2L=Y!(|>|#n>+cBhwBN@R>57xXCN0N`MDf|iGlHyAE2xN z@>$r=_D!Lj$sUmVR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 HcmV?d00001 diff --git a/mis_builder_budget_product/static/description/index.html b/mis_builder_budget_product/static/description/index.html new file mode 100644 index 0000000..e247543 --- /dev/null +++ b/mis_builder_budget_product/static/description/index.html @@ -0,0 +1,463 @@ + + + + + + +MIS Builder Total Committed Purchase + + + +

+

MIS Builder Total Committed Purchase

+ + +

Beta License: AGPL-3 OCA/mis-builder-contrib Translate me on Weblate Try me on Runbot

+

Addon to create a alternative source based on all purchase order lines with MIS Builder : all the purchase orders that are not in draft or cancelled state are taken into account.

+

The account_id of the committed purchase bases itself on the product’s account_id if set

+
    +
  • If not, it bases itself on the product_category’s account_id if set
      +
    • If not, it bases itself on the first set account_id on five generations of parent_category
        +
      • If none of them is set, it bases itself on the default value for new resources
          +
        • Finally if it’s not set, the account_id is set to 0
        • +
        +
      • +
      +
    • +
    +
  • +
+

Needed improvement :

+

It would be better if the account_id tried to base itself on all the generations of parent_category, as long as it is set.

+

Table of contents

+ +
+

Usage

+

This module provides a committed purchase view model, showing all purchases confirmed

+
+
+

Known issues / Roadmap

+

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

+
+
+

Changelog

+
+

15.0.1.0.0 (2022-08-30)

+

Features

+
    +
  • Add an addon to create a alternative source based on PO lines with MIS Builder, based on (MIS Builder Demo) addon.
  • +
+
+
+
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

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.

+

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

+

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

+
+
+
+ + diff --git a/mis_builder_budget_product/views/mis_budget_by_account_item.xml b/mis_builder_budget_product/views/mis_budget_by_account_item.xml new file mode 100644 index 0000000..06c8ed9 --- /dev/null +++ b/mis_builder_budget_product/views/mis_budget_by_account_item.xml @@ -0,0 +1,31 @@ + + + + + mis.budget.by.account.item + + + + + + + + + + mis.budget.by.account.item + + + + + + + + + From 5b1c00f9a2d0573bd020a87d64497551ba8ad4b7 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 14 Dec 2022 10:56:13 +0000 Subject: [PATCH 02/12] [UPD] README.rst --- mis_builder_budget_product/README.rst | 90 +++++++++++++++++++ .../static/description/index.html | 81 ++++++----------- 2 files changed, 117 insertions(+), 54 deletions(-) diff --git a/mis_builder_budget_product/README.rst b/mis_builder_budget_product/README.rst index e69de29..9d7cda5 100644 --- a/mis_builder_budget_product/README.rst +++ b/mis_builder_budget_product/README.rst @@ -0,0 +1,90 @@ +================================ +MIS Builder Budget Contributions +================================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fmis--builder--contrib-lightgray.png?logo=github + :target: https://github.com/OCA/mis-builder-contrib/tree/15.0/mis_builder_budget_product + :alt: OCA/mis-builder-contrib +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/mis-builder-contrib-15-0/mis-builder-contrib-15-0-mis_builder_budget_product + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/277/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This modules offers some additions to the original MIS Builder Budget module : + +* It allows to display the product in the budget lines by account (and to filter by product in the MIS reports) + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +**Budget by GL accounts** + +When a budget by GL accounts is created, it is optionally populated with one line per product besides the default +behaviour. + +Known issues / Roadmap +====================== + +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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Camptocamp + +Contributors +~~~~~~~~~~~~ + +* Camille Morand + +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. + +This module is part of the `OCA/mis-builder-contrib `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mis_builder_budget_product/static/description/index.html b/mis_builder_budget_product/static/description/index.html index e247543..b007708 100644 --- a/mis_builder_budget_product/static/description/index.html +++ b/mis_builder_budget_product/static/description/index.html @@ -4,7 +4,7 @@ -MIS Builder Total Committed Purchase +MIS Builder Budget Contributions -
-

MIS Builder Total Committed Purchase

+
+

MIS Builder Budget Contributions

-

Beta License: AGPL-3 OCA/mis-builder-contrib Translate me on Weblate Try me on Runbot

-

Addon to create a alternative source based on all purchase order lines with MIS Builder : all the purchase orders that are not in draft or cancelled state are taken into account.

-

The account_id of the committed purchase bases itself on the product’s account_id if set

+

Beta License: AGPL-3 OCA/mis-builder-contrib Translate me on Weblate Try me on Runbot

+

This modules offers some additions to the original MIS Builder Budget module :

    -
  • If not, it bases itself on the product_category’s account_id if set
      -
    • If not, it bases itself on the first set account_id on five generations of parent_category
        -
      • If none of them is set, it bases itself on the default value for new resources
          -
        • Finally if it’s not set, the account_id is set to 0
        • +
        • It allows to display the product in the budget lines by account (and to filter by product in the MIS reports)
        -
      • -
      -
    • -
    -
  • -
-

Needed improvement :

-

It would be better if the account_id tried to base itself on all the generations of parent_category, as long as it is set.

Table of contents

-

Usage

-

This module provides a committed purchase view model, showing all purchases confirmed

+

Usage

+

Budget by GL accounts

+

When a budget by GL accounts is created, it is optionally populated with one line per product besides the default +behaviour.

-

Known issues / Roadmap

-

The mis_builder roadmap -and known issues can +

Known issues / Roadmap

+

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

-
-

Changelog

-
-

15.0.1.0.0 (2022-08-30)

-

Features

-
    -
  • Add an addon to create a alternative source based on PO lines with MIS Builder, based on (MIS Builder Demo) addon.
  • -
-
-
-

Bug Tracker

+

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 smashing it by providing a detailed and welcomed -feedback.

+feedback.

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

-

Credits

+

Credits

-

Authors

+

Authors

    -
  • ACSONE SA/NV
  • Camptocamp
-

Maintainers

+

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.

-

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

+

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

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

From 3b89b763f9e8b5cc7441ef212ee8d80fd93f763b Mon Sep 17 00:00:00 2001 From: oca-ci Date: Wed, 14 Dec 2022 10:59:15 +0000 Subject: [PATCH 03/12] [UPD] Update mis_builder_budget_product.pot --- .../i18n/mis_builder_budget_product.pot | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mis_builder_budget_product/i18n/mis_builder_budget_product.pot b/mis_builder_budget_product/i18n/mis_builder_budget_product.pot index 0729655..fd877df 100644 --- a/mis_builder_budget_product/i18n/mis_builder_budget_product.pot +++ b/mis_builder_budget_product/i18n/mis_builder_budget_product.pot @@ -4,10 +4,8 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 15.0+e\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-25 10:30+0000\n" -"PO-Revision-Date: 2022-11-25 10:30+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" From 74c9db7d50fc2623a13d23c0bbd33fea27c75067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=A9ng=20=28Tr=E1=BA=A7n=20=C4=90=C3=ACnh=29?= Date: Wed, 22 Feb 2023 10:26:04 +0700 Subject: [PATCH 04/12] [MIG] mis_builder_budget_product: Migration to 16.0 --- mis_builder_budget_product/README.rst | 29 ++++++--- mis_builder_budget_product/__manifest__.py | 2 +- .../readme/CONTRIBUTORS.rst | 2 + mis_builder_budget_product/readme/CREDITS.rst | 1 + mis_builder_budget_product/readme/HISTORY.rst | 4 ++ .../readme/newsfragments/.gitignore | 0 .../readme/newsfragments/32.feature | 1 - .../static/description/index.html | 60 +++++++++++++------ .../views/mis_budget_by_account_item.xml | 2 +- 9 files changed, 73 insertions(+), 28 deletions(-) create mode 100644 mis_builder_budget_product/readme/CREDITS.rst delete mode 100644 mis_builder_budget_product/readme/newsfragments/.gitignore delete mode 100644 mis_builder_budget_product/readme/newsfragments/32.feature diff --git a/mis_builder_budget_product/README.rst b/mis_builder_budget_product/README.rst index 9d7cda5..c5b7878 100644 --- a/mis_builder_budget_product/README.rst +++ b/mis_builder_budget_product/README.rst @@ -14,14 +14,14 @@ MIS Builder Budget Contributions :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--contrib-lightgray.png?logo=github - :target: https://github.com/OCA/mis-builder-contrib/tree/15.0/mis_builder_budget_product + :target: https://github.com/OCA/mis-builder-contrib/tree/16.0/mis_builder_budget_product :alt: OCA/mis-builder-contrib .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/mis-builder-contrib-15-0/mis-builder-contrib-15-0-mis_builder_budget_product + :target: https://translation.odoo-community.org/projects/mis-builder-contrib-16-0/mis-builder-contrib-16-0-mis_builder_budget_product :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/277/15.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/mis-builder-contrib&target_branch=16.0 + :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -49,13 +49,21 @@ The mis_builder `roadmap `_ can be found on github. +Changelog +========= + +15.0.1.0.0 +========== + +* Create a new module to add features to MIS Builder Budget. For now, it adds the product_id to the Budget items by account. + 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -71,6 +79,13 @@ Contributors ~~~~~~~~~~~~ * Camille Morand +* `Trobz `_: + * Dzung Tran + +Other credits +~~~~~~~~~~~~~ + +The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp Maintainers ~~~~~~~~~~~ @@ -85,6 +100,6 @@ 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. -This module is part of the `OCA/mis-builder-contrib `_ project on GitHub. +This module is part of the `OCA/mis-builder-contrib `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mis_builder_budget_product/__manifest__.py b/mis_builder_budget_product/__manifest__.py index 99ff333..3189367 100644 --- a/mis_builder_budget_product/__manifest__.py +++ b/mis_builder_budget_product/__manifest__.py @@ -5,7 +5,7 @@ "name": "MIS Builder Budget Contributions", "summary": """ Offer more options for budgets for MIS reports""", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "license": "AGPL-3", "author": "Camptocamp, Odoo Community Association (OCA)", "website": "https://github.com/OCA/mis-builder-contrib", diff --git a/mis_builder_budget_product/readme/CONTRIBUTORS.rst b/mis_builder_budget_product/readme/CONTRIBUTORS.rst index cbc201f..5009232 100644 --- a/mis_builder_budget_product/readme/CONTRIBUTORS.rst +++ b/mis_builder_budget_product/readme/CONTRIBUTORS.rst @@ -1 +1,3 @@ * Camille Morand +* `Trobz `_: + * Dzung Tran diff --git a/mis_builder_budget_product/readme/CREDITS.rst b/mis_builder_budget_product/readme/CREDITS.rst new file mode 100644 index 0000000..70bc307 --- /dev/null +++ b/mis_builder_budget_product/readme/CREDITS.rst @@ -0,0 +1 @@ +The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp diff --git a/mis_builder_budget_product/readme/HISTORY.rst b/mis_builder_budget_product/readme/HISTORY.rst index e69de29..3256010 100644 --- a/mis_builder_budget_product/readme/HISTORY.rst +++ b/mis_builder_budget_product/readme/HISTORY.rst @@ -0,0 +1,4 @@ +15.0.1.0.0 +========== + +* Create a new module to add features to MIS Builder Budget. For now, it adds the product_id to the Budget items by account. diff --git a/mis_builder_budget_product/readme/newsfragments/.gitignore b/mis_builder_budget_product/readme/newsfragments/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/mis_builder_budget_product/readme/newsfragments/32.feature b/mis_builder_budget_product/readme/newsfragments/32.feature deleted file mode 100644 index e92b13e..0000000 --- a/mis_builder_budget_product/readme/newsfragments/32.feature +++ /dev/null @@ -1 +0,0 @@ -Create a new module to add features to MIS Builder Budget. For now, it adds the product_id to the Budget items by account. diff --git a/mis_builder_budget_product/static/description/index.html b/mis_builder_budget_product/static/description/index.html index b007708..56c8550 100644 --- a/mis_builder_budget_product/static/description/index.html +++ b/mis_builder_budget_product/static/description/index.html @@ -3,7 +3,7 @@ - + MIS Builder Budget Contributions