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

Draft: [14.0][ADD] keep latest report record attachment #817

Draft
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

KKamaa
Copy link
Contributor

@KKamaa KKamaa commented Nov 18, 2023

@thomaspaulb @gfcapalbo maybe we can review this one?

@KKamaa KKamaa force-pushed the 14.0-02094S-keep-latest-attachment branch 2 times, most recently from 0d470c5 to e3526b2 Compare November 18, 2023 23:09
@thomaspaulb thomaspaulb force-pushed the 14.0-02094S-keep-latest-attachment branch from 865cfaa to 254bd43 Compare February 16, 2024 14:51
@thomaspaulb thomaspaulb force-pushed the 14.0-02094S-keep-latest-attachment branch from 254bd43 to 94e1fbe Compare February 17, 2024 04:30
domain = [
("res_model", "=", record._name),
("res_id", "=", str(record.id)),
("res_name", "ilike", "%{}%".format(record.name)),

Choose a reason for hiding this comment

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

Tests are running into a failure here:

2024-02-17 04:32:39,639 3479 INFO odoo odoo.addons.base.models.ir_actions_report: The PDF report has been generated for model: res.partner, records [41]. 
2024-02-17 04:32:39,641 3479 INFO odoo odoo.addons.base.models.ir_actions_report: The PDF document Test partner.pdf is now saved in the database 
2024-02-17 04:32:39,654 3479 INFO odoo odoo.addons.base.models.ir_actions_report: The PDF report has been generated from attachments. 
2024-02-17 04:32:39,655 3479 ERROR odoo odoo.osv.expression: Non-stored field ir.attachment.res_name cannot be searched. 

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 16, 2024
@KKamaa KKamaa marked this pull request as draft June 16, 2024 16:07
@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 23, 2024
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants