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

[IMP] *: replace ir.model.data by cloc_exclude entries in manifest #267

Closed
wants to merge 7 commits into from

Conversation

dhrs-odoo
Copy link
Contributor

@dhrs-odoo dhrs-odoo commented Oct 9, 2024

In this commit, we replace all entries of ir.model.data by adding the specific files into the cloc_exclude list in the manifest. This will automatically create the necessary ir.model.data. Also, the demo files that could impact the cloc, mainly website views, are now excluded as well.

Task-4243531

Copy link
Collaborator

@vava-odoo vava-odoo left a comment

Choose a reason for hiding this comment

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

Please update the test linked to the cloc: remove the if-clause at the beginning and modify the error message

fitness/__manifest__.py Outdated Show resolved Hide resolved
photography/__manifest__.py Show resolved Hide resolved
Copy link
Contributor

@jaeschwa jaeschwa left a comment

Choose a reason for hiding this comment

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

Good work needs some adjustments

certification_organism/__manifest__.py Outdated Show resolved Hide resolved
coal_petroleum/__manifest__.py Outdated Show resolved Hide resolved
electronic_store/__manifest__.py Outdated Show resolved Hide resolved
eyewear_shop/__manifest__.py Outdated Show resolved Hide resolved
industry_real_estate/__manifest__.py Outdated Show resolved Hide resolved
solar_installation/__manifest__.py Show resolved Hide resolved
tests/test_generic/tests/test_industry_requirements.py Outdated Show resolved Hide resolved
@dhrs-odoo dhrs-odoo force-pushed the 18.0-cloc-exclude-dhrs branch 4 times, most recently from a9445e4 to e18f4c1 Compare October 10, 2024 09:01
Copy link
Contributor

@jaeschwa jaeschwa left a comment

Choose a reason for hiding this comment

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

Good job, could you just ensure consistency with the name of the file so they are all named website_view.xml. Thanks

industry_lawyer/__manifest__.py Outdated Show resolved Hide resolved
non_profit_organization/__manifest__.py Outdated Show resolved Hide resolved
@dhrs-odoo
Copy link
Contributor Author

Hello @jaeschwa
Done with the changes
Thank You

Copy link
Collaborator

@vava-odoo vava-odoo left a comment

Choose a reason for hiding this comment

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

Stopping here, as I don't understand why you moved all website views to demo

agriculture_shop/data/website_view.xml Outdated Show resolved Hide resolved
architects/demo/website_view.xml Outdated Show resolved Hide resolved
art_craft/data/custom_view.xml Outdated Show resolved Hide resolved
tests/test_generic/tests/test_industry_requirements.py Outdated Show resolved Hide resolved
@robodoo
Copy link
Collaborator

robodoo commented Nov 19, 2024

Pull request status dashboard

@robodoo
Copy link
Collaborator

robodoo commented Nov 19, 2024

@dhrs-odoo I didn't know about this PR and had to retrieve its information, you may have to re-approve it as I didn't see previous commands.

@dhrs-odoo dhrs-odoo force-pushed the 18.0-cloc-exclude-dhrs branch 15 times, most recently from 1d11756 to ea0cae1 Compare November 20, 2024 06:34
@dhrs-odoo
Copy link
Contributor Author

Hello @vava-odoo
I have incorporated the changes
Please have a look at it once you are free
Thank You 😇

Copy link
Collaborator

@vava-odoo vava-odoo left a comment

Choose a reason for hiding this comment

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

I stop the review here, please apply the comments to all other modules before another review, please. Thanks!

agriculture_shop/__manifest__.py Outdated Show resolved Hide resolved
agriculture_shop/demo/website_view.xml Outdated Show resolved Hide resolved
architects/__manifest__.py Outdated Show resolved Hide resolved
architects/demo/website_theme_apply.xml Outdated Show resolved Hide resolved
art_craft/__manifest__.py Outdated Show resolved Hide resolved
art_craft/__manifest__.py Show resolved Hide resolved
bike_leasing/__manifest__.py Outdated Show resolved Hide resolved
bike_leasing/demo/website_view.xml Outdated Show resolved Hide resolved
@dhrs-odoo
Copy link
Contributor Author

Hello @vava-odoo
I have completed the changes
Can you please have a look at it once you are free
Thanks and Have a great day ahead 😇

Copy link
Collaborator

@vava-odoo vava-odoo left a comment

Choose a reason for hiding this comment

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

Last small comments. Could you also rebase your PR to make sure we don't miss other modules to update. Thanks!

corporate_gifts/data/website_menu.xml Show resolved Hide resolved
eyewear_shop/__manifest__.py Outdated Show resolved Hide resolved
industry_restaurant/demo/website_view.xml Outdated Show resolved Hide resolved
micro_brewery/demo/website_theme_apply.xml Outdated Show resolved Hide resolved
micro_brewery/demo/website_view.xml Outdated Show resolved Hide resolved
@vava-odoo vava-odoo dismissed jaeschwa’s stale review November 25, 2024 08:26

All requests applied

@vava-odoo vava-odoo changed the title [REF] .*: removed the model data and added cloc in manifest [IMP] *: replace ir.model.data by cloc_exclude entries in manifest Nov 25, 2024
Copy link
Collaborator

@vava-odoo vava-odoo left a comment

Choose a reason for hiding this comment

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

@robodoo r+ squash

@robodoo
Copy link
Collaborator

robodoo commented Nov 25, 2024

Merge method set to squash.

@robodoo robodoo closed this in 5802a3a Nov 25, 2024
@vava-odoo vava-odoo deleted the 18.0-cloc-exclude-dhrs branch November 25, 2024 12:25
robodoo pushed a commit that referenced this pull request Nov 25, 2024
In this commit, we replace all entries of ir.model.data by adding the specific files into the cloc_exclude list in the manifest. This will automatically create the necessary ir.model.data. Also, the demo files that could impact the cloc, mainly website views, are now excluded as well.

Task-4243531

closes #307

Forward-port-of: #267
Signed-off-by: Vallaeys Valentin (vava) <[email protected]>
Signed-off-by: Dhrumil Shah (dhrs) <[email protected]>
vava-odoo pushed a commit to odoo-dev/industry that referenced this pull request Nov 27, 2024
In this commit, we replace all entries of ir.model.data by adding the specific files into the cloc_exclude list in the manifest. This will automatically create the necessary ir.model.data. Also, the demo files that could impact the cloc, mainly website views, are now excluded as well.

Task-4243531

closes odoo#267

Signed-off-by: Vallaeys Valentin (vava) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants