[IMP] vieweditor:- default view select in manage view dialog box.

bzr revid: ysa@tinyerp.com-20111110110914-o5scsgjqoaedd4wr
This commit is contained in:
Yogesh (OpenERP) 2011-11-10 16:39:14 +05:30
parent 7ed871bc0d
commit 014fc45592
2 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,8 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({
action_buttons: false,
search_view: false,
pager: false,
radio: true
radio: true,
select_view_id: self.parent.fields_view.view_id
},
};
this.view_edit_dialog = new openerp.web.Dialog(this, {

View File

@ -625,7 +625,7 @@
</t>
<t t-if="options.radio">
<th t-if="options.selectable" class="oe-record-selector" width="1">
<input type="radio" name ="radiogroup"/>
<input type="radio" name ="radiogroup" t-att-checked="options.select_view_id == record.get('id')? true: null"/>
</th>
</t>
<t t-if="!options.radio">