summaryrefslogtreecommitdiff
path: root/addons/note/note_view.xml
diff options
context:
space:
mode:
authorJiten (OpenERP) <jra@tinyerp.com>2012-09-20 13:39:35 +0530
committerJiten (OpenERP) <jra@tinyerp.com>2012-09-20 13:39:35 +0530
commitf5f1a47c24e0176a3ed3d0bdb7528cf8ce8d4f89 (patch)
tree99845ab2872f716d34db8826dfd75a20d1a32bd9 /addons/note/note_view.xml
parent29ca700beb96d904e9798e08e52dd4b6b5754b5d (diff)
parent8e6135b43a2c38785c0575d142da4004224174f8 (diff)
[MERGE] Merged trunk.
bzr revid: jra@tinyerp.com-20120920080935-2y2cfc18e65g7a4y
Diffstat (limited to 'addons/note/note_view.xml')
-rw-r--r--addons/note/note_view.xml32
1 files changed, 12 insertions, 20 deletions
diff --git a/addons/note/note_view.xml b/addons/note/note_view.xml
index 1166e687750..8d943dde44d 100644
--- a/addons/note/note_view.xml
+++ b/addons/note/note_view.xml
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<openerp>
<data>
-
- <menuitem name="Organizer" id="note_my_stuff" parent="mail.mail_feeds_main"/>
-
<!-- note Stage Form View -->
<record model="ir.ui.view" id="view_note_stage_form">
<field name="name">note.stage.form</field>
@@ -39,8 +36,6 @@
<field name="domain">[('user_id','=',uid)]</field>
</record>
- <menuitem name="Categories" id="menu_notes_stage" parent="note_my_stuff" action="action_note_stage" sequence="40" groups="base.group_no_one"/>
-
<!-- New note Kanban View -->
<record model="ir.ui.view" id="view_note_note_kanban">
<field name="name">note.note.kanban</field>
@@ -51,7 +46,7 @@
<field name="sequence"/>
<field name="name"/>
<field name="stage_id"/>
- <field name="active"/>
+ <field name="open"/>
<field name="memo"/>
<field name="date_done"/>
<field name="current_partner_id"/>
@@ -65,8 +60,8 @@
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_global_click_edit oe_semantic_html_override oe_kanban_card #{record.group_fancy==1 ? 'oe_kanban_card_fancy' : ''}">
<div class="oe_dropdown_kanban">
<span>
- <a name="onclick_note_is_done" type="object" t-if="record.active.raw_value" class="oe_e">W</a>
- <a name="onclick_note_not_done" type="object" t-if="!record.active.raw_value" class="oe_e">è</a>
+ <a name="onclick_note_is_done" type="object" t-if="record.open.raw_value" class="oe_e">W</a>
+ <a name="onclick_note_not_done" type="object" t-if="!record.open.raw_value" class="oe_e">è</a>
</span>
<!-- dropdown menu -->
@@ -78,13 +73,12 @@
</ul>
</div>
</div>
-
<!-- kanban note -->
- <div t-attf-class="oe_kanban_content #{record.active.raw_value ? '' : 'note_text_line_through'}">
+ <div t-attf-class="oe_kanban_content #{record.open.raw_value ? '' : 'note_text_line_through'}">
<!-- title -->
<field name="name"/>
</div>
- <div widget="many2many_tags" t-att-data="record.tag_ids.raw_value" model="note.tag"/>
+ <field name="tag_ids"/>
<div class="oe_right">
<t t-foreach="record.message_follower_ids.raw_value" t-as="follower">
<img t-if="record.current_partner_id.raw_value!=follower" t-att-src="kanban_image('res.partner', 'image_small', follower)" width="24" height="24" class="oe_kanban_avatar" t-att-data-member_id="follower"/>
@@ -105,7 +99,7 @@
<field name="arch" type="xml">
<tree string="Stages">
<field name="name"/>
- <field name="active"/>
+ <field name="open"/>
<field name="stage_id"/>
<field name="tag_ids" widget="many2many_tags" groups="note.group_note_tags"/>
</tree>
@@ -119,12 +113,10 @@
<field name="arch" type="xml">
<form string="Note" version="7.0">
<header>
+ <field name="tag_ids" widget="many2many_tags" class="oe_inline" placeholder="Tags"/>
<field name="stage_id" domain="[('user_id','=',uid)]" widget="statusbar" clickable="1"/>
</header>
<field name="memo" widget="html"/><!-- editor_width="100%%" editor_height="60%%" -->
- <group groups="note.group_note_tags" col="2">
- <field name="tag_ids" widget="many2many_tags"/>
- </group>
<field name="message_follower_ids" widget="mail_followers"/>
<field class="oe_chatter" name="message_ids" widget="mail_thread"/>
</form>
@@ -139,9 +131,8 @@
<search string="Notes">
<field name="memo" string="Note"/>
<field name="tag_ids" groups="note.group_note_tags"/>
- <field name="stage_id"/>
- <filter name="active_true" string="Active" domain="['|',('active', '=', True),('date_done','=',time.strftime('%%Y-%%m-%%d'))]"/>
- <filter name="active_false" string="Old" domain="[('active', '=', False)]"/>
+ <filter name="open_true" string="Active" domain="['|',('open', '=', True),('date_done','=',time.strftime('%%Y-%%m-%%d'))]"/>
+ <filter name="open_false" string="Archive" domain="[('open', '=', False)]"/>
<group expand="0" string="Group By...">
<filter icon="terp-stock_symbol-selection" string="Stage" help="By sticky note Category" context="{'group_by':'stage_id'}"/>
</group>
@@ -185,10 +176,11 @@
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="search_view_id" ref="view_note_note_filter"/>
- <field name="context">{'search_default_active_true':True}</field>
+ <field name="context">{'search_default_open_true':True}</field>
</record>
- <menuitem name="Notes" id="note_notes" parent="note_my_stuff" sequence="20" action="action_note_note"/>
+ <menuitem name="Notes" id="menu_note_notes" parent="mail.mail_my_stuff" sequence="20" action="note.action_note_note"/>
+ <menuitem name="Categories" id="menu_notes_stage" parent="mail.mail_my_stuff" action="note.action_note_stage" sequence="21" groups="base.group_no_one"/>
</data>
</openerp>