diff options
| author | Foram Shah <fsh@odoo.com> | 2015-12-31 16:09:06 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-04-11 11:10:48 +0200 |
| commit | d2728c000653e2b93ffc6f1b56370c39fbdfef2c (patch) | |
| tree | 9d6b125fb62e0ae6fef50007517818dbb0e93f90 /addons/note/note_view.xml | |
| parent | c080dc884c360716005e785df0009d0b76a7c457 (diff) | |
[IMP] account,crm,project...: Remove 'Create and Edit' from tags
List of impacted models:
-account.account
-calendar.event
-crm.lead
-fleet.vehicle
-hr.applicant
-hr.employee
-mail.mass_mailing.campaign
-note.note
-project.task
-res.partner
Add a menuitem in the Configurations for these models, visible in debug mode
Diffstat (limited to 'addons/note/note_view.xml')
| -rw-r--r-- | addons/note/note_view.xml | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/addons/note/note_view.xml b/addons/note/note_view.xml index ec63b4ed313..693f6792c28 100644 --- a/addons/note/note_view.xml +++ b/addons/note/note_view.xml @@ -36,6 +36,32 @@ <field name="domain">[('user_id','=',uid)]</field> </record> + <!-- note Tag Form View --> + <record id="note_tag_view_form" model="ir.ui.view"> + <field name="name">note.tag.form</field> + <field name="model">note.tag</field> + <field name="arch" type="xml"> + <form string="Tags"> + <group> + <field name="name"/> + </group> + </form> + </field> + </record> + + <!-- note Tag Action --> + <record id="note_tag_action" model="ir.actions.act_window"> + <field name="name">Tags</field> + <field name="res_model">note.tag</field> + <field name="view_type">form</field> + <field name="help" type="html"> + <p class="oe_view_nocontent_create"> + Click to add a new tag. + </p> + </field> + </record> + + <!-- New note Kanban View --> <record model="ir.ui.view" id="view_note_note_kanban"> <field name="name">note.note.kanban</field> @@ -114,7 +140,7 @@ <field name="stage_id" domain="[('user_id','=',uid)]" widget="statusbar" clickable="1"/> </header> <sheet> - <field name="tag_ids" widget="many2many_tags" placeholder="Tags"/> + <field name="tag_ids" widget="many2many_tags" placeholder="Tags" options="{'no_create_edit': True}"/> <field name="memo" widget="html" class="oe_memo" editor_height="450px" /> </sheet> <div class="oe_chatter"> @@ -169,6 +195,7 @@ <menuitem name="Notes" id="menu_note_notes" sequence="3" action="note.action_note_note" web_icon="note,static/description/icon.png"/> <menuitem name="Configuration" id="menu_note_configuration" sequence="100" parent="menu_note_notes" groups="base.group_no_one"/> <menuitem name="Stages" id="menu_notes_stage" parent="menu_note_configuration" action="note.action_note_stage" sequence="21" /> + <menuitem id="notes_tag_menu" parent="menu_note_configuration" action="note_tag_action" sequence="22"/> </data> </openerp> |
