flectra/addons/mail/views/ir_model_views.xml

38 lines
1.5 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<record id="model_form_view" model="ir.ui.view">
<field name="model">ir.model</field>
<field name="inherit_id" ref="base.view_model_form"/>
<field name="arch" type="xml">
<field name="transient" position="after">
<field name="is_mail_thread" attrs="{'readonly': [('state','!=', 'manual')]}" groups="base.group_no_one"/>
</field>
<xpath expr="//field[@name='field_id']//field[@name='copy']" position="after">
<field name="track_visibility" attrs="{'readonly': [('state','!=', 'manual')]}"/>
</xpath>
</field>
</record>
<record id="model_search_view" model="ir.ui.view">
<field name="model">ir.model</field>
<field name="inherit_id" ref="base.view_model_search"/>
<field name="arch" type="xml">
<field name="model" position="after">
<filter string="Mail Thread" name="is_mail_thread" domain="[('is_mail_thread', '=', True)]"/>
</field>
</field>
</record>
<record id="field_form_view" model="ir.ui.view">
<field name="model">ir.model.fields</field>
<field name="inherit_id" ref="base.view_model_fields_form"/>
<field name="arch" type="xml">
<field name="copy" position="after">
<field name="track_visibility" attrs="{'readonly': [('state','!=', 'manual')]}"/>
</field>
</field>
</record>
2018-01-16 11:34:37 +01:00
</flectra>