Skip to content

Commit d48f4c2

Browse files
committed
Merge PR #772 into 18.0
Signed-off-by AaronHForgeFlow
2 parents 29e257a + e133bdc commit d48f4c2

36 files changed

+2878
-0
lines changed

account_operating_unit/README.rst

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
===============================
2+
Accounting with Operating Units
3+
===============================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:5b020f80517fa70ab746f98800e561a235087ec12b512802748fe3d88283d223
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18+
:alt: License: LGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Foperating--unit-lightgray.png?logo=github
20+
:target: https://github.com/OCA/operating-unit/tree/18.0/account_operating_unit
21+
:alt: OCA/operating-unit
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/operating-unit-18-0/operating-unit-18-0-account_operating_unit
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/operating-unit&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows a company to manage the accounting based on Operating
32+
Units (OU's).
33+
34+
- The financial reports (Trial Balance, P&L, Balance Sheet), allow to
35+
report the balances of one or more OU's.
36+
- If a company wishes to report Balance Sheet and P&L accounts based on
37+
OU's, they should indicate at company level that the OU's are
38+
self-balanced, and the corresponding Inter-Operating Unit clearing
39+
account. The Chart of Accounts will always be balanced, for each
40+
Operating Unit.
41+
- A company considering Operating Unit as applicable to report only
42+
profits and losses will not need to set the OU's as self-balanced.
43+
- The self-balancing of Operating Unit is ensured at the time of posting
44+
a journal entry. In case that the journal involves posting of items in
45+
separate Operating Units, new journal items will be created, using the
46+
Inter-Operating Unit clearing account, to ensure that each OU is going
47+
to be self-balanced for that journal entry.
48+
- Adds the Operating Unit to the invoice. A user can choose what OU to
49+
create the invoice for.
50+
- Adds the Operating Unit to payments and payment methods. The operating
51+
unit of a payment will be that of the payment method chosen.
52+
- Implements security rules at OU level to invoices, payments and
53+
journal items.
54+
- Adds the Operating Unit to the cash basis journal entries.
55+
56+
**Table of contents**
57+
58+
.. contents::
59+
:local:
60+
61+
Configuration
62+
=============
63+
64+
If your company is required to generate a balanced balance sheet by
65+
Operating Unit you can specify at company level that Operating Units
66+
should be self-balanced, and then indicate a self-balancing clearing
67+
account.
68+
69+
1. Create an account "Inter-OU Clearing". It is a balance sheet account.
70+
2. Go to *Settings / Companies / Configuration* and Set the "Operating
71+
Units are self-balanced" checkbox. Then set the "Inter-OU Clearing"
72+
account in "Inter-Operating Unit clearing account" field.
73+
3. Go to *Accounting / Configuration / Accounting / Journals* and
74+
define, for each Payment Method, the Operating Unit that will be used
75+
in payments.
76+
77+
Usage
78+
=====
79+
80+
- Add the Operating Unit to invoices.
81+
- Report invoices by Operating Unit in *Accounting / Reporting*
82+
*Business Intelligence / Invoices*
83+
- Add the Default Operating Unit to account move. Then all move lines
84+
will by default adopt this Operating Unit.
85+
- Add Operating Units to the move lines. If they differ across lines of
86+
the same move, and the OU's are self-balanced, then additional move
87+
lines will be created so as to make the move self-balanced from OU
88+
perspective.
89+
- In the menu *Accounting / Reporting / PDF Reports*, you can indicate
90+
the Operating Units to report on, for the *Trial Balance*, *Balance
91+
Sheet*, *Profit and Loss*, and *Financial Reports*.
92+
93+
Known issues / Roadmap
94+
======================
95+
96+
- The *General Ledger*, *Aged Partner Balance* reports do not support
97+
the filter by Operating Unit. Basically due to lack of proper hooks in
98+
the standard methods used by these reports, to introduce the ability
99+
to filter by Operating Unit.
100+
- Trial Balance, P&L and Balance Sheet were removed from Odoo Community.
101+
Once OCA Financial Reports are migrated to 13 we can add the Operating
102+
Unit to those reports.
103+
104+
Bug Tracker
105+
===========
106+
107+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/operating-unit/issues>`_.
108+
In case of trouble, please check there if your issue has already been reported.
109+
If you spotted it first, help us to smash it by providing a detailed and welcomed
110+
`feedback <https://github.com/OCA/operating-unit/issues/new?body=module:%20account_operating_unit%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
111+
112+
Do not contact contributors directly about support or help with technical issues.
113+
114+
Credits
115+
=======
116+
117+
Authors
118+
-------
119+
120+
* ForgeFlow
121+
* Serpent Consulting Services Pvt. Ltd.
122+
* WilldooIT Pty Ltd
123+
124+
Contributors
125+
------------
126+
127+
- ForgeFlow <[email protected]>
128+
- Jordi Ballester Alomar <[email protected]>
129+
- Aarón Henríquez <[email protected]>
130+
- Serpent Consulting Services Pvt. Ltd. <[email protected]>
131+
- WilldooIT Pty Ltd <[email protected]>
132+
- Michael Villamar <[email protected]>
133+
- Jarsa Sistemas <[email protected]>
134+
- Alan Ramos <[email protected]>
135+
- Saran Lim. <[email protected]>
136+
- Pimolnat Suntian <[email protected]>
137+
- Hieu, Vo Minh Bao <[email protected]>
138+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
139+
140+
- Bhavesh Heliconia
141+
142+
Maintainers
143+
-----------
144+
145+
This module is maintained by the OCA.
146+
147+
.. image:: https://odoo-community.org/logo.png
148+
:alt: Odoo Community Association
149+
:target: https://odoo-community.org
150+
151+
OCA, or the Odoo Community Association, is a nonprofit organization whose
152+
mission is to support the collaborative development of Odoo features and
153+
promote its widespread use.
154+
155+
This module is part of the `OCA/operating-unit <https://github.com/OCA/operating-unit/tree/18.0/account_operating_unit>`_ project on GitHub.
156+
157+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

account_operating_unit/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
2+
3+
from . import models
4+
from . import report
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# © 2019 ForgeFlow S.L.
2+
# © 2019 Serpent Consulting Services Pvt. Ltd.
3+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
4+
{
5+
"name": "Accounting with Operating Units",
6+
"summary": "Introduces Operating Unit (OU) in invoices and "
7+
"Accounting Entries with clearing account",
8+
"version": "18.0.1.0.0",
9+
"author": "ForgeFlow, "
10+
"Serpent Consulting Services Pvt. Ltd.,"
11+
"WilldooIT Pty Ltd,"
12+
"Odoo Community Association (OCA)",
13+
"website": "https://github.com/OCA/operating-unit",
14+
"category": "Accounting & Finance",
15+
"depends": [
16+
"account",
17+
"analytic_operating_unit",
18+
"base_view_inheritance_extension",
19+
],
20+
"license": "LGPL-3",
21+
"data": [
22+
"security/account_security.xml",
23+
"views/account_move_view.xml",
24+
"views/account_journal_view.xml",
25+
"views/company_view.xml",
26+
"views/account_payment_view.xml",
27+
"views/account_invoice_report_view.xml",
28+
],
29+
}
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_operating_unit
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: account_operating_unit
17+
#: model:ir.model.fields,help:account_operating_unit.field_res_company__ou_is_self_balanced
18+
msgid ""
19+
"Activate if your company is required to generate a balanced balance sheet "
20+
"for each operating unit."
21+
msgstr ""
22+
23+
#. module: account_operating_unit
24+
#: model:ir.model,name:account_operating_unit.model_account_bank_statement_line
25+
msgid "Bank Statement Line"
26+
msgstr ""
27+
28+
#. module: account_operating_unit
29+
#: model:ir.model,name:account_operating_unit.model_res_company
30+
msgid "Companies"
31+
msgstr ""
32+
33+
#. module: account_operating_unit
34+
#. odoo-python
35+
#: code:addons/account_operating_unit/models/account_journal.py:0
36+
#, python-format
37+
msgid ""
38+
"Configuration error. If defined as self-balanced at company level, the "
39+
"operating unit is mandatory in bank journal."
40+
msgstr ""
41+
42+
#. module: account_operating_unit
43+
#. odoo-python
44+
#: code:addons/account_operating_unit/models/res_company.py:0
45+
#, python-format
46+
msgid ""
47+
"Configuration error. Please provide an Inter-operating unit clearing "
48+
"account."
49+
msgstr ""
50+
51+
#. module: account_operating_unit
52+
#. odoo-python
53+
#: code:addons/account_operating_unit/models/account_move.py:0
54+
#, python-format
55+
msgid ""
56+
"Configuration error. The Operating Unit in the Move Line and in the Move "
57+
"must be the same."
58+
msgstr ""
59+
60+
#. module: account_operating_unit
61+
#. odoo-python
62+
#: code:addons/account_operating_unit/models/account_move.py:0
63+
#, python-format
64+
msgid ""
65+
"Configuration error. The operating unit is mandatory for each line as the "
66+
"operating unit has been defined as self-balanced at company level."
67+
msgstr ""
68+
69+
#. module: account_operating_unit
70+
#. odoo-python
71+
#: code:addons/account_operating_unit/models/account_move.py:0
72+
#, python-format
73+
msgid ""
74+
"Configuration error. You need to define aninter-operating unit clearing "
75+
"account in the company settings"
76+
msgstr ""
77+
78+
#. module: account_operating_unit
79+
#: model:ir.model.fields,field_description:account_operating_unit.field_res_company__inter_ou_clearing_account_id
80+
msgid "Inter-operating unit clearing account"
81+
msgstr ""
82+
83+
#. module: account_operating_unit
84+
#: model:ir.model,name:account_operating_unit.model_account_invoice_report
85+
msgid "Invoices Statistics"
86+
msgstr ""
87+
88+
#. module: account_operating_unit
89+
#: model:ir.model,name:account_operating_unit.model_account_journal
90+
msgid "Journal"
91+
msgstr ""
92+
93+
#. module: account_operating_unit
94+
#: model:ir.model,name:account_operating_unit.model_account_move
95+
msgid "Journal Entry"
96+
msgstr ""
97+
98+
#. module: account_operating_unit
99+
#: model:ir.model,name:account_operating_unit.model_account_move_line
100+
msgid "Journal Item"
101+
msgstr ""
102+
103+
#. module: account_operating_unit
104+
#. odoo-python
105+
#: code:addons/account_operating_unit/models/account_move.py:0
106+
#, python-format
107+
msgid "OU-Balancing"
108+
msgstr ""
109+
110+
#. module: account_operating_unit
111+
#: model:ir.model.fields,field_description:account_operating_unit.field_account_bank_statement_line__operating_unit_id
112+
#: model:ir.model.fields,field_description:account_operating_unit.field_account_invoice_report__operating_unit_id
113+
#: model:ir.model.fields,field_description:account_operating_unit.field_account_journal__operating_unit_id
114+
#: model:ir.model.fields,field_description:account_operating_unit.field_account_move__operating_unit_id
115+
#: model:ir.model.fields,field_description:account_operating_unit.field_account_move_line__operating_unit_id
116+
#: model:ir.model.fields,field_description:account_operating_unit.field_account_payment__operating_unit_id
117+
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_account_invoice_filter
118+
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_account_invoice_report_search
119+
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_account_move_line_filter
120+
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_account_payment_search
121+
msgid "Operating Unit"
122+
msgstr ""
123+
124+
#. module: account_operating_unit
125+
#: model:ir.model.fields,help:account_operating_unit.field_account_journal__operating_unit_id
126+
msgid ""
127+
"Operating Unit that will be used in payments, when this journal is used."
128+
msgstr ""
129+
130+
#. module: account_operating_unit
131+
#: model_terms:ir.ui.view,arch_db:account_operating_unit.view_company_form
132+
msgid "Operating Units"
133+
msgstr ""
134+
135+
#. module: account_operating_unit
136+
#: model:ir.model.fields,field_description:account_operating_unit.field_res_company__ou_is_self_balanced
137+
msgid "Operating Units are self-balanced"
138+
msgstr ""
139+
140+
#. module: account_operating_unit
141+
#: model:ir.model,name:account_operating_unit.model_account_partial_reconcile
142+
msgid "Partial Reconcile"
143+
msgstr ""
144+
145+
#. module: account_operating_unit
146+
#: model:ir.model,name:account_operating_unit.model_account_payment
147+
msgid "Payments"
148+
msgstr ""
149+
150+
#. module: account_operating_unit
151+
#. odoo-python
152+
#: code:addons/account_operating_unit/models/account_move.py:0
153+
#, python-format
154+
msgid "The OU in the Move and in Journal must be the same."
155+
msgstr ""
156+
157+
#. module: account_operating_unit
158+
#: model:ir.model.fields,help:account_operating_unit.field_account_bank_statement_line__operating_unit_id
159+
#: model:ir.model.fields,help:account_operating_unit.field_account_move__operating_unit_id
160+
msgid "This operating unit will be defaulted in the move lines."
161+
msgstr ""

0 commit comments

Comments
 (0)