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

[9.0][MIG][web_shortcut] #564

Merged
merged 17 commits into from
Jul 28, 2017
Merged

[9.0][MIG][web_shortcut] #564

merged 17 commits into from
Jul 28, 2017

Conversation

tarteo
Copy link
Member

@tarteo tarteo commented Feb 23, 2017

Previously web_shortcuts

Copy link
Member

@astirpe astirpe left a comment

Choose a reason for hiding this comment

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

@tarteo Thank you!
See my comments on the code.

Could you also replace all the occurrences of web_shortcuts -> web_shortcut in every *.po file? This way the translation of all the already translated terms will be applied.
File web_shortcuts.pot can be removed (is not useful).

===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/162/issues>`_. In case of trouble, please
Copy link
Member

Choose a reason for hiding this comment

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

Must be https://github.com/OCA/web/issues here

'category': 'Tools',
'name': 'Shortcut Menu',
'version': '9.0.1.0.0',
'category': 'Web',
'author': "OpenERP SA,Odoo Community Association (OCA)",
'website': 'http://openerp.com',
Copy link
Member

Choose a reason for hiding this comment

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

Please add 'license': 'AGPL-3', in the manifest, otherwise it will take the LGPL licence which is the default for Odoo 9

'category': 'Tools',
'name': 'Shortcut Menu',
'version': '9.0.1.0.0',
'category': 'Web',
'author': "OpenERP SA,Odoo Community Association (OCA)",
Copy link
Member

Choose a reason for hiding this comment

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

Please replace the double quotes with single quotes, so this line will be consistent with the rest of the manifest

@tarteo
Copy link
Member Author

tarteo commented Feb 24, 2017

@astirpe Thanks for the review! I've made the changes you suggested.

@astirpe astirpe mentioned this pull request Feb 24, 2017
55 tasks
def unlink(self):
res = super(IrUiView, self).unlink()
shortcuts = self.env['web.shortcut'].search([('menu_id', '=', False)])
for shortcut in shortcuts:
Copy link
Contributor

Choose a reason for hiding this comment

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

this could be just shortcuts.unlink() ;)

############################################################################*/

odoo.define('web.shortcut', function(require) {
var widget = require('web.Widget'),
Copy link
Contributor

Choose a reason for hiding this comment

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

you should keep classes' names CamelCase, ie:

var Widget = require('web.Widget'),

@tarteo
Copy link
Member Author

tarteo commented Feb 24, 2017

@simahawk I applied your suggestions. Thanks!

Copy link

@elicoidal elicoidal left a comment

Choose a reason for hiding this comment

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

Short headers. Other than that LGTM

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-

Choose a reason for hiding this comment

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

Please use short headers

Copy link
Member Author

Choose a reason for hiding this comment

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

@elicoidal I've replaced the headers. Thanks!

@tarteo tarteo mentioned this pull request Feb 27, 2017
59 tasks
Copy link
Member

@astirpe astirpe left a comment

Choose a reason for hiding this comment

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

@tarteo Please check also this new review.

mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

This is not a back port (8.0 -> 9.0). Do I still have to apply these conventions?

Copy link
Member

Choose a reason for hiding this comment

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

Yes please, just replace backport with port

------------

* Adrien Peiffer
* Dennis Sluijk <d.sluijk@onestein.nl>
Copy link
Member

Choose a reason for hiding this comment

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

You have to include Odoo S. A.

@astirpe
Copy link
Member

astirpe commented Mar 1, 2017

@elicoidal could you give a look to the headers?

@tarteo
Copy link
Member Author

tarteo commented Mar 17, 2017

Can we merge, please?

@astirpe
Copy link
Member

astirpe commented Jul 28, 2017

@elicoidal your approval is still pending, this PR is on hold since a long time

@elicoidal elicoidal merged commit 47f80ab into OCA:9.0 Jul 28, 2017
@tarteo tarteo deleted the 90_mig_web_shortcuts branch October 30, 2019 15:29
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.

4 participants