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

[ADD] document_url: A module that allows to put URLs as attached documents. #17

Merged
merged 3 commits into from Oct 20, 2014

Conversation

pedrobaeza
Copy link
Member

No description provided.

##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
Copy link
Member

Choose a reason for hiding this comment

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

is this correct and up to date?

@pedrobaeza
Copy link
Member Author

@gurneyalex, I have addressed your remarks, except one, that I have commented.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.76%) when pulling 2a04fd6 on pedrobaeza:7.0-document_url into 388fc96 on OCA:7.0.

@@ -13,10 +14,8 @@ install:
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly ${VERSION}
Copy link
Member

Choose a reason for hiding this comment

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

giving the version as commandline argument is deprecated from my understanding

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right. I'll update it.

redraw: function() {
var self = this;
this._super.apply(this, arguments);
self.$el.find('.oe_sidebar_add_attachment').after(QWeb.render('AddUrlDocumentItem', {widget: self}))
Copy link
Member

Choose a reason for hiding this comment

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

Why don't you inject the element by extending Sidebar in your qweb file?

Copy link
Member Author

Choose a reason for hiding this comment

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

My knowledge in JS is very limited and I copied/pasted the code from Google documents standard module.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.76%) when pulling 52d7eb8 on pedrobaeza:7.0-document_url into 388fc96 on OCA:7.0.

@pedrobaeza
Copy link
Member Author

@hbrunn , can you please re-review this?

@max3903
Copy link
Sponsor Member

max3903 commented Oct 8, 2014

👍

@hbrunn
Copy link
Member

hbrunn commented Oct 20, 2014

@pedrobaeza sorry for the delay, I'm fine with the code as it is 👍

hbrunn added a commit that referenced this pull request Oct 20, 2014
[ADD] document_url: A module that allows to put URLs as attached documents.
@hbrunn hbrunn merged commit fd18fba into OCA:7.0 Oct 20, 2014
@pedrobaeza pedrobaeza deleted the 7.0-document_url branch October 20, 2014 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants