Hi everyone,
How can I create new form view for existing object model?
I'd like create a new menu for mail.message model. I created a new tree view, and action for tree view. For the form view (when edit message), I want to change some fields options (not allow create edit). But, this will affect to the existing menu "Message" (in Settings). And I want the new options only affect to my new form view.
My new view:
<record model="ir.ui.view" id="oit_view_message_form">
<field name="name">oit_mail.message.form</field>
<field name="model">mail.message</field>
<field name="inherit_id" ref="mail.view_message_form"/>
<field name="arch" type="xml">
<field name="email_from" position="attributes">
<attribute name="options">{'no_create':true, 'no_create_edit':true, 'no_open':true}</attribute>
</field>
</field>
</record>
So, how can I using my new view for my menu only, and keep the original view for original function?
Thank you