Browse Source

Remove only the attrs attribute instead of redefining the whole field

pull/70/head
Guewen Baconnier 10 years ago
parent
commit
715621cf30
  1. 16
      mail_environment/mail_view.xml

16
mail_environment/mail_view.xml

@ -6,17 +6,17 @@
<field name="model">fetchmail.server</field> <field name="model">fetchmail.server</field>
<field name="inherit_id" ref="fetchmail.view_email_server_form"/> <field name="inherit_id" ref="fetchmail.view_email_server_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="server" attrs="{'required' : [('type', '!=', 'local')]}" position="replace">
<field name="server" />
<field name="server" position="attributes">
<attribute name="attrs" eval="False"/>
</field> </field>
<field name="port" attrs="{'required' : [('type', '!=', 'local')]}" position="replace">
<field name="port" />
<field name="port" position="attributes">
<attribute name="attrs" eval="False"/>
</field> </field>
<field name="user" attrs="{'required' : [('type', '!=', 'local')]}" position="replace">
<field name="user" />
<field name="user" position="attributes">
<attribute name="attrs" eval="False"/>
</field> </field>
<field name="password" attrs="{'required' : [('type', '!=', 'local')]}" position="replace">
<field name="password" />
<field name="password" position="attributes">
<attribute name="attrs" eval="False"/>
</field> </field>
</field> </field>
</record> </record>

Loading…
Cancel
Save