-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TA#66893 [MIG][16.0] account_closing_journal (#182)
* TA#66893 [MIG][16.0] account_closing_journal --------- Co-authored-by: Abdellatif BENZBIRIA <a.benzbiria@gmail.com> Co-authored-by: Majda EL MARIOULI <majdaelmariouli@gmail.com>
- Loading branch information
1 parent
1e04673
commit 99f9a97
Showing
18 changed files
with
214 additions
and
2 deletions.
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
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
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
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,35 @@ | ||
======================= | ||
Account Closing Journal | ||
======================= | ||
|
||
.. contents:: Table of Contents | ||
|
||
Overview | ||
-------- | ||
This module allows to define an accounting journal as ``Closing Journal``. | ||
|
||
.. image:: static/description/account_journal_form.png | ||
|
||
When checked, any journal entry reported in the journal is flagged as a ``Closing Entry``. | ||
|
||
.. image:: static/description/account_move_list.png | ||
|
||
.. image:: static/description/account_move_line_list.png | ||
|
||
Module Design | ||
------------- | ||
The module adds a boolean field ``is_closing`` on account.journal | ||
and a related ``is_closing`` field on account.move and account.move.line. | ||
|
||
These boolean fields can be used to exclude entries from the ``Income Statement``. | ||
|
||
Generating Closing Entries | ||
-------------------------- | ||
This module does not define an automatted way to generate closing entries. | ||
|
||
You must either create this entry manually at the end of your fiscal year, | ||
or define another module to generate these entries for you. | ||
|
||
Contributors | ||
------------ | ||
* Numigi (tm) and all its contributors (https://bit.ly/numigiens) |
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,4 @@ | ||
# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
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,22 @@ | ||
# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
{ | ||
"name": "Account Closing Journal", | ||
"version": "16.0.1.0.0", | ||
"author": "Numigi", | ||
"maintainer": "Numigi", | ||
"website": "https://www.numigi.com", | ||
"license": "LGPL-3", | ||
"category": "Accounting", | ||
"summary": "Allow to define a fiscal year closing journal", | ||
"depends": [ | ||
"account", | ||
], | ||
"data": [ | ||
"views/account_journal.xml", | ||
"views/account_move.xml", | ||
"views/account_move_line.xml", | ||
], | ||
"installable": True, | ||
} |
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,54 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_closing_journal | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-04-20 20:31+0000\n" | ||
"PO-Revision-Date: 2024-04-20 20:31+0000\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_closing_journal | ||
#: model_terms:ir.ui.view,arch_db:account_closing_journal.account_journal_form | ||
#: model_terms:ir.ui.view,arch_db:account_closing_journal.account_move__line_search | ||
#: model_terms:ir.ui.view,arch_db:account_closing_journal.account_move_search | ||
msgid "Fiscal Year Closing" | ||
msgstr "Fermeture d'exercice" | ||
|
||
#. module: account_closing_journal | ||
#: model:ir.model.fields,field_description:account_closing_journal.field_account_move__is_closing | ||
msgid "Is Closing Entry" | ||
msgstr "Est une pièce de fermeture" | ||
|
||
#. module: account_closing_journal | ||
#: model:ir.model.fields,field_description:account_closing_journal.field_account_move_line__is_closing | ||
msgid "Is Closing Item" | ||
msgstr "Est une écriture de fermeture" | ||
|
||
#. module: account_closing_journal | ||
#: model:ir.model.fields,field_description:account_closing_journal.field_account_journal__is_closing | ||
msgid "Is Closing Journal" | ||
msgstr "Est un journal de fermeture" | ||
|
||
#. module: account_closing_journal | ||
#: model:ir.model,name:account_closing_journal.model_account_journal | ||
msgid "Journal" | ||
msgstr "" | ||
|
||
#. module: account_closing_journal | ||
#: model:ir.model,name:account_closing_journal.model_account_move | ||
msgid "Journal Entries" | ||
msgstr "" | ||
|
||
#. module: account_closing_journal | ||
#: model:ir.model,name:account_closing_journal.model_account_move_line | ||
msgid "Journal Item" | ||
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,6 @@ | ||
# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from . import account_journal # noqa: F401 | ||
from . import account_move # noqa: F401 | ||
from . import account_move_line # noqa: F401 |
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,11 @@ | ||
# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class AccountJournal(models.Model): | ||
|
||
_inherit = "account.journal" | ||
|
||
is_closing = fields.Boolean("Is Closing Journal") |
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,15 @@ | ||
# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class AccountMove(models.Model): | ||
|
||
_inherit = "account.move" | ||
|
||
is_closing = fields.Boolean( | ||
"Is Closing Entry", | ||
related="journal_id.is_closing", | ||
store=True, | ||
) |
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,15 @@ | ||
# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class AccountMoveLine(models.Model): | ||
|
||
_inherit = "account.move.line" | ||
|
||
is_closing = fields.Boolean( | ||
"Is Closing Item", | ||
related="journal_id.is_closing", | ||
store=True, | ||
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
|
||
<record id="account_journal_form" model="ir.ui.view"> | ||
<field name="name">Account Journal Form: add is_closing</field> | ||
<field name="model">account.journal</field> | ||
<field name="inherit_id" ref="account.view_account_journal_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//page[@name='advanced_settings']/group" position="inside"> | ||
<group name="closing" string="Fiscal Year Closing"> | ||
<field name="is_closing" /> | ||
</group> | ||
</xpath> | ||
</field> | ||
</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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
|
||
<record id="account_move_search" model="ir.ui.view"> | ||
<field name="name">Account Move Search: add is_closing</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account.view_account_move_filter" /> | ||
<field name="arch" type="xml"> | ||
<filter name="misc_filter" position="after"> | ||
<filter name="is_closing" string="Fiscal Year Closing" domain="[('is_closing', '=', True)]" /> | ||
</filter> | ||
</field> | ||
</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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
|
||
<record id="account_move__line_search" model="ir.ui.view"> | ||
<field name="name">Account Move Line Search: add is_closing</field> | ||
<field name="model">account.move.line</field> | ||
<field name="inherit_id" ref="account.view_account_move_line_filter" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//separator[last()]" position="after"> | ||
<filter name="is_closing" string="Fiscal Year Closing" domain="[('is_closing', '=', True)]" /> | ||
<separator/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |