From c0cb245f3803f0de6ff13d45b1f75ff881a86af7 Mon Sep 17 00:00:00 2001 From: remihb Date: Tue, 17 Nov 2020 00:09:33 +0100 Subject: [PATCH] [MIG] account_fiscal_month: Migration to 13.0 --- account_fiscal_month/README.rst | 10 +++++----- account_fiscal_month/__manifest__.py | 6 +++--- account_fiscal_month/i18n/account_fiscal_month.pot | 2 +- account_fiscal_month/models/date_range_type.py | 3 +-- account_fiscal_month/models/res_company.py | 3 +-- account_fiscal_month/static/description/index.html | 6 +++--- 6 files changed, 14 insertions(+), 16 deletions(-) diff --git a/account_fiscal_month/README.rst b/account_fiscal_month/README.rst index 17ccbe676..8df1c6858 100644 --- a/account_fiscal_month/README.rst +++ b/account_fiscal_month/README.rst @@ -14,13 +14,13 @@ Account Fiscal Month :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/12.0/account_fiscal_month + :target: https://github.com/OCA/account-financial-tools/tree/13.0/account_fiscal_month :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-12-0/account-financial-tools-12-0-account_fiscal_month + :target: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_fiscal_month :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/12.0 + :target: https://runbot.odoo-community.org/runbot/92/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,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. @@ -68,6 +68,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_fiscal_month/__manifest__.py b/account_fiscal_month/__manifest__.py index f740585b0..f59260843 100644 --- a/account_fiscal_month/__manifest__.py +++ b/account_fiscal_month/__manifest__.py @@ -4,10 +4,10 @@ { "name": "Account Fiscal Month", "summary": """Provide a fiscal month date range type""", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-financial-tools", - "depends": ["account", "date_range",], - "data": ["data/date_range_type.xml", "views/date_range_type.xml",], + "depends": ["account", "date_range"], + "data": ["data/date_range_type.xml", "views/date_range_type.xml"], } diff --git a/account_fiscal_month/i18n/account_fiscal_month.pot b/account_fiscal_month/i18n/account_fiscal_month.pot index 46a891522..b436a8646 100644 --- a/account_fiscal_month/i18n/account_fiscal_month.pot +++ b/account_fiscal_month/i18n/account_fiscal_month.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" diff --git a/account_fiscal_month/models/date_range_type.py b/account_fiscal_month/models/date_range_type.py index 0bb33d296..412827cce 100644 --- a/account_fiscal_month/models/date_range_type.py +++ b/account_fiscal_month/models/date_range_type.py @@ -1,7 +1,7 @@ # Copyright 2017 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import _, api, fields, models +from odoo import _, fields, models from odoo.exceptions import UserError @@ -10,7 +10,6 @@ class DateRangeType(models.Model): fiscal_month = fields.Boolean(string="Is fiscal month?", readonly=True) - @api.multi def unlink(self): date_range_type_fm = self.env.ref( "account_fiscal_month.date_range_fiscal_month" diff --git a/account_fiscal_month/models/res_company.py b/account_fiscal_month/models/res_company.py index 361231c20..197689b9e 100644 --- a/account_fiscal_month/models/res_company.py +++ b/account_fiscal_month/models/res_company.py @@ -1,14 +1,13 @@ # Copyright 2017 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import api, models +from odoo import models class ResCompany(models.Model): _inherit = "res.company" - @api.multi def find_daterange_fm(self, date_str): self.ensure_one() fm_id = self.env.ref("account_fiscal_month.date_range_fiscal_month") diff --git a/account_fiscal_month/static/description/index.html b/account_fiscal_month/static/description/index.html index 1b9d8ece6..b4a30adc7 100644 --- a/account_fiscal_month/static/description/index.html +++ b/account_fiscal_month/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 simply provides a date range type marked as ‘Fiscal month’.

Table of contents

@@ -386,7 +386,7 @@ ul.auto-toc {

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.

@@ -410,7 +410,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.