New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[12.0][MIG] account_fiscal_year #706
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c656fae
[ADD] add module "account_fiscal_year"
damdam-s a878ce5
[FIX] Tests
lmignon e7977a9
[FIX*IMP] account_fiscal_year
damdam-s 57d035f
OCA Transbot updated translations from Transifex
oca-transbot 2dba63a
[10.0][MIGRATION] Migrated module 'account_fiscal_year' to V10 (#407)
espo-tony 09bbf76
OCA Transbot updated translations from Transifex
oca-transbot f6a2b4c
[MIG] account_fiscal_year: Migration to 11.
TDu cecf244
Translated using Weblate (Arabic)
osoul 194ef75
OCA Transbot updated translations from Transifex
oca-transbot d365ac9
Translated using Weblate (Danish)
hhgabelgaard cc2de25
[MIG] account_fiscal_year: Migration to 12.0
rven File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
=================== | ||
Account Fiscal Year | ||
=================== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! 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%2Faccount--financial--tools-lightgray.png?logo=github | ||
:target: https://github.com/OCA/account-financial-tools/tree/12.0/account_fiscal_year | ||
: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_year | ||
: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 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module extends `date.range.type` to add `fiscal_year` flag. | ||
|
||
Override official `res_company.compute_fiscal_year_dates` to get the | ||
fiscal year date start / date end for any given date. | ||
That methods first looks for a date range of type fiscal year that | ||
encloses the give date. | ||
If it does not find it, it falls back on the standard Odoo | ||
technique based on the day/month of end of fiscal year. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
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 <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_fiscal_year%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Camptocamp SA | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Damien Crier <damien.crier@camptocamp.com> | ||
* Laurent Mignon <laurent.mignon@acsone.eu> | ||
* Lorenzo Battistini <lorenzo.battistini@agilebg.com> | ||
* Raf Ven <raf.ven@dynapps.be> | ||
|
||
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/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/12.0/account_fiscal_year>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Author: Damien Crier | ||
# Copyright 2016 Camptocamp SA | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
{ | ||
'name': 'Account Fiscal Year', | ||
'version': '12.0.1.0.0', | ||
'category': 'Accounting', | ||
'author': 'Camptocamp SA,' | ||
'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', | ||
], | ||
'installable': True, | ||
'application': True, | ||
'auto_install': False, | ||
'license': 'AGPL-3', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
<record id="fiscalyear" model="date.range.type"> | ||
<field name="name">Fiscal Year</field> | ||
<field name="allow_overlap" eval="False"/> | ||
<field name="fiscal_year" eval="True"/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_fiscal_year | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \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: account_fiscal_year | ||
#: model:ir.model,name:account_fiscal_year.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_type_action_accounting | ||
msgid "Date Range Types" | ||
msgstr "" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_action_accounting | ||
msgid "Date Ranges" | ||
msgstr "" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_accounting | ||
msgid "Date ranges" | ||
msgstr "" | ||
|
||
#. module: account_fiscal_year | ||
#: model:date.range.type,name:account_fiscal_year.fiscalyear | ||
msgid "Fiscal Year" | ||
msgstr "" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model.fields,field_description:account_fiscal_year.field_date_range_type_fiscal_year | ||
msgid "Is fiscal year?" | ||
msgstr "" | ||
|
||
#. module: account_fiscal_year | ||
#: code:addons/account_fiscal_year/models/date_range_type.py:21 | ||
#, python-format | ||
msgid "You cannot delete a date range type with flag \"fiscal_year\"" | ||
msgstr "" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model,name:account_fiscal_year.model_date_range_type | ||
msgid "date.range.type" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_fiscal_year | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2018-06-29 04:11+0000\n" | ||
"Last-Translator: Osoul <baruni@osoul.ly>\n" | ||
"Language-Team: none\n" | ||
"Language: ar\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " | ||
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" | ||
"X-Generator: Weblate 3.0.1\n" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model,name:account_fiscal_year.model_res_company | ||
msgid "Companies" | ||
msgstr "المؤسسات" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_type_action_accounting | ||
msgid "Date Range Types" | ||
msgstr "أنواع الفترات" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_action_accounting | ||
msgid "Date Ranges" | ||
msgstr "الفترات" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_accounting | ||
msgid "Date ranges" | ||
msgstr "الفترات" | ||
|
||
#. module: account_fiscal_year | ||
#: model:date.range.type,name:account_fiscal_year.fiscalyear | ||
msgid "Fiscal Year" | ||
msgstr "السنة المالية" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model.fields,field_description:account_fiscal_year.field_date_range_type_fiscal_year | ||
msgid "Is fiscal year?" | ||
msgstr "سنة مالية؟" | ||
|
||
#. module: account_fiscal_year | ||
#: code:addons/account_fiscal_year/models/date_range_type.py:21 | ||
#, python-format | ||
msgid "You cannot delete a date range type with flag \"fiscal_year\"" | ||
msgstr "لا يمكنك حذف فترة من نوع \"سنة مالية\"" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model,name:account_fiscal_year.model_date_range_type | ||
msgid "date.range.type" | ||
msgstr "نوع الفترة" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_fiscal_year | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2018-09-06 08:12+0000\n" | ||
"Last-Translator: Hans Henrik Gabelgaard <hhg@gabelgaard.org>\n" | ||
"Language-Team: none\n" | ||
"Language: da\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 3.1.1\n" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model,name:account_fiscal_year.model_res_company | ||
msgid "Companies" | ||
msgstr "Virksomheder" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_type_action_accounting | ||
msgid "Date Range Types" | ||
msgstr "Dato intervaltyper" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_action_accounting | ||
msgid "Date Ranges" | ||
msgstr "Dato intervaller" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_accounting | ||
msgid "Date ranges" | ||
msgstr "Dato intervaller" | ||
|
||
#. module: account_fiscal_year | ||
#: model:date.range.type,name:account_fiscal_year.fiscalyear | ||
msgid "Fiscal Year" | ||
msgstr "Regnskabsår" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model.fields,field_description:account_fiscal_year.field_date_range_type_fiscal_year | ||
msgid "Is fiscal year?" | ||
msgstr "Er regnskabsår?" | ||
|
||
#. module: account_fiscal_year | ||
#: code:addons/account_fiscal_year/models/date_range_type.py:21 | ||
#, python-format | ||
msgid "You cannot delete a date range type with flag \"fiscal_year\"" | ||
msgstr "Du kan ikke slette en intervaltype markeret som \"Regnskabsår\"" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model,name:account_fiscal_year.model_date_range_type | ||
msgid "date.range.type" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_fiscal_year | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-12-22 15:55+0000\n" | ||
"PO-Revision-Date: 2017-12-22 15:55+0000\n" | ||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n" | ||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" | ||
"Language: de\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model,name:account_fiscal_year.model_res_company | ||
msgid "Companies" | ||
msgstr "Unternehmen" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_type_action_accounting | ||
msgid "Date Range Types" | ||
msgstr "Arten von Zeiträumen" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_action_accounting | ||
msgid "Date Ranges" | ||
msgstr "Zeiträume" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.ui.menu,name:account_fiscal_year.menu_date_range_accounting | ||
msgid "Date ranges" | ||
msgstr "Zeiträume" | ||
|
||
#. module: account_fiscal_year | ||
#: model:date.range.type,name:account_fiscal_year.fiscalyear | ||
msgid "Fiscal Year" | ||
msgstr "Geschäftsjahr" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model.fields,field_description:account_fiscal_year.field_date_range_type_fiscal_year | ||
msgid "Is fiscal year?" | ||
msgstr "Ist Geschäftsjahr?" | ||
|
||
#. module: account_fiscal_year | ||
#: code:addons/account_fiscal_year/models/date_range_type.py:21 | ||
#, python-format | ||
msgid "You cannot delete a date range type with flag \"fiscal_year\"" | ||
msgstr "" | ||
"Sie dürfen eine Zeitraumart mit Kennzeichen \"Geschäftsjahr\" nicht löschen" | ||
|
||
#. module: account_fiscal_year | ||
#: model:ir.model,name:account_fiscal_year.model_date_range_type | ||
msgid "date.range.type" | ||
msgstr "date.range.type" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should go to 'author' section.