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

[MIG] document_url port v10 #111

Closed
wants to merge 10 commits into from
Closed

[MIG] document_url port v10 #111

wants to merge 10 commits into from

Conversation

difusionvisual
Copy link

No description provided.

@oca-clabot
Copy link

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
Member

Have you signed the CLA?

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

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
Copy link

antoniocanovas commented Nov 16, 2016

Functionality LGFM

@pedrobaeza
Copy link
Member

Use the new approval system (in the third tab)

Copy link

@antoniocanovas antoniocanovas left a comment

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
Member

Thanks for this contribution, please check travis it fails

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

url = urlparse(form.url)
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
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
Author

Fixed review

</li>
</t>
</t>
</templates>
Copy link
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.

* 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
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

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

'res_id': active_id,
'res_model': context['active_model'],
'res_model': context.get('active_model')
Copy link
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
Member

Tried on runbot and working.

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

sbidoul commented Feb 22, 2017

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

if not context.get('active_model'):

context = self.env.context
if not context['active_model']:
Copy link
Sponsor 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.

url = urlparse(form.url)
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
Sponsor 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
Sponsor 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?

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
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
Copy link
Member

sbidoul commented Apr 23, 2017

@nicolasramos do you plan to finish this one?

@JonathanNEMRY
Copy link

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

Copy link

@Bilbonet Bilbonet left a comment

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
Member

Travis is still red

@Bilbonet
Copy link

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
Copy link
Member

hbrunn commented Oct 20, 2018

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.