From 123c761944e57d73f05730f84bdc21aa2d561f75 Mon Sep 17 00:00:00 2001 From: aromera Date: Mon, 10 Jan 2022 15:03:32 +0100 Subject: [PATCH] [MIG] account_move_budget: Migration to 14.0 --- account_move_budget/README.rst | 10 ++++----- account_move_budget/__manifest__.py | 2 +- .../i18n/account_move_budget.pot | 17 ++++++++++++++- .../models/account_move_budget.py | 21 ++++++++++++++----- .../static/description/index.html | 6 +++--- 5 files changed, 41 insertions(+), 15 deletions(-) diff --git a/account_move_budget/README.rst b/account_move_budget/README.rst index d5bd5d3d..1c837e6e 100644 --- a/account_move_budget/README.rst +++ b/account_move_budget/README.rst @@ -14,13 +14,13 @@ Account Move Budget :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--tools-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-tools/tree/13.0/account_move_budget + :target: https://github.com/OCA/account-financial-tools/tree/14.0/account_move_budget :alt: OCA/account-financial-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_move_budget + :target: https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_move_budget :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/92/13.0 + :target: https://runbot.odoo-community.org/runbot/92/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -54,7 +54,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -86,6 +86,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/account-financial-tools `_ project on GitHub. +This module is part of the `OCA/account-financial-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_move_budget/__manifest__.py b/account_move_budget/__manifest__.py index 88d0bb5d..f63b6848 100644 --- a/account_move_budget/__manifest__.py +++ b/account_move_budget/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Move Budget", "summary": "Create Accounting Budgets", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "category": "Accounting & Finance", "website": "https://github.com/OCA/account-financial-tools", "author": "ForgeFlow, " "Odoo Community Association (OCA)", diff --git a/account_move_budget/i18n/account_move_budget.pot b/account_move_budget/i18n/account_move_budget.pot index 5a469d23..25bbf22c 100644 --- a/account_move_budget/i18n/account_move_budget.pot +++ b/account_move_budget/i18n/account_move_budget.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -60,6 +60,11 @@ msgstr "" msgid "Activity State" msgstr "" +#. module: account_move_budget +#: model:ir.model.fields,field_description:account_move_budget.field_account_move_budget__activity_type_icon +msgid "Activity Type Icon" +msgstr "" + #. module: account_move_budget #: model:ir.model.fields,field_description:account_move_budget.field_account_move_budget_line__analytic_account_id msgid "Analytic Account" @@ -184,6 +189,11 @@ msgstr "" msgid "Followers (Partners)" msgstr "" +#. module: account_move_budget +#: model:ir.model.fields,help:account_move_budget.field_account_move_budget__activity_type_icon +msgid "Font awesome icon e.g. fa-tasks" +msgstr "" + #. module: account_move_budget #: model:ir.model.fields,field_description:account_move_budget.field_account_move_budget__date_from msgid "From Date" @@ -265,6 +275,11 @@ msgstr "" msgid "Messages" msgstr "" +#. module: account_move_budget +#: model:ir.model.fields,field_description:account_move_budget.field_account_move_budget__my_activity_date_deadline +msgid "My Activity Deadline" +msgstr "" + #. module: account_move_budget #: model:ir.model.fields,field_description:account_move_budget.field_account_move_budget__name #: model_terms:ir.ui.view,arch_db:account_move_budget.account_move_budget_form_view diff --git a/account_move_budget/models/account_move_budget.py b/account_move_budget/models/account_move_budget.py index 715c20f1..53dd8d46 100644 --- a/account_move_budget/models/account_move_budget.py +++ b/account_move_budget/models/account_move_budget.py @@ -10,18 +10,29 @@ class AccountMoveBudget(models.Model): _description = "Account Move Budget" _inherit = ["mail.thread", "mail.activity.mixin"] - name = fields.Char(required=True, track_visibility="onchange") - description = fields.Char(track_visibility="onchange") + name = fields.Char( + required=True, + tracking=True, + ) + description = fields.Char( + tracking=True, + ) date_range_id = fields.Many2one(comodel_name="date.range", string="Date range") date_from = fields.Date( - required=True, string="From Date", track_visibility="onchange" + required=True, + string="From Date", + tracking=True, + ) + date_to = fields.Date( + required=True, + string="To Date", + tracking=True, ) - date_to = fields.Date(required=True, string="To Date", track_visibility="onchange") state = fields.Selection( [("draft", "Draft"), ("confirmed", "Confirmed"), ("cancelled", "Cancelled")], required=True, default="draft", - track_visibility="onchange", + tracking=True, ) line_ids = fields.One2many( comodel_name="account.move.budget.line", inverse_name="budget_id", copy=True diff --git a/account_move_budget/static/description/index.html b/account_move_budget/static/description/index.html index a504bdcc..2f94cdd7 100644 --- a/account_move_budget/static/description/index.html +++ b/account_move_budget/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runbot

This module allows to define accounting budgets.

These budgets can then be used in MIS Builder reports, as an alternate source.

@@ -399,7 +399,7 @@ and at the same time can be used in a department or project expenses report.

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.

@@ -425,7 +425,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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/account-financial-tools project on GitHub.

+

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

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