diff --git a/oe b/oe index 59827731409..5987cc71a8a 100755 --- a/oe +++ b/oe @@ -1,4 +1,4 @@ -#! /usr/bin/env python2 +#! /usr/bin/env python if __name__ == '__main__': import openerpcommand.main diff --git a/openerp/addons/base/ir/ir_ui_view.py b/openerp/addons/base/ir/ir_ui_view.py index bb2034de15c..ac4117f2973 100644 --- a/openerp/addons/base/ir/ir_ui_view.py +++ b/openerp/addons/base/ir/ir_ui_view.py @@ -846,6 +846,15 @@ class view(osv.osv): 'blank_nodes': blank_nodes, 'node_parent_field': _Model_Field,} + def copy(self, cr, uid, id, default=None, context=None): + if not default: + default = {} + default.update({ + 'model_ids': [], + }) + return super(view, self).copy(cr, uid, id, default, context=context) + + class view_sc(osv.osv): _name = 'ir.ui.view_sc' _columns = {