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

Help Online: export improvement #52

Merged
merged 2 commits into from
Nov 22, 2014
Merged

Conversation

Cedric-Pigeon
Copy link

If the same image is used on multiple pages, the website module creates only one ir.attachment referenced several times which is optimal.

For help pages, the export feature generates as many xml_id as images. But finally all these xml_id will be linked to the same ir.attachment.
By this way you get several ir.model.data records referencing the same res_id.
This is really unsafe because if you delete one of these images, the odoo update process will delete the ir.attachment and all ir_model_data records linked. So the image will disappear from all pages.

I resolved the problem by using a single xml_id for all duplicates images.

In addition the autobackup feature is not called anymore. This is useless because it should be done in a inherited module. Otherwise it will be executed twice.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 0103535 on acsone:8.0help_online_fix into a190a5a on OCA:8.0.

@legalsylvain legalsylvain added this to the 8.0 milestone Nov 17, 2014
@foutoucour
Copy link

👍

@pedrobaeza
Copy link
Member

👍 Thanks for the improvement.

@Cedric-Pigeon, have you seen the debate at #55 ?

pedrobaeza added a commit that referenced this pull request Nov 22, 2014
Help Online: export improvement
@pedrobaeza pedrobaeza merged commit a79e2f7 into OCA:8.0 Nov 22, 2014
@Cedric-Pigeon Cedric-Pigeon deleted the 8.0help_online_fix branch November 24, 2014 08:05
@Cedric-Pigeon
Copy link
Author

@pedrobaeza
Thanks for merging.
I just posted a comment on #55.

BT-fgarbely pushed a commit to BT-fgarbely/web that referenced this pull request Apr 3, 2018
Syncing from upstream OCA/web (10.0)
leemannd pushed a commit to camptocamp/web that referenced this pull request May 29, 2018
phongdao pushed a commit to phongdao/web that referenced this pull request Jan 17, 2020
backport style v11 to v10
davidtranhp pushed a commit to davidtranhp/web that referenced this pull request Feb 7, 2024
backport style v11 to v10
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.

7 participants