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_operating_unit #596

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
97f5b1f
[ADD] Added Account Operating Unit module for v9.
sudhir-serpentcs Dec 23, 2015
8a28618
[FIX] various fixes to ensure that unit tests pass
JordiBForgeFlow Dec 30, 2015
09c9d82
[IMP] changed Eficent copyright
JordiBForgeFlow Dec 30, 2015
3ecd65c
[IMP] : Migrated the code to version 9
serpentcs-dev1 Jan 12, 2016
6efbd9d
[IMP] Migrated and tested account_ou module to v9.
serpentcs-dev1 Jan 13, 2016
ac47439
[FIX] travis errors
JordiBForgeFlow Jan 22, 2016
55510d9
[FIX] remove period_id
JordiBForgeFlow Jan 22, 2016
0ebac6b
[FIX] Applied review comments by @elicoidal
JordiBForgeFlow Jan 25, 2016
175d6b7
[FIX] errors in creation of account move
JordiBForgeFlow Jan 25, 2016
085cfc1
[FIX] README.RST style
JordiBForgeFlow Jan 25, 2016
b7616cc
[FIX] travis errors
JordiBForgeFlow Jan 25, 2016
46c11cd
[FIX] travis
JordiBForgeFlow Jan 25, 2016
f203ebb
[IMP] add invoice analysis by operating unit
JordiBForgeFlow Feb 4, 2016
e4f78eb
[FIX] Do not assert_balance until all journal items exist. Fix search…
AaronHForgeFlow Aug 17, 2016
cb62ebc
[FIX] Style fixes suggested by @elicoidal
AaronHForgeFlow Aug 18, 2016
f5bbb8c
[FIX] travis issues
AaronHForgeFlow Aug 18, 2016
35d9235
[FIX] travis issues
AaronHForgeFlow Aug 18, 2016
ea404bb
[UPT] By default the OU is not self balanced because the constraint o…
AaronHForgeFlow Aug 26, 2016
3543e5a
[UPT] suggested type for inter OU account
AaronHForgeFlow Sep 5, 2016
015f2e7
[FIX] improve README. Inter OU clearing is a balance sheet account
JordiBForgeFlow Sep 9, 2016
0f1746e
[IMP] Add the operating units in the financial reports qweb
JordiBForgeFlow Sep 9, 2016
51c21e3
[FIX] travis issues
AaronHForgeFlow Sep 12, 2016
4389885
[IMP] various additions, including:
JordiBForgeFlow Sep 14, 2016
dca3eb5
[IMP] simplify headers
JordiBForgeFlow Sep 14, 2016
d79205d
[IMP] update readme
JordiBForgeFlow Sep 14, 2016
545fb21
[FIX] PEP8 issues
JordiBForgeFlow Sep 14, 2016
0795bdb
[IMP] add security for account journals
JordiBForgeFlow Sep 16, 2016
36b89a4
[IMP] add security by OU on the account invoice report
JordiBForgeFlow Sep 16, 2016
d58c642
[FIX] flake8
JordiBForgeFlow Sep 28, 2016
38b4db6
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
359e5a9
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
dfc43d6
[MIG] account_operating_unit to v10.0
LoisRForgeFlow Jan 26, 2017
1dc8d40
[FIX] Company view
AaronHForgeFlow Jan 26, 2017
a257c22
[FIX] Test remove workflow
AaronHForgeFlow Jan 27, 2017
b1f92c1
[10.0][account_operating_unit]Add support for cash basis. Migrate to …
JordiBForgeFlow Jan 30, 2017
eaaf31e
Add dependency on analytic_operating_unit. (#62)
JordiBForgeFlow Feb 10, 2017
42370a0
[FIX] fix wrong iteration.
LoisRForgeFlow Feb 10, 2017
c7394d5
[FIX]When paying, the OU of the invoice should be considered only whe…
AaronHForgeFlow May 24, 2017
489fb14
[FIX] readonly on OU
serpentcs-dev1 Jul 4, 2017
81ec02b
Allow selecting OU on all account journals
sbidoul May 16, 2018
5b5cb37
[FIX]PYLINT mainly
AaronHForgeFlow Jun 11, 2018
7ef9461
[FIX][account_payment]Fix in the internal transfers amount currency
Apr 10, 2018
9225467
[MIG]account_operating_unit to v11
Jul 17, 2018
ba123f4
Remove erroneous extra currency code.
Jul 27, 2018
3af2f7c
Changes according to reviews on #114
grindtildeath Oct 3, 2018
d5a6ada
Fix default operating_unit_id on account.move.line
grindtildeath Oct 16, 2018
ed0230a
[MIG] account_operating_unit: Migration to v12
bjeficent Nov 29, 2018
66df002
[FIX] Counterpart's operating unit is wrong and Journals filtered by OUs
bjeficent Feb 15, 2019
148adee
[FIX] account_operating_unit: wrong account.move.line method name cal…
jlopezg May 29, 2019
ea5b7e5
[FIX] Alignments
MiquelRForgeFlow Nov 27, 2019
71a9060
[FIX] Fixed unknown Fields
nikul-serpentcs Dec 30, 2019
c2a4413
account_operating_unit 12.0.1.0.1
OCA-git-bot Dec 30, 2019
9ef17ac
[IMP] Ensure Company Set
osi-scampbell Jan 15, 2020
9bfa6b8
account_operating_unit 12.0.1.0.2
OCA-git-bot Jan 16, 2020
36e0387
[IMP] account_operating_unit: black, isort, prettier
alan196 Apr 15, 2020
d3ab439
[MIG] account_operating_unit: Migration to V13
alan196 Apr 15, 2020
875baa5
[13.0][IMP] Add some feature in account_operating_unit module
newtratip May 6, 2020
8ed7f74
[13.0][IMP] Adjust constrains _check_journal_operating_unit
newtratip May 7, 2020
12e122e
account_operating_unit 13.0.1.1.0
OCA-git-bot May 11, 2020
0c703a1
Reduce the width of dependency from analytic_operating_unit to operat…
May 14, 2020
0532db4
account_operating_unit 13.0.1.2.0
OCA-git-bot May 20, 2020
10260e2
[UPD] Update account_operating_unit.pot
oca-travis Sep 21, 2020
0664883
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Oct 5, 2020
3ef8596
[IMP] account_operating_unit: black, isort, prettier
alan196 Oct 10, 2020
9a2779b
[MIG] account_operating_unit: Migration to 14.0
alan196 Oct 10, 2020
deddd41
[14.0][FIX] account_operating_unit, fix test require bill date
kittiu May 7, 2021
5411e23
[IMP] account_operating_unit: black, isort, prettier
alan196 Oct 23, 2021
29b7032
[MIG] account_operating_unit: Migration to 15.0
alan196 Oct 23, 2021
f818597
[FIX] domain field ou and test script
Saran440 Dec 14, 2022
30f19af
[FIX] account_operating_unit: add OU to cash basis journal entry
ps-tubtim Dec 28, 2022
8bb101f
[FIX] account_operating_unit: raise error when group payment from mov…
ps-tubtim Jan 5, 2023
0e909cf
[15.0][FIX]-account_operating_unit: fix the error 'You are trying to …
hieulucky111 Jan 18, 2023
e313ad2
account_operating_unit 15.0.1.0.1
OCA-git-bot Jan 23, 2023
6b2a56a
[FIX] account_operating_unit: re reconcile payment for case self bala…
Saran440 Feb 28, 2023
d049118
account_operating_unit 15.0.1.0.2
OCA-git-bot Mar 1, 2023
c60239b
[FIX]account_operating_unit: Ensure active_model is account.move befo…
AaronHForgeFlow Mar 8, 2023
d9e832e
account_operating_unit 15.0.1.0.3
OCA-git-bot Mar 8, 2023
eb555cd
[FIX] account_operating_unit: add OU to tree view of account.move.line
ps-tubtim Mar 14, 2023
c664d84
account_operating_unit 15.0.1.1.0
OCA-git-bot Mar 15, 2023
e866803
Translated using Weblate (Spanish (Mexico))
alan196 Mar 21, 2023
94c70db
[IMP] account_operating_unit: pre-commit stuff
BT-aleonard May 11, 2023
2a84a5d
[MIG] account_operating_unit: Migration to 16.0
BT-aleonard May 11, 2023
69ca553
[IMP] include fixes from v15 in migration
BT-aleonard Oct 25, 2023
bc83fb7
[IMP] fix generate unbalanced entries
BT-aleonard Mar 11, 2024
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
147 changes: 147 additions & 0 deletions account_operating_unit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
===============================
Accounting with Operating Units
===============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Foperating--unit-lightgray.png?logo=github
:target: https://github.com/OCA/operating-unit/tree/15.0/account_operating_unit
:alt: OCA/operating-unit
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/operating-unit-15-0/operating-unit-15-0-account_operating_unit
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/213/15.0
:alt: Try me on Runbot

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

This module allows a company to manage the accounting based on Operating
Units (OU's).

* The financial reports (Trial Balance, P&L, Balance Sheet), allow to report
the balances of one or more OU's.
* If a company wishes to report Balance Sheet and P&L accounts based on
OU's, they should indicate at company level that the OU's are
self-balanced, and the corresponding Inter-Operating Unit clearing account.
The Chart of Accounts will always be balanced, for each Operating Unit.
* A company considering Operating Unit as applicable to report only profits
and losses will not need to set the OU's as self-balanced.
* The self-balancing of Operating Unit is ensured at the time of posting a
journal entry. In case that the journal involves posting of items in
separate Operating Units, new journal items will be created, using the
Inter-Operating Unit clearing account, to ensure that each OU is going to
be self-balanced for that journal entry.
* Adds the Operating Unit to the invoice. A user can choose what OU to
create the invoice for.
* Adds the Operating Unit to payments and payment methods. The operating
unit of a payment will be that of the payment method chosen.
* Implements security rules at OU level to invoices, payments and journal
items.
* Adds the Operating Unit to the cash basis journal entries.

**Table of contents**

.. contents::
:local:

Configuration
=============

If your company is required to generate a balanced balance sheet by
Operating Unit you can specify at company level that Operating Units should
be self-balanced, and then indicate a self-balancing clearing account.

#. Create an account "Inter-OU Clearing". It is a balance sheet account.
#. Go to *Settings / Companies / Configuration* and Set the "Operating Units
are self-balanced" checkbox. Then set the "Inter-OU Clearing" account in "Inter-Operating Unit
clearing account" field.
#. Go to *Accounting / Configuration / Accounting / Journals* and define, for
each Payment Method, the Operating Unit that will be used in payments.

Usage
=====

* Add the Operating Unit to invoices.
* Report invoices by Operating Unit in *Accounting / Reporting*
*Business Intelligence / Invoices*
* Add the Default Operating Unit to account move. Then all move lines will
by default adopt this Operating Unit.
* Add Operating Units to the move lines. If they differ across lines of the same move, and the OU's are
self-balanced, then additional move lines will be created so as to make
the move self-balanced from OU perspective.
* In the menu *Accounting / Reporting / PDF Reports*, you can indicate the
Operating Units to report on, for the *Trial Balance*, *Balance Sheet*,
*Profit and Loss*, and *Financial Reports*.

Known issues / Roadmap
======================

* The *General Ledger*, *Aged Partner Balance* reports do not support the
filter by Operating Unit. Basically due to lack of proper hooks in the
standard methods used by these reports, to introduce the ability to filter
by Operating Unit.
* Trial Balance, P&L and Balance Sheet were removed from Odoo Community. Once
OCA Financial Reports are migrated to 13 we can add the Operating Unit to
those reports.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/operating-unit/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/operating-unit/issues/new?body=module:%20account_operating_unit%0Aversion:%2015.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
* Serpent Consulting Services Pvt. Ltd.
* WilldooIT Pty Ltd

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

* ForgeFlow <[email protected]>
* Jordi Ballester Alomar <[email protected]>
* Aarón Henríquez <[email protected]>
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
* WilldooIT Pty Ltd <[email protected]>
* Michael Villamar <[email protected]>
* Jarsa Sistemas <[email protected]>
* Alan Ramos <[email protected]>
* Saran Lim. <[email protected]>
* Pimolnat Suntian <[email protected]>
* Hieu, Vo Minh Bao <[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/operating-unit <https://github.com/OCA/operating-unit/tree/15.0/account_operating_unit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions account_operating_unit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

from . import models
from . import report
from . import wizards
25 changes: 25 additions & 0 deletions account_operating_unit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# © 2019 ForgeFlow S.L.
# © 2019 Serpent Consulting Services Pvt. Ltd.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Accounting with Operating Units",
"summary": "Introduces Operating Unit (OU) in invoices and "
"Accounting Entries with clearing account",
"version": "16.0.1.0.0",
"author": "ForgeFlow, "
"Serpent Consulting Services Pvt. Ltd.,"
"WilldooIT Pty Ltd,"
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/operating-unit",
"category": "Accounting & Finance",
"depends": ["account", "analytic_operating_unit"],
"license": "LGPL-3",
"data": [
"security/account_security.xml",
"views/account_move_view.xml",
"views/account_journal_view.xml",
"views/company_view.xml",
"views/account_payment_view.xml",
"views/account_invoice_report_view.xml",
],
}
179 changes: 179 additions & 0 deletions account_operating_unit/i18n/account_operating_unit.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.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_operating_unit
#: model:ir.model.fields,help:account_operating_unit.field_res_company__ou_is_self_balanced
msgid ""
"Activate if your company is required to generate a balanced balance sheet "
"for each operating unit."
msgstr ""

#. module: account_operating_unit
#: model:ir.model,name:account_operating_unit.model_account_bank_statement_line
msgid "Bank Statement Line"
msgstr ""

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

#. module: account_operating_unit
#: code:addons/account_operating_unit/models/account_journal.py:0
#, python-format
msgid ""
"Configuration error. If defined as self-balanced at company level, the "
"operating unit is mandatory in bank journal."
msgstr ""

#. module: account_operating_unit
#: code:addons/account_operating_unit/models/res_company.py:0
#, python-format
msgid ""
"Configuration error. Please provide an Inter-operating unit clearing "
"account."
msgstr ""

#. module: account_operating_unit
#: code:addons/account_operating_unit/models/account_move.py:0
#, python-format
msgid ""
"Configuration error. The Company in the Move Line and in the Operating Unit "
"must be the same."
msgstr ""

#. module: account_operating_unit
#: code:addons/account_operating_unit/models/account_move.py:0
#, python-format
msgid ""
"Configuration error. The Operating Unit in the Move Line and in the Move "
"must be the same."
msgstr ""

#. module: account_operating_unit
#: code:addons/account_operating_unit/models/account_move.py:0
#, python-format
msgid ""
"Configuration error. The operating unit is mandatory for each line as the "
"operating unit has been defined as self-balanced at company level."
msgstr ""

#. module: account_operating_unit
#: code:addons/account_operating_unit/models/account_move.py:0
#, python-format
msgid ""
"Configuration error. You need to define aninter-operating unit clearing "
"account in the company settings"
msgstr ""

#. module: account_operating_unit
#: model:ir.model.fields,field_description:account_operating_unit.field_res_company__inter_ou_clearing_account_id
msgid "Inter-operating unit clearing account"
msgstr ""

#. module: account_operating_unit
#: model:ir.model,name:account_operating_unit.model_account_invoice_report
msgid "Invoices Statistics"
msgstr ""

#. module: account_operating_unit
#: model:ir.model,name:account_operating_unit.model_account_journal
msgid "Journal"
msgstr ""

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

#. module: account_operating_unit
#: model:ir.model,name:account_operating_unit.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_operating_unit
#: code:addons/account_operating_unit/models/account_move.py:0
#, python-format
msgid "OU-Balancing"
msgstr ""

#. module: account_operating_unit
#: model:ir.model.fields,field_description:account_operating_unit.field_account_bank_statement_line__operating_unit_id
#: model:ir.model.fields,field_description:account_operating_unit.field_account_invoice_report__operating_unit_id
#: model:ir.model.fields,field_description:account_operating_unit.field_account_journal__operating_unit_id
#: model:ir.model.fields,field_description:account_operating_unit.field_account_move__operating_unit_id
#: model:ir.model.fields,field_description:account_operating_unit.field_account_move_line__operating_unit_id
#: model:ir.model.fields,field_description:account_operating_unit.field_account_payment__operating_unit_id
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_account_invoice_filter
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_account_invoice_report_search
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_account_move_line_filter
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_account_payment_search
msgid "Operating Unit"
msgstr ""

#. module: account_operating_unit
#: model:ir.model.fields,help:account_operating_unit.field_account_journal__operating_unit_id
msgid ""
"Operating Unit that will be used in payments, when this journal is used."
msgstr ""

#. module: account_operating_unit
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_company_form
msgid "Operating Units"
msgstr ""

#. module: account_operating_unit
#: model:ir.model.fields,field_description:account_operating_unit.field_res_company__ou_is_self_balanced
msgid "Operating Units are self-balanced"
msgstr ""

#. module: account_operating_unit
#: model:ir.model,name:account_operating_unit.model_account_partial_reconcile
msgid "Partial Reconcile"
msgstr ""

#. module: account_operating_unit
#: model:ir.model,name:account_operating_unit.model_account_payment
msgid "Payments"
msgstr ""

#. module: account_operating_unit
#: model:ir.model,name:account_operating_unit.model_account_payment_register
msgid "Register Payment"
msgstr ""

#. module: account_operating_unit
#: code:addons/account_operating_unit/models/account_move.py:0
#, python-format
msgid "The Company in the Move and in Operating Unit must be the same."
msgstr ""

#. module: account_operating_unit
#: code:addons/account_operating_unit/wizards/account_payment_register.py:0
#, python-format
msgid "The OU in the Bills/Invoices to register payment must be the same."
msgstr ""

#. module: account_operating_unit
#: code:addons/account_operating_unit/models/account_move.py:0
#, python-format
msgid "The OU in the Move and in Journal must be the same."
msgstr ""

#. module: account_operating_unit
#: model:ir.model.fields,help:account_operating_unit.field_account_bank_statement_line__operating_unit_id
#: model:ir.model.fields,help:account_operating_unit.field_account_move__operating_unit_id
msgid "This operating unit will be defaulted in the move lines."
msgstr ""
Loading
Loading