Browse Source

Code cleanup

pull/1/head
Veronika Kotovich 9 years ago
parent
commit
220be03d62
  1. 2
      mail_move_message_models.py

2
mail_move_message_models.py

@ -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

Loading…
Cancel
Save