2
0

Migrate account_move_fiscal_month to 11.0

This commit is contained in:
Fekete Mihai 2018-03-17 17:43:55 +02:00 committed by BT-anieto
parent 9a7360edd5
commit a75b4c21ef
5 changed files with 17 additions and 19 deletions

View File

@ -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
=========================
@ -8,23 +8,25 @@ Account Move Fiscal Month
Display the fiscal month on journal entries/items.
Installation
============
You need to install account_fiscal_month.
Configuration
=============
You just need to create date ranges associated to 'Fiscal Month' type.
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/11.0
Bug Tracker
===========
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/account-financial-tools/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.
help us smash it by providing detailed and welcomed feedback.
Credits
=======
@ -32,7 +34,7 @@ Credits
Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
Contributors
------------

View File

@ -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,10 +5,10 @@
'name': 'Account Move Fiscal Month',
'summary': """
Display the fiscal month 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://www.acsone.eu',
'website': 'https://github.com/OCA/account-financial-tools',
'depends': [
'account_fiscal_month',
],
@ -17,6 +16,4 @@
'views/account_move.xml',
'views/account_move_line.xml',
],
'demo': [
],
}

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
@ -12,7 +11,8 @@ class AccountMove(models.Model):
date_range_fm_id = fields.Many2one(
comodel_name='date.range', string="Fiscal month",
compute='_compute_date_range_fm', search='_search_date_range_fm')
compute='_compute_date_range_fm', search='_search_date_range_fm',
)
@api.multi
@api.depends('date', 'company_id')

View File

@ -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_fm_id = fields.Many2one(
related='move_id.date_range_fm_id', readonly=True)
related='move_id.date_range_fm_id', readonly=True,
store=True, copy=False)

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).