Skip to content
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

[16.0] mig account_subsequence_fiscal_year #1807

Open
wants to merge 7 commits into
base: 16.0
Choose a base branch
from

Conversation

legalsylvain
Copy link
Contributor

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) :

  • 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

res_config_setting

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.

@legalsylvain
Copy link
Contributor Author

/ocabot rebase

@OCA-git-bot
Copy link
Contributor

@legalsylvain The rebase process failed, because command git push --force grap tmp-pr-1807:16.0-mig-account_subsequence_fiscal_year failed with output:

remote: Permission to grap/account-financial-tools.git denied to OCA-git-bot.
fatal: unable to access 'https://github.com/grap/account-financial-tools/': The requested URL returned error: 403

@legalsylvain legalsylvain force-pushed the 16.0-mig-account_subsequence_fiscal_year branch from f57f569 to d27a489 Compare October 8, 2024 10:40
@legalsylvain legalsylvain force-pushed the 16.0-mig-account_subsequence_fiscal_year branch from d27a489 to 120f90c Compare January 29, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants