Browse Source

[REF] bit cleanup code

pull/2/head
Ivan Yelizariev 10 years ago
parent
commit
70a2210fc3
  1. 3
      mail_move_message_models.py
  2. 2
      mail_move_message_views.xml

3
mail_move_message_models.py

@ -140,8 +140,7 @@ class mail_message(models.Model):
moved_by_message_id = self.id
moved_by_user_id = self.env.user.id
first_move = not self.moved_by_user_id
vals = {'parent_id': parent_id,
'moved_by_user_id': moved_by_user_id}
vals = {'parent_id': parent_id}
if first_move:
# moved_from_* variables contain not last, but original
# reference

2
mail_move_message_views.xml

@ -23,7 +23,7 @@
</group>
<group attrs="{'invisible':[('can_move', '=', False)]}">
<field name="parent_id" domain="[('parent_id','=', False)]" context="{'extended_name':1}" />
<field name="move_back" attrs="{'invisible':[('message_moved_by_message_id','=',False)]}"/>
<field name="move_back" attrs="{'invisible':[('message_moved_by_user_id','=',False)]}"/>
<field name="model_id" class="oe_inline" />
<field name="res_id" class="oe_inline" />
<field name="record_url" class="oe_inline" widget="url"/>

Loading…
Cancel
Save