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) :
minor adaptation due to change in account API.
depends on new account_fiscal_year OCA module.
update translation.
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 have BILL/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:
an account move with a date set to 2030-06-01
a company set with fiscalyear_last_day = 1 and fiscalyear_last_month = 10
'empty' (default value):
the subsequence will be created "normaly", with date_from = 2030-01-01 and date_to = 2030-12-31
'Based on Company Settings':
the subsequence will be created depending on the values of fiscalyear_last_day and fiscalyear_last_month, so date_from = 2029-10-01 and date_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.
supersed : https://github.com/OCA/account-financial-tools/pull/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:
an account move with a date set to 2030-06-01
a company set with
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.