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_analytic_parent: Migration to 16.0 #501

Merged
merged 64 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
0714968
account_analytic_parent
AaronHForgeFlow Apr 12, 2017
fece5ff
[IMP] account_analytic_parent: add tree view to adviser wizard + Add …
cubells May 12, 2017
38658d3
[MIG] account_analytic_parent: Migration to 10.0
chienandalu Jun 27, 2017
1d3b1e0
OCA Transbot updated translations from Transifex
oca-transbot Jun 30, 2017
2d09243
[MIG] account_analytic_parent: Migration to 11.0
Apr 9, 2018
36da459
[UPD] Update account_analytic_parent.pot
oca-travis Oct 2, 2018
d5b64eb
Translated using Weblate (German)
rschnapka Oct 10, 2018
804e2be
Translated using Weblate (Catalan)
Oct 12, 2018
47cff02
[IMP] account_analytic_parent: performance (#200)
AaronHForgeFlow Nov 16, 2018
0178724
[IMP]propagate active through hierarchy
AaronHForgeFlow Oct 10, 2018
40ccd3d
[UPD] Update account_analytic_parent.pot
oca-travis Nov 27, 2018
1ea6b45
[MIG] account_analytic_parent: Migration to 12.0
alexey-pelykh Nov 19, 2018
1437098
[UPD] Update account_analytic_parent.pot
oca-travis Dec 3, 2018
aed5a85
Update translation files
oca-transbot Dec 9, 2018
6b3bf81
Translated using Weblate (Spanish)
mvrodriguez Feb 1, 2019
ec8cf3e
Added translation using Weblate (Galician)
mvrodriguez Feb 4, 2019
e1df88d
Added translation using Weblate (Galician)
mvrodriguez Feb 4, 2019
478c540
Fix compute credit debit and balance
cubells Jan 4, 2019
f23a4a0
[IMP] account_analytic_parent: improve account tree view
cubells Jan 3, 2019
6c906ad
Translated using Weblate (Galician)
mvrodriguez Feb 4, 2019
ec925d7
[MIG] account_analytic_parent: improve account tree view
alexey-pelykh Feb 4, 2019
08e9bba
[IMP] account_analytic_parent: Improvement on the read_group
pedrobaeza Feb 5, 2019
79199b2
[IMP] account_analytic_parent: Further improvement on read_group
alexey-pelykh Feb 4, 2019
cb09d2b
[FIX] account_analytic_parent: compute parent_path
alexey-pelykh Feb 12, 2019
5e55e83
[UPD] Update account_analytic_parent.pot
oca-travis Feb 14, 2019
3ff2d6a
Update translation files
oca-transbot Mar 3, 2019
5bd0493
Translated using Weblate (Dutch)
Apr 2, 2019
d252858
Translated using Weblate (Croatian)
badbole May 3, 2019
086dd9e
Translated using Weblate (French)
BECJIE32 May 3, 2019
8d4e56f
Translated using Weblate (Spanish)
BECJIE32 May 3, 2019
7a4b4f0
Translated using Weblate (Catalan)
May 27, 2019
7fa4f15
Translated using Weblate (Spanish)
pedrobaeza May 27, 2019
a5949f4
Translated using Weblate (Spanish)
enriquemartin Jul 16, 2019
6f206ae
[UPD] README.rst
OCA-git-bot Jul 29, 2019
4391e45
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
f138868
Translated using Weblate (French)
gurneyalex Aug 6, 2019
5fd088e
Translated using Weblate (Slovenian)
sysadminmatmoz Aug 8, 2019
336564d
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 29, 2019
f55d4d5
Translated using Weblate (Catalan)
Oct 7, 2019
f56b1be
[IMP] account_analytic_parent: black, isort
pegonzalezspesol Nov 20, 2019
ca837ae
[MIG] account_analytic_parent: Migration to 13.0
pegonzalezspesol Nov 20, 2019
7af757e
[UPD] Update account_analytic_parent.pot
oca-travis Mar 26, 2020
cba901e
[UPD] README.rst
OCA-git-bot Mar 26, 2020
0ecded6
Update translation files
oca-transbot Mar 30, 2020
68432a3
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
da5c250
Added translation using Weblate (Abkhazian)
Sep 30, 2020
45ad0ba
Added translation using Weblate (Thai)
Sep 30, 2020
9232c64
[UPD] README.rst
OCA-git-bot Oct 5, 2020
5002cec
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 8, 2020
fe51559
[UPD] README.rst
OCA-git-bot Nov 8, 2020
3941bb7
Translated using Weblate (Galician)
Feb 10, 2021
b29204c
Translated using Weblate (Galician)
Feb 11, 2021
3920c94
[IMP] account_analytic_parent: black, isort, prettier
cvinh Feb 18, 2021
b70083f
[MIG] account_analytic_parent: Migration to 14.0
cvinh Feb 18, 2021
bb4dd4d
[UPD] Update account_analytic_parent.pot
oca-travis Feb 24, 2021
77118c1
[UPD] README.rst
OCA-git-bot Feb 24, 2021
d35ada0
[FIX] account_analytic_parent: resolve conflict
hailangvn Jan 15, 2022
b219d4d
account_analytic_parent 14.0.1.0.1
OCA-git-bot Jan 15, 2022
af516ee
[MIG] account_analytic_parent: Migration to 15.0
Dariosi Jan 28, 2022
7dbf903
[UPD] Update account_analytic_parent.pot
Feb 8, 2022
b997f71
[UPD] README.rst
OCA-git-bot Feb 8, 2022
018f16c
Translated using Weblate (French)
ypapouin Jun 9, 2022
6f3aee4
[IMP] account_analytic_parent: pre-commit stuff
Nov 24, 2022
1911139
[MIG] account_analytic_parent: Migration to 16.0
Nov 29, 2022
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
100 changes: 100 additions & 0 deletions account_analytic_parent/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
=======================
Account Analytic Parent
=======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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-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/15.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-15-0/account-analytic-15-0-account_analytic_parent
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/87/15.0
:alt: Try me on Runbot

|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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_parent%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
~~~~~~~

* 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/15.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": "16.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>
10 changes: 10 additions & 0 deletions account_analytic_parent/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2018 Brainbean Apps
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import SUPERUSER_ID, api


def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})

env["account.analytic.account"]._parent_store_compute()
Loading
Loading