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

Syncing from upstream OCA/account-financial-tools (16.0) #1640

Merged
merged 19 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ addon | version | maintainers | summary
[account_journal_restrict_mode](account_journal_restrict_mode/) | 16.0.1.1.0 | | Lock All Posted Entries of Journals.
[account_loan](account_loan/) | 16.0.1.0.5 | [![etobella](https://github.com/etobella.png?size=30px)](https://github.com/etobella) | Account Loan management
[account_lock_date_update](account_lock_date_update/) | 16.0.1.0.1 | | Allow an Account adviser to update locking date without having access to all technical settings
[account_lock_to_date](account_lock_to_date/) | 16.0.1.0.0 | | Allows to set an account lock date in the future.
[account_move_budget](account_move_budget/) | 16.0.1.0.0 | | Create Accounting Budgets
[account_move_fiscal_month](account_move_fiscal_month/) | 16.0.1.0.0 | | Display the fiscal month on journal entries/item
[account_move_fiscal_year](account_move_fiscal_year/) | 16.0.1.0.0 | | Display the fiscal year on journal entries/item
Expand Down
93 changes: 93 additions & 0 deletions account_lock_to_date/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
====================
Account Lock To Date
====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d9c89dea8edd605f8e986c2c2932c4ed82c20498b0eb130cb476013084315d1e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/16.0/account_lock_to_date
: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-16-0/account-financial-tools-16-0-account_lock_to_date
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to set a Period and Fiscal year Locking end dates. This
will prevent users from posting journal entries on a date after the defined
period or fiscal year end date.

**Table of contents**

.. contents::
:local:

Usage
=====

To set a new lock to dates, go to *Invoicing / Accounting / Actions / Update accounting lock to dates*.

A user without an Adviser group will not be able to post or update posted
journal entries on the date "Lock To Date for Non-Advisers" or after.

A user that has an Adviser group will not be able to post or update posted
journal entries on the date "Lock To Date" or after.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_lock_to_date%0Aversion:%2016.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
~~~~~~~

* ForgeFlow

Contributors
~~~~~~~~~~~~

* ForgeFlow <https://www.ForgeFlow.com>
** Jordi Ballester Alomar <[email protected]>
* `Aion Tech <https://aiontech.company/>`_:

* Simone Rubino <[email protected]>

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/16.0/account_lock_to_date>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions account_lock_to_date/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
19 changes: 19 additions & 0 deletions account_lock_to_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2019 ForgeFlow S.L.
# Copyright 2023 Simone Rubino - Aion Tech
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Account Lock To Date",
"summary": """
Allows to set an account lock date in the future.""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools",
"installable": True,
"depends": ["account"],
"data": [
"security/ir.model.access.csv",
"wizards/account_update_lock_to_date.xml",
],
}
193 changes: 193 additions & 0 deletions account_lock_to_date/i18n/account_lock_to_date.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_lock_to_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_lock_to_date
#: model:ir.model,name:account_lock_to_date.model_account_update_lock_to_date
msgid "Account Update Lock_to_date"
msgstr ""

#. module: account_lock_to_date
#: model_terms:ir.ui.view,arch_db:account_lock_to_date.account_update_lock_to_date_form_view
msgid "Cancel"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model,name:account_lock_to_date.model_res_company
msgid "Companies"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__company_id
msgid "Company"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__create_uid
msgid "Created by"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__create_date
msgid "Created on"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__display_name
msgid "Display Name"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__id
msgid "ID"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model,name:account_lock_to_date.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__write_uid
msgid "Last Updated by"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__write_date
msgid "Last Updated on"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__fiscalyear_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_res_company__fiscalyear_lock_to_date
msgid "Lock To Date"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__period_lock_to_date
#: model:ir.model.fields,field_description:account_lock_to_date.field_res_company__period_lock_to_date
msgid "Lock To Date for Non-Advisers"
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,help:account_lock_to_date.field_account_update_lock_to_date__fiscalyear_lock_to_date
msgid ""
"No users, including Advisers, can edit accounts after and inclusive of this "
"date. Use it for fiscal year locking for example."
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,help:account_lock_to_date.field_res_company__fiscalyear_lock_to_date
msgid ""
"No users, including Advisers, can edit accounts after this date. Use it for "
"fiscal year locking for example."
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,help:account_lock_to_date.field_account_update_lock_to_date__period_lock_to_date
msgid ""
"Only users with the 'Adviser' role can edit accounts after and inclusive of "
"this date. Use it for period locking inside an open fiscal year, for "
"example."
msgstr ""

#. module: account_lock_to_date
#: model:ir.model.fields,help:account_lock_to_date.field_res_company__period_lock_to_date
msgid ""
"Only users with the 'Adviser' role can edit accounts after this date. Use it"
" for period locking inside an open fiscal year, for example."
msgstr ""

#. module: account_lock_to_date
#. odoo-python
#: code:addons/account_lock_to_date/models/res_company.py:0
#, python-format
msgid "The lock date for advisors is irreversible and can't be removed."
msgstr ""

#. module: account_lock_to_date
#. odoo-python
#: code:addons/account_lock_to_date/models/res_company.py:0
#, python-format
msgid ""
"The new lock to date for advisors must be set after the previous lock to "
"date."
msgstr ""

#. module: account_lock_to_date
#. odoo-python
#: code:addons/account_lock_to_date/models/res_company.py:0
#, python-format
msgid ""
"There are still unposted entries in the period to date you want to lock. You"
" should either post or delete them."
msgstr ""

#. module: account_lock_to_date
#: model_terms:ir.ui.view,arch_db:account_lock_to_date.account_update_lock_to_date_form_view
msgid "Update"
msgstr ""

#. module: account_lock_to_date
#: model:ir.actions.act_window,name:account_lock_to_date.account_update_lock_to_date_act_window
#: model:ir.ui.menu,name:account_lock_to_date.account_update_lock_to_date_menu
msgid "Update accounting lock to dates"
msgstr ""

#. module: account_lock_to_date
#. odoo-python
#: code:addons/account_lock_to_date/wizards/account_update_lock_to_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

#. module: account_lock_to_date
#. odoo-python
#: code:addons/account_lock_to_date/models/account_move.py:0
#, python-format
msgid ""
"You cannot add/modify entries after and inclusive of the lock to date %s"
msgstr ""

#. module: account_lock_to_date
#. odoo-python
#: code:addons/account_lock_to_date/models/account_move.py:0
#, python-format
msgid ""
"You cannot add/modify entries after and inclusive of the lock to date %s. "
"Check the company settings or ask someone with the 'Adviser' role"
msgstr ""

#. module: account_lock_to_date
#. odoo-python
#: code:addons/account_lock_to_date/models/res_company.py:0
#, python-format
msgid ""
"You cannot define stricter conditions on advisors than on users. Please make"
" sure that the lock date on advisor is set after the lock date for users."
msgstr ""

#. module: account_lock_to_date
#. odoo-python
#: code:addons/account_lock_to_date/models/res_company.py:0
#, python-format
msgid ""
"You cannot lock a period that is not finished yet. Please make sure that the"
" lock date for advisors is set at or after the last day of the next month."
msgstr ""
Loading
Loading