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] report_substitute: Migration to 17.0 #828

Merged
merged 27 commits into from
May 23, 2024

Conversation

lef-adhoc
Copy link

No description provided.

sbejaoui and others added 26 commits December 15, 2023 09:45
This addon give the possibility to substitute a report action by another based on some criteria.
Currently translated at 100.0% (21 of 21 strings)

Translation: reporting-engine-16.0/reporting-engine-16.0-report_substitute
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_substitute/es/
@lef-adhoc lef-adhoc force-pushed the 17.0-mig-report_substitute branch 2 times, most recently from 2ff3cdc to 68ae4da Compare December 15, 2023 15:20
@lef-adhoc lef-adhoc mentioned this pull request Dec 15, 2023
25 tasks
@lef-adhoc lef-adhoc changed the title [MIG] report_substitute: Migration to 17.0 [17.0][MIG] report_substitute: Migration to 17.0 Dec 15, 2023
@lef-adhoc
Copy link
Author

Hi @sbejaoui, may you have check this ?
Thank you

Copy link
Contributor

@sbejaoui sbejaoui left a comment

Choose a reason for hiding this comment

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

LGTM, code review

Copy link
Member

@atchuthan atchuthan left a comment

Choose a reason for hiding this comment

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

Please add changes available in adhoc-dev#1

Code migration is not complete when we used the initial commit, we made corrections and sent PR.

class MailThread(models.AbstractModel):
_inherit = "mail.thread"

def message_post_with_template(self, template_id, **kwargs):
Copy link
Contributor

@matiasperalta1 matiasperalta1 Apr 15, 2024

Choose a reason for hiding this comment

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

Este método cambió
ahora es message_post_with_source
ver en este commit (odoo/odoo@4775bd9)

Copy link
Member

@atchuthan atchuthan left a comment

Choose a reason for hiding this comment

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

👍

@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). 🤖

@sakthi-shan
Copy link

@sbejaoui can we get this merged?

@sakthi-shan
Copy link

@lef-adhoc
DeprecationWarning: XML declarations in HTML module descriptions are deprecated since Odoo 17, report_substitute can just have a UTF8 description with not need for a declaration.
We are getting this Warning in the log with the latest code. Please make the changes.

@lef-adhoc lef-adhoc force-pushed the 17.0-mig-report_substitute branch from 633f9ba to 156ccf0 Compare May 8, 2024 14:27
):
template, view = self._get_source_from_ref(source_ref)
old_report_template_ids = False
if template.report_template_ids and self.ids:
Copy link
Member

Choose a reason for hiding this comment

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

We are getting this error, when template is false.

  File "/opt/odoo/sodtest17-odoo/src/community_modules_links/report_substitute/models/mail_thread.py", line 21, in message_post_with_source
    if template.report_template_ids and self.ids:
AttributeError: 'bool' object has no attribute 'report_template_ids'

@lef-adhoc
Copy link
Author

@SodexisTeam Could you check if it is ok now?

Copy link
Member

@SodexisTeam SodexisTeam left a comment

Choose a reason for hiding this comment

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

Tested and it looks good 👍

@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). 🤖

@atchuthan
Copy link
Member

@OCA/reporting-engine-maintainers can we merge this PR?

@HviorForgeFlow
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-828-by-HviorForgeFlow-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 62ebaff into OCA:17.0 May 23, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

10 participants