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

[18.0][MIG] account_analytic_parent: Migration to 18.0 #698

Merged
merged 55 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d4fd607
account_analytic_parent
AaronHForgeFlow Apr 12, 2017
0f4ab8f
[IMP] account_analytic_parent: add tree view to adviser wizard + Add …
cubells May 12, 2017
5af53c5
[MIG] account_analytic_parent: Migration to 10.0
chienandalu Jun 27, 2017
9e75212
[MIG] account_analytic_parent: Migration to 11.0
Apr 9, 2018
4e4b26d
[UPD] Update account_analytic_parent.pot
oca-travis Oct 2, 2018
7808bab
Translated using Weblate (German)
rschnapka Oct 10, 2018
f9120aa
Translated using Weblate (Catalan)
Oct 12, 2018
dc42126
[IMP] account_analytic_parent: performance (#200)
AaronHForgeFlow Nov 16, 2018
0392e28
[IMP]propagate active through hierarchy
AaronHForgeFlow Oct 10, 2018
f2f3d74
[MIG] account_analytic_parent: Migration to 12.0
alexey-pelykh Nov 19, 2018
1b0c47a
Translated using Weblate (Spanish)
mvrodriguez Feb 1, 2019
cce9c15
Added translation using Weblate (Galician)
mvrodriguez Feb 4, 2019
96f9ab6
Fix compute credit debit and balance
cubells Jan 4, 2019
b59c058
[IMP] account_analytic_parent: improve account tree view
cubells Jan 3, 2019
8ae41e5
Translated using Weblate (Galician)
mvrodriguez Feb 4, 2019
b06b041
[MIG] account_analytic_parent: improve account tree view
alexey-pelykh Feb 4, 2019
a57f026
[IMP] account_analytic_parent: Improvement on the read_group
pedrobaeza Feb 5, 2019
5a07fc8
[IMP] account_analytic_parent: Further improvement on read_group
alexey-pelykh Feb 4, 2019
f6c4fdf
[FIX] account_analytic_parent: compute parent_path
alexey-pelykh Feb 12, 2019
f8ea8e4
Translated using Weblate (Dutch)
Apr 2, 2019
4e82aee
Translated using Weblate (Croatian)
badbole May 3, 2019
491c837
Translated using Weblate (French)
BECJIE32 May 3, 2019
42bc2f8
Translated using Weblate (Spanish)
BECJIE32 May 3, 2019
85d9cc3
Translated using Weblate (Catalan)
May 27, 2019
dc60de8
Translated using Weblate (Spanish)
pedrobaeza May 27, 2019
1ab9459
Translated using Weblate (Spanish)
enriquemartin Jul 16, 2019
135ea2d
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
b7f16ce
Translated using Weblate (French)
gurneyalex Aug 6, 2019
368081d
Translated using Weblate (Slovenian)
sysadminmatmoz Aug 8, 2019
5af11f9
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 29, 2019
e66eca1
Translated using Weblate (Catalan)
Oct 7, 2019
658e7cd
[IMP] account_analytic_parent: black, isort
pegonzalezspesol Nov 20, 2019
9451428
[MIG] account_analytic_parent: Migration to 13.0
pegonzalezspesol Nov 20, 2019
50d98f7
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
5b99f62
Added translation using Weblate (Abkhazian)
Sep 30, 2020
5c86fa9
Added translation using Weblate (Thai)
Sep 30, 2020
00dd66e
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 8, 2020
fb8e935
Translated using Weblate (Galician)
Feb 10, 2021
0a187fd
[IMP] account_analytic_parent: black, isort, prettier
cvinh Feb 18, 2021
72d1625
[MIG] account_analytic_parent: Migration to 14.0
cvinh Feb 18, 2021
643e9bd
[FIX] account_analytic_parent: resolve conflict
hailangvn Jan 15, 2022
4fe1a69
account_analytic_parent 14.0.1.0.1
OCA-git-bot Jan 15, 2022
10b1304
[MIG] account_analytic_parent: Migration to 15.0
Dariosi Jan 28, 2022
3e4d179
Translated using Weblate (French)
ypapouin Jun 9, 2022
7499c75
[MIG] account_analytic_parent: Migration to 16.0
Nov 29, 2022
eeecf7c
Added translation using Weblate (Italian)
mymage Feb 23, 2024
84d7637
[IMP] account_analytic_parent: pre-commit auto fixes
RicardCForgeFlow Mar 11, 2024
75b5df6
[MIG] account_analytic_parent: Migration to 17.0
RicardCForgeFlow Mar 13, 2024
94fa5b0
Translated using Weblate (Italian)
mymage Mar 19, 2024
be4c2f3
Translated using Weblate (Spanish)
Ivorra78 Apr 24, 2024
1261dac
Translated using Weblate (Catalan)
santiagopim May 28, 2024
5fa726a
Translated using Weblate (Chinese (Simplified) (zh_CN))
xtanuiha Jun 16, 2024
6f8b777
Translated using Weblate (Italian)
mymage Jul 1, 2024
0155ebf
[IMP] account_analytic_parent: pre-commit auto fixes
BernatObrador Oct 9, 2024
91891c2
[MIG] account_analytic_parent: Migration to 18.0
BernatObrador Oct 9, 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
106 changes: 106 additions & 0 deletions account_analytic_parent/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
=======================
Account Analytic Parent
=======================

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

.. |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/18.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-18-0/account-analytic-18-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=18.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:%2018.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]>
- APSL - Nagarro <https://apsl.tech>

- Bernat Obrador

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/18.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": "18.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