Skip to content

[17.0][MIG] report_substitute: Migration to 17.0 - #828

Merged
OCA-git-bot merged 27 commits into
OCA:17.0from
adhoc-dev:17.0-mig-report_substitute
May 23, 2024
Merged

OCA-git-bot merged 27 commits into
OCA:17.0from
adhoc-dev:17.0-mig-report_substitute

Conversation

@lef-adhoc

Copy link
Copy Markdown
Contributor

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
26 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

@sbejaoui sbejaoui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, code review

@atchuthan atchuthan left a comment

Copy link
Copy Markdown
Member

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.

Comment thread report_substitute/models/mail_thread.py Outdated
class MailThread(models.AbstractModel):
_inherit = "mail.thread"

def message_post_with_template(self, template_id, **kwargs):

@matiasperalta1 matiasperalta1 Apr 15, 2024

Copy link
Copy Markdown
Contributor

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)

@lef-adhoc
lef-adhoc force-pushed the 17.0-mig-report_substitute branch from 29a842b to 633f9ba Compare April 15, 2024 19:43

@atchuthan atchuthan left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown

@sbejaoui can we get this merged?

@sakthi-shan

Copy link
Copy Markdown

@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
Comment thread report_substitute/models/mail_thread.py Outdated
):
template, view = self._get_source_from_ref(source_ref)
old_report_template_ids = False
if template.report_template_ids and self.ids:

Copy link
Copy Markdown
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
lef-adhoc force-pushed the 17.0-mig-report_substitute branch from 156ccf0 to 410659a Compare May 14, 2024 15:36
@lef-adhoc

Copy link
Copy Markdown
Contributor Author

@SodexisTeam Could you check if it is ok now?

@SodexisTeam SodexisTeam left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
Member

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

@HviorForgeFlow

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
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
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

rrebollo pushed a commit to BinhexTeam/reporting-engine that referenced this pull request Apr 16, 2026
Signed-off-by HviorForgeFlow
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