|
@ -199,7 +199,7 @@ class wizard(models.TransientModel): |
|
|
doc = etree.XML(res['arch']) |
|
|
doc = etree.XML(res['arch']) |
|
|
nodes = doc.xpath("//button[@name='delete']") |
|
|
nodes = doc.xpath("//button[@name='delete']") |
|
|
for node in nodes: |
|
|
for node in nodes: |
|
|
if self.env.uid == 1: |
|
|
|
|
|
|
|
|
if self.env.uid != 1: |
|
|
node.set('invisible', "1") |
|
|
node.set('invisible', "1") |
|
|
res['arch'] = etree.tostring(doc) |
|
|
res['arch'] = etree.tostring(doc) |
|
|
return res |
|
|
return res |
|
|