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] report_context: Migration to 16.0 #783

Merged
merged 20 commits into from
Dec 8, 2023

Conversation

AlexPForgeFlow
Copy link
Contributor

Migration to 16.0

ForgeFlow

@AlexPForgeFlow AlexPForgeFlow force-pushed the 16.0-mig-report_context branch 5 times, most recently from 7ecd1d2 to 69d94f7 Compare August 16, 2023 08:48
Copy link
Contributor

@mariadforgeflow mariadforgeflow left a comment

Choose a reason for hiding this comment

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

LGTM!

@gpothier
Copy link

gpothier commented Oct 9, 2023

Hi, I tried the original v14 version of this module in a v16 install and it did not work out of the box, I had to copy the route params in the controller from the base module for it to work:

    @route([
        '/report/<converter>/<reportname>',
        '/report/<converter>/<reportname>/<docids>',
    ], type='http', auth='user', website=True)
    def report_routes(self, reportname, docids=None, converter=None, **data):

(the v14 version just has route() with no params)

I'm not sure if I'm looking at this MR right, because it appears as if all the files were new, so I don't see a diff wrt v14, but I see that the route params aren't there, so it is not clear to me why this would work. Maybe there were recent changes in v16 that prevent the empty route() to work?

@AlexPForgeFlow
Copy link
Contributor Author

@route([
        '/report/<converter>/<reportname>',
        '/report/<converter>/<reportname>/<docids>',
    ],

Hi @gpothier , I think they are not necessary as this method is inherited from the import "from odoo.addons.web.controllers import report" and the parent method already define the route. So in this module is only changing the body of the method.

@gurneyalex
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-783-by-gurneyalex-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Dec 8, 2023
Signed-off-by gurneyalex
@OCA-git-bot
Copy link
Contributor

It looks like something changed on 16.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 16.0-ocabot-merge-pr-783-by-gurneyalex-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Dec 8, 2023
Signed-off-by gurneyalex
@OCA-git-bot
Copy link
Contributor

It looks like something changed on 16.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 16.0-ocabot-merge-pr-783-by-gurneyalex-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ea3f370 into OCA:16.0 Dec 8, 2023
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 7885eac. 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.

8 participants