[MERGE] Merge document changes
bzr revid: sbh@tinyerp.com-20120618101205-twulesbgj19vnpan
This commit is contained in:
commit
e9c9f91b3c
|
@ -140,8 +140,7 @@ class document_file(osv.osv):
|
|||
|
||||
_defaults = {
|
||||
'user_id': lambda self, cr, uid, ctx:uid,
|
||||
'file_size': lambda self, cr, uid, ctx:0,
|
||||
'parent_id': __get_def_directory
|
||||
'file_size': lambda self, cr, uid, ctx:0
|
||||
}
|
||||
_sql_constraints = [
|
||||
# filename_uniq is not possible in pure SQL
|
||||
|
|
|
@ -104,6 +104,10 @@
|
|||
<!-- After we have setup the root directory, migrate the attachments
|
||||
to point to that. -->
|
||||
<function model="ir.attachment" name="_attach_parent_id"/>
|
||||
|
||||
<function
|
||||
eval="('default',False,'parent_id', [('document.directory', False)], ref('document.dir_root'), True, False, False, False, True)"
|
||||
id="document_default_set"
|
||||
model="ir.values"
|
||||
name="set"/>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue