Skip to content

9.0 attachment preview gs - #108

Closed
ghost wants to merge 17 commits into
OCA:9.0from
ClearCorp-dev:9.0-attachment_preview-gs
Closed

9.0 attachment preview gs#108
ghost wants to merge 17 commits into
OCA:9.0from
ClearCorp-dev:9.0-attachment_preview-gs

Conversation

@ghost

@ghost ghost commented Oct 19, 2016

Copy link
Copy Markdown

No description provided.

@oca-clabot

Copy link
Copy Markdown

Hey @cq-clearcorp, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/website.cla
Here is a list of the users:

  • @cq-clearcorp (login unknown in OCA database)

Appreciation of efforts,
OCA CLAbot

@pedrobaeza pedrobaeza mentioned this pull request Oct 20, 2016
13 tasks
@pedrobaeza

Copy link
Copy Markdown
Member

Please sign the CLA.

@pedrobaeza pedrobaeza 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.

Little comment, but code review + try on runbot correct. Most of the changes are from the new version library.

:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/118/8.0

For further information, please visit:

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.

Remove this part


.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/118/8.0

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.

9.0

@pedrobaeza

Copy link
Copy Markdown
Member

Please squash all Transbot commits together and all your commits also.

@@ -1,11 +1,16 @@
.openerp .oe_sidebar .oe_dropdown_menu li .oe-sidebar-attachment-preview
/*.openerp .oe_sidebar .oe_dropdown_menu li .oe_sidebar_attachment_preview

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.

don't comment out stuff, remove if not necessary

.click(this.on_attachment_preview);
this.update_preview_buttons();
return result;
// return _super.apply(self, arguments);

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.

delete

if(openerp.attachment_preview.can_preview(extension))
var $element = self.$('.oe_binary_preview');
$element.unbind( "click" );
if(can_preview(extension[0]))

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.

formatting

self.view.datarecord.id),
extension,

('data:application/'+extension[0]+';base64,'+

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.

why would you want to do this? With a few really big attachments, your browser becomes really inresponsive

//]]>
</script>
<!-- load some small tweaks for the Odoo integration /-->
<script src="../../src/js/viewerjs_tweaks.js" type="text/javascript" charset="utf-8"></script>

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.

if this is not needed any more, also delete the file

}
return original_Viewer(plugin, parameters);
}
};

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.

you don't include this file any more, so it can go away i guess?

@hbrunn

hbrunn commented Oct 20, 2016

Copy link
Copy Markdown
Member

adding tests to have coverage at least not drop would be good

@hbrunn hbrunn added this to the 9.0 milestone Nov 8, 2016
Added secondary css jquery selector to include the preview buttons in
community and enterprise versions.
@github-actions

Copy link
Copy Markdown

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 Aug 14, 2022
@github-actions github-actions Bot closed this Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs fixing needs review 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.

5 participants