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

Conversation

RicardCForgeFlow
Copy link
Contributor

Migration to 17.0

@ForgeFlow

AaronHForgeFlow and others added 30 commits March 11, 2024 17:41
* Removed groups attribute in tree xml element.

* Removed discarded hierarchical tree view support, plus wizard based on that functionality
Currently translated at 100,0% (4 of 4 strings)

Translation: account-analytic-11.0/account-analytic-11.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-11-0/account-analytic-11-0-account_analytic_parent/de/
Currently translated at 100,0% (4 of 4 strings)

Translation: account-analytic-11.0/account-analytic-11.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-11-0/account-analytic-11-0-account_analytic_parent/ca/
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Currently translated at 100.0% (5 of 5 strings)

Translation: account-analytic-12.0/account-analytic-12.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-account_analytic_parent/es/
Currently translated at 100.0% (5 of 5 strings)

Translation: account-analytic-12.0/account-analytic-12.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-account_analytic_parent/gl/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-analytic-12.0/account-analytic-12.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-account_analytic_parent/
Currently translated at 54.5% (6 of 11 strings)

Translation: account-analytic-12.0/account-analytic-12.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-account_analytic_parent/nl/
Currently translated at 100.0% (11 of 11 strings)

Translation: account-analytic-12.0/account-analytic-12.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-account_analytic_parent/hr/
Currently translated at 18.2% (2 of 11 strings)

Translation: account-analytic-12.0/account-analytic-12.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-account_analytic_parent/fr/
Currently translated at 90.9% (10 of 11 strings)

Translation: account-analytic-12.0/account-analytic-12.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-account_analytic_parent/es/
OCA-git-bot and others added 15 commits March 11, 2024 17:41
This is to resolve conflict with `account_analytic_sequence` module.
Currently translated at 100.0% (11 of 11 strings)

Translation: account-analytic-15.0/account-analytic-15.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-15-0/account-analytic-15-0-account_analytic_parent/fr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-analytic-16.0/account-analytic-16.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-account_analytic_parent/
Currently translated at 100.0% (10 of 10 strings)

Translation: account-analytic-16.0/account-analytic-16.0-account_analytic_parent
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-account_analytic_parent/it/
Copy link

@GuillemCForgeFlow GuillemCForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I believe it would be great to add a CONFIGURE.md file detailing that the user accessing to the Analytic Accounting features needs to have the Technical / Analytic Accounting group added.
The rest, code review LGTM 👍🏽

Comment on lines +12 to +14
<field name="plan_id" position="after">
<field name="parent_id" string="Parent Analytic Account" />
</field>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<field name="plan_id" position="after">
<field name="parent_id" string="Parent Analytic Account" />
</field>
<group name="main" position="attributes">
<attribute name="string">General</attribute>
</group>
<group name="main" position="before">
<group name="parent" col="2">
<field name="parent_id" class="oe_inline"/>
</group>
</group>

As a general improvement. I guess that it makes more sense to have the view in a similar structure as in the Product Category, where we also have a Parent-Child relation.
In order to adapt, we also could name the original group with the "General" string. What do you think?

@@ -0,0 +1,448 @@
<?xml version="1.0" encoding="utf-8"?>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<?xml version="1.0" encoding="utf-8"?>

XML declarations in HTML module descriptions are deprecated in Odoo 17

Copy link

@AndreuOForgeFlow AndreuOForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very small suggestion. Other than that LGTM! It would be nice to add in the README file the path to Analytic Accounting: Accounting > Configuration > Analytic Accounting etc.

@dreispt
Copy link
Member

dreispt commented Mar 18, 2024

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-634-by-dreispt-bump-nobump, awaiting test results.

@dreispt
Copy link
Member

dreispt commented Mar 18, 2024

/ocabot migration account_analytic_parent

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Mar 18, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 18, 2024
17 tasks
@OCA-git-bot OCA-git-bot merged commit 6dd772b into OCA:17.0 Mar 18, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at f05dc71. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.