[FIX] copy() on ir.ui.view
bzr revid: fp@tinyerp.com-20130702190301-oh7kj8iatbij3bm1
This commit is contained in:
parent
0a5b3c9fd7
commit
726b333148
2
oe
2
oe
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python2
|
#! /usr/bin/env python
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import openerpcommand.main
|
import openerpcommand.main
|
||||||
|
|
|
@ -846,6 +846,15 @@ class view(osv.osv):
|
||||||
'blank_nodes': blank_nodes,
|
'blank_nodes': blank_nodes,
|
||||||
'node_parent_field': _Model_Field,}
|
'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):
|
class view_sc(osv.osv):
|
||||||
_name = 'ir.ui.view_sc'
|
_name = 'ir.ui.view_sc'
|
||||||
_columns = {
|
_columns = {
|
||||||
|
|
Loading…
Reference in New Issue