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

[12.0] [MIG] analytic_base_department #209

Merged
merged 12 commits into from
Apr 2, 2019

Conversation

anandkansagra
Copy link
Member

Issue Reference

@oca-clabot
Copy link

Hey @anandkansagra, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@pedrobaeza pedrobaeza added this to the 12.0 milestone Dec 4, 2018
@anandkansagra anandkansagra force-pushed the 12.0-mig-analytic_base_department branch from fcc2f40 to f39881b Compare December 4, 2018 11:11
@oca-clabot
Copy link

Hey @anandkansagra, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@anandkansagra anandkansagra force-pushed the 12.0-mig-analytic_base_department branch from f39881b to 5b7ccb1 Compare December 5, 2018 14:38
@oca-clabot
Copy link

Hey @anandkansagra, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

Copy link

@emagdalenaC2i emagdalenaC2i left a comment

Choose a reason for hiding this comment

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

Code review

"author": "Camptocamp, Daniel Reis, Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Generic Modules/Projects & Services",
"website": "https://github.com/OCA/account-analytic",
"depends": ["account",
"analytic",
Copy link
Member

Choose a reason for hiding this comment

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

Why is this removed? The module uses account.analytic.account Model, provided by the analytic module.

Copy link
Member Author

Choose a reason for hiding this comment

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

@dreispt ,

If we will install the account module then analytic module will automatically installed due to dependency. So no need to put analytic module in the dependency
Here is the Reference:- https://github.com/odoo/odoo/blob/12.0/addons/account/__manifest__.py#L18

Copy link
Member

@dreispt dreispt left a comment

Choose a reason for hiding this comment

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

Thanks @anandkansagra, good catch. I would then prefer to keep the closest dependency: this needs analytic but doesn't need account. So I would rather remove the account dependency.

<field name="department_id"/>
</field>
</field>
</record>
Copy link
Member

Choose a reason for hiding this comment

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

No point in changing the XML indentation, but discussing that would be bikeshedding.

Copy link
Member

@nikul-serpentcs nikul-serpentcs left a comment

Choose a reason for hiding this comment

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

Code Review LGTM 👍

@anandkansagra
Copy link
Member Author

Thanks @anandkansagra, good catch. I would then prefer to keep the closest dependency: this needs analytic but doesn't need account. So I would rather remove the account dependency.

@dreispt ,
Technically it will not throw an error. I have seen that in the analytic module, there seems no menuitem. All the menuitem related analytic module is defined in the account module. So do we need to change it in this PR?

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza pedrobaeza force-pushed the 12.0-mig-analytic_base_department branch from 5b7ccb1 to 46cfac0 Compare April 2, 2019 07:49
@pedrobaeza
Copy link
Member

I have squashed a bit commit history and merging when finished.

@pedrobaeza pedrobaeza merged commit 090235e into OCA:12.0 Apr 2, 2019
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.