summaryrefslogtreecommitdiff
path: root/addons/document/document_data.xml
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-12-23 16:25:29 +0200
committerP. Christeas <p_christ@hol.gr>2010-12-23 16:25:29 +0200
commit43387c7f430a5109a5f2fcef9dd9c94594c788ff (patch)
treeae29eccad6c979671240cf9fee97cf9ff2d440c5 /addons/document/document_data.xml
parentf551479a9bd379204197947dbcbaac04972eb7ba (diff)
document: improve the attach_parent_id() function.
No need to call an SQL command in iteration! No need to transfer the db_datas back and forth from Postgres! Also, prepended an underscore, so that the function is never exported through RPC. bzr revid: p_christ@hol.gr-20101223142529-hgudbfj54p4d2e34
Diffstat (limited to 'addons/document/document_data.xml')
-rw-r--r--addons/document/document_data.xml9
1 files changed, 5 insertions, 4 deletions
diff --git a/addons/document/document_data.xml b/addons/document/document_data.xml
index 911e25b195c..6d7fe7531eb 100644
--- a/addons/document/document_data.xml
+++ b/addons/document/document_data.xml
@@ -98,9 +98,10 @@
<field name="parent_id" ref="dir_root"/>
<field name="ressource_id">0</field>
</record>
-
- <function model="ir.attachment" name="attach_parent_id"/>
-
-
+
+ <!-- After we have setup the root directory, migrate the attachments
+ to point to that. -->
+ <function model="ir.attachment" name="_attach_parent_id"/>
+
</data>
</openerp>