[16.0] mig account_subsequence_fiscal_year #1807
Open
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.
supersed : #1630
Trivial port of account_subsequence_fiscal_year that allow to generate accounting numerotation based on fiscal year (if fiscal year are not "classic", ie: 31 december) :
account_fiscal_year
OCA module.Description
This module extends the functionality of Accounting Odoo module, to generate custom sub sequences for accounting entries, if fiscal years are not "classic".
(ie: last day = 31 / last month = 12)
without this module, in such cases (for example, for fiscal year from 01 April 2020 to 31 May 2021) accounting moves of the same fiscal year will not have the same numbering: Some entries will have
BILL/2020/
prefix and other will haveBILL/2021/
, that is not allowed in many countries.That modules fixes this problem.
Configure
To configure this module, you need to:
Add your users to the group 'Technical Settings / Show Full Accounting Features'
Go to Invoicing > Configuration / Settings
configure your accounting settings
Depending on what you want, 3 options are available.
Given the following example:
fiscalyear_last_day = 1
andfiscalyear_last_month = 10
'empty' (default value):
the subsequence will be created "normaly", with
date_from = 2030-01-01
anddate_to = 2030-12-31
'Based on Company Settings':
the subsequence will be created depending on the values of
fiscalyear_last_day
andfiscalyear_last_month
, sodate_from = 2029-10-01
anddate_to = 2030-09-30
'Based on Fiscal Years Settings':
the subsequence will be created with the values defined in the according fiscal year. Note that if no fiscal year is found, the generation will fail.