54 lines
2.1 KiB
XML
54 lines
2.1 KiB
XML
<?xml version="1.0"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- Add New Note view -->
|
|
|
|
<record model="ir.ui.view" id="crm_add_new_note_view">
|
|
<field name="name">crm.new.add.note.form</field>
|
|
<field name="model">crm.add.note</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Add Note" col="4">
|
|
<separator string="Add Note" colspan="6"/>
|
|
<notebook colspan="6">
|
|
<page string="Note">
|
|
<field name="body" nolabel="1" colspan="4" default_focus="1"/>
|
|
</page>
|
|
<page string="Attachments">
|
|
<field name="attachment_ids" colspan="4" nolabel="1">
|
|
<form string="Attachment">
|
|
<field name="binary" filename="name" />
|
|
<field name="name" />
|
|
</form>
|
|
<tree string="Attachments">
|
|
<field name="name" />
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
<separator string="" colspan="6"/>
|
|
<group colspan="6" col="4" >
|
|
<field name="state" />
|
|
<button string="_Cancel" icon="gtk-close" special="cancel" />
|
|
<button name="action_add" type="object" string="_Add" icon="gtk-ok" />
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Add New Note action -->
|
|
|
|
<record model="ir.actions.act_window" id="action_crm_add_note">
|
|
<field name="name">Add Note</field>
|
|
<field name="res_model">crm.add.note</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="crm_add_new_note_view"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|
|
|