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

[17.0][MIG] account_analytic_parent #634

Merged
merged 70 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
cab9ca2
account_analytic_parent
AaronHForgeFlow Apr 12, 2017
b92a830
[IMP] account_analytic_parent: add tree view to adviser wizard + Add …
cubells May 12, 2017
6f98249
[MIG] account_analytic_parent: Migration to 10.0
chienandalu Jun 27, 2017
7efd38f
OCA Transbot updated translations from Transifex
oca-transbot Jun 30, 2017
fae2776
[MIG] account_analytic_parent: Migration to 11.0
Apr 9, 2018
19706c5
[UPD] Update account_analytic_parent.pot
oca-travis Oct 2, 2018
7aee191
Translated using Weblate (German)
rschnapka Oct 10, 2018
049475e
Translated using Weblate (Catalan)
Oct 12, 2018
7d87825
[IMP] account_analytic_parent: performance (#200)
AaronHForgeFlow Nov 16, 2018
104c14c
[IMP]propagate active through hierarchy
AaronHForgeFlow Oct 10, 2018
f4ac409
[UPD] Update account_analytic_parent.pot
oca-travis Nov 27, 2018
a4f1615
[MIG] account_analytic_parent: Migration to 12.0
alexey-pelykh Nov 19, 2018
3f1b381
[UPD] Update account_analytic_parent.pot
oca-travis Dec 3, 2018
ba8c190
Update translation files
oca-transbot Dec 9, 2018
54449ae
Translated using Weblate (Spanish)
mvrodriguez Feb 1, 2019
865c12f
Added translation using Weblate (Galician)
mvrodriguez Feb 4, 2019
6fee080
Added translation using Weblate (Galician)
mvrodriguez Feb 4, 2019
e5d52e3
Fix compute credit debit and balance
cubells Jan 4, 2019
c5aa8cc
[IMP] account_analytic_parent: improve account tree view
cubells Jan 3, 2019
8eb0bcc
Translated using Weblate (Galician)
mvrodriguez Feb 4, 2019
6cc460d
[MIG] account_analytic_parent: improve account tree view
alexey-pelykh Feb 4, 2019
f36fb1f
[IMP] account_analytic_parent: Improvement on the read_group
pedrobaeza Feb 5, 2019
00adb5a
[IMP] account_analytic_parent: Further improvement on read_group
alexey-pelykh Feb 4, 2019
3368b33
[FIX] account_analytic_parent: compute parent_path
alexey-pelykh Feb 12, 2019
3c54f96
[UPD] Update account_analytic_parent.pot
oca-travis Feb 14, 2019
0ee3d26
Update translation files
oca-transbot Mar 3, 2019
66411d6
Translated using Weblate (Dutch)
Apr 2, 2019
01fcb28
Translated using Weblate (Croatian)
badbole May 3, 2019
2cfa590
Translated using Weblate (French)
BECJIE32 May 3, 2019
caed55d
Translated using Weblate (Spanish)
BECJIE32 May 3, 2019
57722ec
Translated using Weblate (Catalan)
May 27, 2019
12968b3
Translated using Weblate (Spanish)
pedrobaeza May 27, 2019
53af9ec
Translated using Weblate (Spanish)
enriquemartin Jul 16, 2019
ad8772b
[UPD] README.rst
OCA-git-bot Jul 29, 2019
413a05a
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
8abb22d
Translated using Weblate (French)
gurneyalex Aug 6, 2019
7f5a67c
Translated using Weblate (Slovenian)
sysadminmatmoz Aug 8, 2019
f4533ca
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 29, 2019
03a0c0c
Translated using Weblate (Catalan)
Oct 7, 2019
a47f381
[IMP] account_analytic_parent: black, isort
pegonzalezspesol Nov 20, 2019
738fffa
[MIG] account_analytic_parent: Migration to 13.0
pegonzalezspesol Nov 20, 2019
f6beb2d
[UPD] Update account_analytic_parent.pot
oca-travis Mar 26, 2020
00f5eab
[UPD] README.rst
OCA-git-bot Mar 26, 2020
b0fe3b7
Update translation files
oca-transbot Mar 30, 2020
cc0b79f
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
7ab81af
Added translation using Weblate (Abkhazian)
Sep 30, 2020
27a47bb
Added translation using Weblate (Thai)
Sep 30, 2020
b3dba2f
[UPD] README.rst
OCA-git-bot Oct 5, 2020
66dce28
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 8, 2020
50a24eb
[UPD] README.rst
OCA-git-bot Nov 8, 2020
65fe340
Translated using Weblate (Galician)
Feb 10, 2021
001028d
Translated using Weblate (Galician)
Feb 11, 2021
bfc7238
[IMP] account_analytic_parent: black, isort, prettier
cvinh Feb 18, 2021
1689af7
[MIG] account_analytic_parent: Migration to 14.0
cvinh Feb 18, 2021
c731347
[UPD] Update account_analytic_parent.pot
oca-travis Feb 24, 2021
3eb7a64
[UPD] README.rst
OCA-git-bot Feb 24, 2021
9b00677
[FIX] account_analytic_parent: resolve conflict
hailangvn Jan 15, 2022
4f1b451
account_analytic_parent 14.0.1.0.1
OCA-git-bot Jan 15, 2022
efafff8
[MIG] account_analytic_parent: Migration to 15.0
Dariosi Jan 28, 2022
55fcf85
[UPD] Update account_analytic_parent.pot
Feb 8, 2022
f070a8d
[UPD] README.rst
OCA-git-bot Feb 8, 2022
1dd0daf
Translated using Weblate (French)
ypapouin Jun 9, 2022
5431065
[MIG] account_analytic_parent: Migration to 16.0
Nov 29, 2022
beda93b
[UPD] Update account_analytic_parent.pot
Jan 12, 2024
4fd90d7
[BOT] post-merge updates
OCA-git-bot Jan 12, 2024
3477a84
Update translation files
weblate Jan 12, 2024
1a92946
Added translation using Weblate (Italian)
mymage Feb 23, 2024
9c3100c
Translated using Weblate (Italian)
mymage Feb 23, 2024
21b0cf4
[IMP] account_analytic_parent: pre-commit auto fixes
RicardCForgeFlow Mar 11, 2024
211dc46
[MIG] account_analytic_parent: Migration to 17.0
RicardCForgeFlow Mar 13, 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
103 changes: 103 additions & 0 deletions account_analytic_parent/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
=======================
Account Analytic Parent
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c97193bdb3106dc214b8de9a6d22f5dfe383fa75bdefebb7bbec19e40cb79ca7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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--analytic-lightgray.png?logo=github
:target: https://github.com/OCA/account-analytic/tree/17.0/account_analytic_parent
:alt: OCA/account-analytic
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-analytic-17-0/account-analytic-17-0-account_analytic_parent
: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-analytic&target_branch=17.0
:alt: Try me on Runboat

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

This module reintroduces the hierarchy to the analytic accounts as it
was in previous versions of Odoo. This module is a base module for other
modules to manage the hierarchy concept in analytics.

**Table of contents**

.. contents::
:local:

Usage
=====

Activate the analytic accounting in Accounting > Configuration >
Settings

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-analytic/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-analytic/issues/new?body=module:%20account_analytic_parent%0Aversion:%2017.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
-------

* Matmoz d.o.o.
* Luxim d.o.o.
* Deneroteam
* ForgeFlow
* Tecnativa
* CorporateHub

Contributors
------------

- ForgeFlow <http://www.forgeflow.com>
- Luxim d.o.o. <http://www.luxim.si>
- Matmoz d.o.o. <http://www.matmoz.si>
- Deneroteam. <[email protected]>
- SerpentCS <http://www.serpentcs.com/>
- Pedro M. Baeza <[email protected]>
- Vicent Cubells <[email protected]>
- David Vidal <[email protected]>
- Jaume Planas <[email protected]>
- `CorporateHub <https://corporatehub.eu/>`__

- Alexey Pelykh <[email protected]>

- Pedro Gonzalez <[email protected]>
- Darius Žižys <[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-analytic <https://github.com/OCA/account-analytic/tree/17.0/account_analytic_parent>`_ project on GitHub.

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

from . import models
from .hooks import post_init_hook
30 changes: 30 additions & 0 deletions account_analytic_parent/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2017 ForgeFlow S.L.
# Copyright 2017 Luxim d.o.o.
# Copyright 2017 Matmoz d.o.o.
# Copyright 2017 Deneroteam.
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# Copyright 2017 Tecnativa
# Copyright 2018 Brainbean Apps
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Account Analytic Parent",
"summary": """
This module reintroduces the hierarchy to the analytic accounts.""",
"version": "17.0.1.0.0",
"category": "Accounting & Finance",
"license": "AGPL-3",
"author": "Matmoz d.o.o., "
"Luxim d.o.o., "
"Deneroteam, "
"ForgeFlow, "
"Tecnativa, "
"CorporateHub, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
"depends": ["account", "analytic"],
"data": ["views/account_analytic_account_view.xml"],
"demo": ["demo/analytic_account_demo.xml"],
"post_init_hook": "post_init_hook",
}
202 changes: 202 additions & 0 deletions account_analytic_parent/demo/analytic_account_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!--
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-->
<record id="analytic_project_1" model="account.analytic.account">
<field name="name">Project 1</field>
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic_project_2" model="account.analytic.account">
<field name="name">Project 2</field>
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic_journal_trainings" model="account.analytic.account">
<field name="name">Training</field>
<field name="parent_id" ref="analytic.analytic_internal" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_in_house" model="account.analytic.account">
<field name="name">In House</field>
<field name="parent_id" ref="analytic_journal_trainings" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_online" model="account.analytic.account">
<field name="name">Online</field>
<field name="parent_id" ref="analytic_journal_trainings" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_support" model="account.analytic.account">
<field name="name">Support</field>
<field name="parent_id" ref="analytic.analytic_our_super_product" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_partners" model="account.analytic.account">
<field name="name">Partners</field>
<field name="parent_id" ref="analytic_support" />
<field name="plan_id" ref="analytic.analytic_plan_internal" />
</record>
<record id="analytic_customers" model="account.analytic.account">
<field name="name">Customers</field>
<field name="parent_id" ref="analytic_support" />
<field name="plan_id" ref="analytic.analytic_plan_internal" />
</record>
<record id="analytic_support_internal" model="account.analytic.account">
<field name="name">Internal</field>
<field name="parent_id" ref="analytic_support" />
<field name="plan_id" ref="analytic.analytic_plan_internal" />
</record>
<record id="analytic_integration" model="account.analytic.account">
<field name="name">Integration</field>
<field name="parent_id" ref="analytic.analytic_our_super_product" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_consultancy" model="account.analytic.account">
<field name="name">Consultancy</field>
<field name="parent_id" ref="analytic.analytic_our_super_product" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_super_product_trainings" model="account.analytic.account">
<field name="name">Training</field>
<field name="parent_id" ref="analytic.analytic_our_super_product" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_seagate_p1" model="account.analytic.account">
<field name="name">Seagate P1</field>
<field name="parent_id" ref="analytic_integration" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic_seagate_p2" model="account.analytic.account">
<field name="name">Seagate P2</field>
<field name="parent_id" ref="analytic_integration" />
<field name="partner_id" ref="base.res_partner_4" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record
id="analytic.analytic_millennium_industries"
model="account.analytic.account"
>
<field name="name">Millennium Industries</field>
<field name="parent_id" ref="analytic_integration" />
<field name="partner_id" ref="base.res_partner_2" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic.analytic_integration_c2c" model="account.analytic.account">
<field name="name">CampToCamp</field>
<field name="parent_id" ref="analytic_integration" />
<field name="partner_id" ref="base.res_partner_1" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic.analytic_agrolait" model="account.analytic.account">
<field name="name">Agrolait</field>
<field name="parent_id" ref="analytic_customers" />
<field name="partner_id" ref="base.res_partner_2" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic.analytic_asustek" model="account.analytic.account">
<field name="name">Asustek</field>
<field name="parent_id" ref="analytic_customers" />
<field name="partner_id" ref="base.res_partner_1" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic.analytic_deltapc" model="account.analytic.account">
<field name="name">Delta PC</field>
<field name="parent_id" ref="analytic_customers" />
<field name="partner_id" ref="base.res_partner_4" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic.analytic_spark" model="account.analytic.account">
<field name="name">Spark Systems</field>
<field name="parent_id" ref="analytic_partners" />
<field name="partner_id" ref="base.res_partner_1" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic.analytic_nebula" model="account.analytic.account">
<field name="name">Nebula</field>
<field name="parent_id" ref="analytic_partners" />
<field name="partner_id" ref="base.res_partner_2" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record
id="analytic.analytic_luminous_technologies"
model="account.analytic.account"
>
<field name="name">Luminous Technologies</field>
<field name="parent_id" ref="analytic_partners" />
<field name="partner_id" ref="base.res_partner_1" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record id="analytic.analytic_think_big_systems" model="account.analytic.account">
<field name="name">Think Big Systems</field>
<field name="parent_id" ref="analytic_partners" />
<field name="partner_id" ref="base.res_partner_2" />
<field name="plan_id" ref="analytic.analytic_plan_projects" />
</record>
<record
id="analytic.analytic_partners_camp_to_camp"
model="account.analytic.account"
>
<field name="name">Camp to Camp</field>
<field name="parent_id" ref="analytic_partners" />
<field name="partner_id" ref="base.res_partner_3" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_project_2_support" model="account.analytic.account">
<field name="name">Support</field>
<field name="parent_id" ref="analytic_project_2" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_project_2_development" model="account.analytic.account">
<field name="name">Development</field>
<field name="parent_id" ref="analytic_project_2" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_project_1_trainings" model="account.analytic.account">
<field name="name">Training</field>
<field name="parent_id" ref="analytic_project_1" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_project_1_development" model="account.analytic.account">
<field name="name">Development</field>
<field name="parent_id" ref="analytic_project_1" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_administratif" model="account.analytic.account">
<field name="name">Administrative</field>
<field name="parent_id" ref="analytic.analytic_internal" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_commercial_marketing" model="account.analytic.account">
<field name="name">Commercial &amp; Marketing</field>
<field name="parent_id" ref="analytic.analytic_internal" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record
id="analytic_our_super_product_development"
model="account.analytic.account"
>
<field name="name">Our Super Product Development</field>
<field name="parent_id" ref="analytic.analytic_internal" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_stable" model="account.analytic.account">
<field name="name">Stable</field>
<field name="parent_id" ref="analytic_our_super_product_development" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_trunk" model="account.analytic.account">
<field name="name">Trunk</field>
<field name="parent_id" ref="analytic_our_super_product_development" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_paid" model="account.analytic.account">
<field name="name">Paid</field>
<field name="parent_id" ref="analytic.analytic_absences" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
<record id="analytic_unpaid" model="account.analytic.account">
<field name="name">Unpaid</field>
<field name="parent_id" ref="analytic.analytic_absences" />
<field name="plan_id" ref="analytic.analytic_plan_departments" />
</record>
</odoo>
6 changes: 6 additions & 0 deletions account_analytic_parent/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2018 Brainbean Apps
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).


def post_init_hook(env):
env["account.analytic.account"]._parent_store_compute()
Loading
Loading