[FIX] copy() on ir.ui.view

bzr revid: fp@tinyerp.com-20130702190301-oh7kj8iatbij3bm1
This commit is contained in:
Fabien Pinckaers 2013-07-02 21:03:01 +02:00
parent 0a5b3c9fd7
commit 726b333148
2 changed files with 10 additions and 1 deletions

2
oe
View File

@ -1,4 +1,4 @@
#! /usr/bin/env python2
#! /usr/bin/env python
if __name__ == '__main__':
import openerpcommand.main

View File

@ -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 = {