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] web_dialog_size: Migrate to v9.0 #356

Merged
merged 3 commits into from
Jul 20, 2016
Merged

Conversation

bud-e
Copy link
Member

@bud-e bud-e commented May 15, 2016

No description provided.

@bud-e bud-e mentioned this pull request May 15, 2016
55 tasks
@eLBati
Copy link
Member

eLBati commented May 18, 2016

Thanks 👍

'category': 'web',
'version': '8.0.0.1.0',
'version': '9.0.0.1.0',
Copy link
Member

Choose a reason for hiding this comment

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

9.0.1.0.0

@pedrobaeza
Copy link
Member

You have missed the latest 8.0 commits. In concrete, this one: 0578405.

You need to follow this guide for the migration: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0, but in this case, as there's only one missing commit, you can only cherry-pick the commit. It's a very important one, because it allows to store the default window size.

* [IMP] web_dialog_size: Put dialog size expanded by default

* [REM] web_popup_large: By duplication of the functionality

* [IMP] web_dialog_size: README and contributors

* [ADD] configuration parameter for default behavior

[FIX] return super's promise
[IMP] use fontawesome icons for buttons
@coveralls
Copy link

coveralls commented Jun 12, 2016

Coverage Status

Coverage remained the same at 68.116% when pulling 9677093 on bud-e:9.0-web_dialog_size into 827a181 on OCA:9.0.

@lmignon
Copy link
Sponsor Contributor

lmignon commented Jun 30, 2016

👍 (Code review only)

@pedrobaeza
Copy link
Member

This still misses the latest commit, so please don't merge until then.

@bud-e
Copy link
Member Author

bud-e commented Jul 17, 2016

@pedrobaeza ,
I already cherry-pick this 2 commits 0578405 & 2238950 from 8.0
So, I think this branch is updated.

Thanks.

self.$modal.find('.dialog_button_restore').on('click', self.proxy('_restore'));

new Model('ir.config_parameter').query(['key', 'value']).
filter([['key', '=', 'web_dialog_size.default_maximize']]).all().then(function(default_maximize) {
Copy link
Member

Choose a reason for hiding this comment

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

Why not use the get_param method if ir.config_parameter as in v8? This should be more efficient than querying then filtering.

@pedrobaeza
Copy link
Member

I have tried the module and it works well, and make a quick test with get_param and it didn't work, so it seems the JS API has changed. We can merge this as is.

@pedrobaeza pedrobaeza merged commit 4d47ccb into OCA:9.0 Jul 20, 2016
@bud-e bud-e deleted the 9.0-web_dialog_size branch August 14, 2016 09:37
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.

6 participants