Skip to content

[MIG] document_url port v10 #111

Closed
difusionvisual wants to merge 10 commits into
OCA:10.0from
ingenieriacloud:10.0
Closed

[MIG] document_url port v10 #111
difusionvisual wants to merge 10 commits into
OCA:10.0from
ingenieriacloud:10.0

Conversation

@difusionvisual

Copy link
Copy Markdown

No description provided.

@oca-clabot

Copy link
Copy Markdown

Hey @difusionvisual, 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:

  • Nicolás (no github login found)

Appreciation of efforts,
OCA CLAbot

@pedrobaeza

Copy link
Copy Markdown
Member

Have you signed the CLA?

@pedrobaeza pedrobaeza mentioned this pull request Nov 15, 2016
12 tasks
@antoniocanovas

Copy link
Copy Markdown

This user is included in the "Entity CLA" "Serincloud S.L." few days ago.
Must he sign it again as single user?

Un saludo,


   Antonio Cánovas Pedreño

antonio.canovas@ingenieriacloud.com
Teléfono.- 6224.2.6224

  •     Twitter.- @acanovasp http://www.twitter.es/acanovasp*
    

2016-11-15 18:28 GMT+01:00 Pedro M. Baeza notifications@github.com:

Have you signed the CLA?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#111 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AH7_yVnUbPHkNA_WNS1e2iIK7M8iu5sdks5q-evIgaJpZM4Kyy0h
.

http://www.konery.es
Antes de imprimir este e-mail piense bien si es necesario, la conservación
del medio ambiente es tarea de todos.
Este mensaje contiene información CONFIDENCIAL sometida a secreto
profesional. Si lo ha recibido por error, debe saber que la copia, uso o
divulgación están prohibidos la Ley, por ello, le rogamos que nos lo
comunique por esta misma vía y proceda a su destrucción.

Muchas gracias.

@antoniocanovas

antoniocanovas commented Nov 16, 2016

Copy link
Copy Markdown

Functionality LGFM

@pedrobaeza

Copy link
Copy Markdown
Member

Use the new approval system (in the third tab)

@antoniocanovas antoniocanovas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Functionality LGFM

@rafaelbn

Copy link
Copy Markdown
Member

Thanks for this contribution, please check travis it fails

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

if not url.scheme:
url = urlparse('%s%s' % ('http://', form.url))
for active_id in context.get('active_ids', []):
for active_id in self._context.get('active_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.

Use self.env.context instead.

@difusionvisual

Copy link
Copy Markdown
Author

Fixed review

Comment thread document_url/static/src/xml/url.xml Outdated
</li>
</t>
</t>
</templates> No newline at end of file

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.

Line at the end.

Comment thread document_url/README.rst Outdated
* Pedro M. Baeza <pedro.baeza@tecnativa.com
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Nicolás Ramos <contacto@difusionvisual.com>
* Antonio Cánovas <antonio.canovas@ingenieriacloud.com>

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.

Non developers shouldn't go here as contributors.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This happens a lot - Do you think a note in the contribution guidelines would be worthy?

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.

Well, sometimes a "designer" can be put here, because he/she has contributed in the design of the module, but I know the history of this module (I developed it initially for him), and there's no contribution except the financial one. The line here is thin, so it's difficult to reflect in a guideline...

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.

I have created a PR to improve the template to add the possibility of defining funders: OCA/maintainer-tools#241

Comment thread document_url/wizard/document_url.py Outdated
'user_id': uid,
'res_id': active_id,
'res_model': context['active_model'],
'res_model': context.get('active_model')

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 you change this? Is correct as is.

@pedrobaeza

Copy link
Copy Markdown
Member

Tried on runbot and working.

@hbrunn hbrunn added this to the 10.0 milestone Jan 11, 2017
@sbidoul

sbidoul commented Feb 22, 2017

Copy link
Copy Markdown
Member

@difusionvisual I got the following error on runbot:

image

Can you have a look?

* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* © 2016 ACSONE SA/NV (<http://acsone.eu>)
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
*/

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 remove copyrights

Comment thread document_url/wizard/document_url.py Outdated
if not context.get('active_model'):

context = self.env.context
if not context['active_model']:

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.

Keep the original context.get - the new form will error if the looked up key is not found in the context.

Comment thread document_url/wizard/document_url.py Outdated
if not url.scheme:
url = urlparse('%s%s' % ('http://', form.url))
for active_id in context.get('active_ids', []):
for active_id in context['active_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.

Keep the context.get().
That's the cause of the error found by @sbidoul

attachment_obj.create(cr, uid, attachment, context=context)
return {'type': 'ir.actions.act_close_wizard_and_reload_view'}
attachment_obj.create(attachment)
return False

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 is the return value now empty?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't understand why this action repoen the wizard is it a "quick next encode"? I agree with @difusionvisual to replace this by return false...

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.

It was because in older versions of Odoo, it didn't refresh the view and you didn't see the new attachment number. I don't know if this happens also in v10.

@sbidoul

sbidoul commented Apr 23, 2017

Copy link
Copy Markdown
Member

@nicolasramos do you plan to finish this one?

@JonathanNEMRY

Copy link
Copy Markdown

waiting merge of https://github.com/ingenieriacloud/knowledge/pull/2 with changes of @dreispt

@Bilbonet Bilbonet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I've tried the module in my v10 and works fine.

@pedrobaeza

Copy link
Copy Markdown
Member

Travis is still red

@Bilbonet

Copy link
Copy Markdown

For Travis only need minimal changes in two files.
url.js > Remove comma in lines 16, 17, 18 ,28
wizard/document_url.py > Remove import 'odoo._' is not used

I have the Travis ok with only this changes:
https://travis-ci.com/Bilbonet/knowledge/builds/82463764

@dreispt
dreispt dismissed their stale review September 30, 2018 21:31

Initial review too old.

@hbrunn

hbrunn commented Oct 20, 2018

Copy link
Copy Markdown
Member

superseded by #192

@hbrunn hbrunn closed this Oct 20, 2018
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.