bzr revid: fp@tinyerp.com-20090128231100-lh55gi6k2rz57qcp
This commit is contained in:
Fabien Pinckaers
2009-01-29 00:11:00 +01:00
parent 1988d59fc2
commit 41590f61ec
2 changed files with 5 additions and 1 deletions
@@ -72,7 +72,9 @@
<xsl:apply-templates select="contact[1]"/>
</xsl:otherwise>
</xsl:choose>
<nextFrame/>
<xsl:if test="position() &lt; last()">
<nextFrame/>
</xsl:if>
</xsl:template>
<xsl:template match="contact">
+2
View File
@@ -1381,6 +1381,7 @@ class orm(orm_template):
for id in childs:
pos2 = browse_rec(id[0], pos2)
cr.execute('update '+self._table+' set parent_left=%s, parent_right=%s where id=%s', (pos,pos2,root))
print 'Update', self._table, pos,pos2,root
return pos2+1
query = 'SELECT id FROM '+self._table+' WHERE '+self._parent_name+' IS NULL'
if self._parent_order:
@@ -2302,6 +2303,7 @@ class orm(orm_template):
parent_left<%s OR parent_right>%s;
''', (leftbound,rightbound,cwidth,cleft,cright,treeshift,leftbound,rightbound,
cwidth,cleft,cright,treeshift,leftrange,rightrange))
print 'Write Update'
result = self._store_get_values(cr, user, ids, vals.keys(), context)
for order, object, ids, fields in result: