From 63daff929090de3360a36e107fc804fdb4b12da6 Mon Sep 17 00:00:00 2001 From: Fekete Mihai Date: Sat, 17 Mar 2018 07:56:35 +0200 Subject: [PATCH] Migrate account_move_fiscal_year. Remove store --- account_move_fiscal_year/README.rst | 6 +++--- account_move_fiscal_year/__manifest__.py | 5 +---- account_move_fiscal_year/models/account_move.py | 1 - account_move_fiscal_year/models/account_move_line.py | 4 ++-- .../tests/test_account_move_fiscal_year.py | 1 - 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/account_move_fiscal_year/README.rst b/account_move_fiscal_year/README.rst index 764e6bed0..8deaa31ff 100644 --- a/account_move_fiscal_year/README.rst +++ b/account_move_fiscal_year/README.rst @@ -1,5 +1,5 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl :alt: License: AGPL-3 ======================== @@ -23,7 +23,7 @@ Usage .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/92/10.0 + :target: https://runbot.odoo-community.org/runbot/92/11.0 Bug Tracker =========== diff --git a/account_move_fiscal_year/__manifest__.py b/account_move_fiscal_year/__manifest__.py index 62bfb930e..5469683ec 100644 --- a/account_move_fiscal_year/__manifest__.py +++ b/account_move_fiscal_year/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -6,7 +5,7 @@ 'name': 'Account Move Fiscal Year', 'summary': """ Display the fiscal year on journal entries/item""", - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'license': 'AGPL-3', 'author': 'ACSONE SA/NV, Odoo Community Association (OCA)', 'website': 'https://github.com/OCA/account-financial-tools', @@ -17,6 +16,4 @@ 'views/account_move.xml', 'views/account_move_line.xml', ], - 'demo': [ - ], } diff --git a/account_move_fiscal_year/models/account_move.py b/account_move_fiscal_year/models/account_move.py index eba8c0e38..bcf86c541 100644 --- a/account_move_fiscal_year/models/account_move.py +++ b/account_move_fiscal_year/models/account_move.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/account_move_fiscal_year/models/account_move_line.py b/account_move_fiscal_year/models/account_move_line.py index 876f124ae..25b0f9563 100644 --- a/account_move_fiscal_year/models/account_move_line.py +++ b/account_move_fiscal_year/models/account_move_line.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -10,4 +9,5 @@ class AccountMoveLine(models.Model): _inherit = 'account.move.line' date_range_fy_id = fields.Many2one( - related='move_id.date_range_fy_id', readonly=True) + related='move_id.date_range_fy_id', readonly=True, + store=True, copy=False) diff --git a/account_move_fiscal_year/tests/test_account_move_fiscal_year.py b/account_move_fiscal_year/tests/test_account_move_fiscal_year.py index 59fabd0bd..8e7f297f3 100644 --- a/account_move_fiscal_year/tests/test_account_move_fiscal_year.py +++ b/account_move_fiscal_year/tests/test_account_move_fiscal_year.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).