diff options
| author | Amit Bhavsar (Open ERP) <amb@tinyerp.com> | 2013-05-28 14:49:41 +0530 |
|---|---|---|
| committer | Amit Bhavsar (Open ERP) <amb@tinyerp.com> | 2013-05-28 14:49:41 +0530 |
| commit | 24848a8dccf0b8acc77b2e9fd007f613bbf1736b (patch) | |
| tree | 343ca29c494e3310c1d6fa4b4f2e97a396e21c8e /addons/note | |
| parent | 1b08798b52df8f0a3a72d116577cd7451b45b30c (diff) | |
| parent | 814a121dabbbe45a1c9ee671222b3a2bf261059a (diff) | |
[MERGE] merge with latest trunk
bzr revid: bde@tinyerp.com-20130522095432-1sl1b6uu6ewod4md
bzr revid: amb@tinyerp.com-20130528091941-wak8fnembuvewwjf
Diffstat (limited to 'addons/note')
| -rw-r--r-- | addons/note/html/index.html | 116 | ||||
| -rw-r--r-- | addons/note/html/notes_illu_01.png | bin | 0 -> 37813 bytes | |||
| -rw-r--r-- | addons/note/html/notes_sc_00.png | bin | 0 -> 60082 bytes | |||
| -rw-r--r-- | addons/note/html/notes_sc_01.png | bin | 0 -> 154728 bytes | |||
| -rw-r--r-- | addons/note/html/notes_sc_02.png | bin | 0 -> 62410 bytes | |||
| -rw-r--r-- | addons/note/html/notes_sc_03.png | bin | 0 -> 74387 bytes | |||
| -rw-r--r-- | addons/note/i18n/lt.po | 284 | ||||
| -rw-r--r-- | addons/note/note.py | 30 | ||||
| -rw-r--r-- | addons/note/note_data.xml | 6 | ||||
| -rw-r--r-- | addons/note/note_view.xml | 2 |
10 files changed, 427 insertions, 11 deletions
diff --git a/addons/note/html/index.html b/addons/note/html/index.html new file mode 100644 index 00000000000..97736520f2f --- /dev/null +++ b/addons/note/html/index.html @@ -0,0 +1,116 @@ +<section class="oe_container"> + <div class="oe_row oe_spaced"> + <h2 class="oe_slogan">Notes</h2> + <h3 class="oe_slogan">Getting Things Done with Notes</h3> + <div class="oe_span6"> + <div class="oe_demo oe_picture oe_screenshot"> + <a href="https://www.openerp.com/saas_master/demo?lang=en_US&module=note"> + <img src="notes_sc_00.png"> + </a> + <span class="oe_demo_play"> </span> + <div class="oe_demo_footer oe_centeralign">Online Demo</div> + </div> + </div> + <div class="oe_span6"> + <p class="oe_mt32"> +Organize yourself with efficient todo lists and notes. From personnal tasks to collaborative meeting minutes, increase your user's productivity by giving them the tools to prioritize their work, share their ideas and collaborate on documents. + </p> + <div class="oe_centeralign oe_websiteonly"> + <a href="http://www.openerp.com/start" class="oe_button oe_big oe_tacky">Start your <span class="oe_emph">free</span> trial</a> + </div> + </div> + </div> +</section> + +<section class="oe_container oe_dark"> + <div class="oe_row"> + <div class="oe_span12"> + <h2 class="oe_slogan">Personal to-do lists that works</h2> + <p class="oe_mt32"> +Quickly create to-dos, organize horizontally for the mid-term (today, this week, this month, ...), prioritize vertically for the short term and group by assigning colors. The kanban approach allows a simple visual organization of your to-dos. + </p> + </div> + <div class="oe_span12"> + <img src="notes_illu_01.png"> + </div> + <div class="oe_span4"> + <h3>Beat Work Overload</h3> + <p> + Feel how good it is to rely on a structured way to organize your work instead of keeping everything in memory. Use notes to <a href="http://en.wikipedia.org/wiki/Getting_Things_Done">Get Things Done</a>. + </p> + </div> + <div class="oe_span4"> + <h3>Prioritize Efficiently</h3> + <p> + Most people are lost in the flow of urgent daily tasks and have difficulties to work on important, long-term tasks. Notes gives you a simple way to allocate time very day to do important, but less urgent tasks. + </p> + </div> + <div class="oe_span4"> + <h3>Find Motivation to Close Tasks</h3> + <p> + People used to work on tasks they like and not on important tasks. Start feeling good by checking tasks as done. + </p> + </div> + </div> +</section> +<section class="oe_container"> + <div class="oe_row"> + <h2 class="oe_slogan">Adapts to Your Creative Process</h2> + <h3 class="oe_slogan">Customize to your own workflow</h3> + <p> +Everyone has their own way to organize activities. OpenERP Notes' smart kanban approach allows every user to customize their own steps to process it's to-dos and notes. + </p> + <img class="oe_picture oe_screenshot" src="notes_sc_03.png"> + + <div class="oe_span4"> + <h3>A Creative Person</h3> + <p> +A creative person will organize notes based on idea's maturity level: Draft Ideas <i class="icon-angle-right"></i> Mature Ideas <i class="icon-angle-right"></i> Specified <i class="icon-angle-right"></i>To Do</p> + </div> + <div class="oe_span4"> + <h3>A Frequent Traveler</h3> + <p> + An employee travelling a lot can organize their tasks based on the context to perform the task: U.S. Office | London's Office | To Review during Flights | At Home + </p> + </div> + <div class="oe_span4"> + <h3>A Manager</h3> + <p> + A manager will organize their high number of tasks based on prioritizations: Todo Today | This Week | This Month | Later + </div> + + </div> +</section> + +<section class="oe_container oe_dark"> + <div class="oe_row"> + <h2 class="oe_slogan">Personnal Notes</h2> + <h3 class="oe_slogan">Notes are private but can be shared</h3> + <div class="oe_span6"> + <div class="oe_bg_img"> + <img class="oe_picture oe_screenshot" src="notes_sc_01.png"> + </div> + </div> + <div class="oe_span6"> + <p class="oe_mt32"> +Write down your ideas in pads, keep your notes at your finger tips, attach related documents and use tags and colors to organize the information. Once your ideas are mature, you can share them to others users, start discussing it and collaborate by improving the specification in the pad. + </p> + </div> + </div> +</section> + +<section class="oe_container"> + <div class="oe_row"> + <h2 class="oe_slogan">Collaborative Meeting Minutes</h2> + <h3 class="oe_slogan">Real-time sharing and edition of notes</h3> + <div class="oe_span6"> + <p class="oe_mt32"> +The real time collaborative writings on notes makes it the perfect tool to collaborate on meeting minutes. Attendees will be able to contribute to the minutes, attach important documents or discuss on the related thread. + </p> + </div> + <div class="oe_span6"> + <img class="oe_picture oe_screenshot" src="notes_sc_02.png"> + </div> + </div> +</section> +<section class="oe_container oe_separator"/> diff --git a/addons/note/html/notes_illu_01.png b/addons/note/html/notes_illu_01.png Binary files differnew file mode 100644 index 00000000000..a7d4197561d --- /dev/null +++ b/addons/note/html/notes_illu_01.png diff --git a/addons/note/html/notes_sc_00.png b/addons/note/html/notes_sc_00.png Binary files differnew file mode 100644 index 00000000000..7bb4f95a640 --- /dev/null +++ b/addons/note/html/notes_sc_00.png diff --git a/addons/note/html/notes_sc_01.png b/addons/note/html/notes_sc_01.png Binary files differnew file mode 100644 index 00000000000..ce9367abf9b --- /dev/null +++ b/addons/note/html/notes_sc_01.png diff --git a/addons/note/html/notes_sc_02.png b/addons/note/html/notes_sc_02.png Binary files differnew file mode 100644 index 00000000000..e47889b33fc --- /dev/null +++ b/addons/note/html/notes_sc_02.png diff --git a/addons/note/html/notes_sc_03.png b/addons/note/html/notes_sc_03.png Binary files differnew file mode 100644 index 00000000000..6d59d7e5df8 --- /dev/null +++ b/addons/note/html/notes_sc_03.png diff --git a/addons/note/i18n/lt.po b/addons/note/i18n/lt.po new file mode 100644 index 00000000000..3e030054520 --- /dev/null +++ b/addons/note/i18n/lt.po @@ -0,0 +1,284 @@ +# Lithuanian translation for openobject-addons +# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2012-12-21 17:04+0000\n" +"PO-Revision-Date: 2013-04-29 15:23+0000\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: Lithuanian <lt@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2013-04-30 05:29+0000\n" +"X-Generator: Launchpad (build 16580)\n" + +#. module: note +#: field:note.note,memo:0 +msgid "Note Content" +msgstr "" + +#. module: note +#: view:note.stage:0 +msgid "Stages of Notes" +msgstr "" + +#. module: note +#: model:note.stage,name:note.demo_note_stage_04 +#: model:note.stage,name:note.note_stage_02 +msgid "This Week" +msgstr "" + +#. module: note +#: model:ir.model,name:note.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: note +#: model:ir.model,name:note.model_note_tag +msgid "Note Tag" +msgstr "" + +#. module: note +#: model:res.groups,name:note.group_note_fancy +msgid "Notes / Fancy mode" +msgstr "" + +#. module: note +#: model:ir.model,name:note.model_note_note +#: view:note.note:0 +msgid "Note" +msgstr "" + +#. module: note +#: view:note.note:0 +msgid "Group By..." +msgstr "" + +#. module: note +#: field:note.note,message_follower_ids:0 +msgid "Followers" +msgstr "" + +#. module: note +#: model:ir.actions.act_window,help:note.action_note_note +msgid "" +"<p class=\"oe_view_nocontent_create\">\n" +" Click to add a personal note.\n" +" </p><p>\n" +" Use notes to organize personal tasks or notes. All\n" +" notes are private; no one else will be able to see them. " +"However\n" +" you can share some notes with other people by inviting " +"followers\n" +" on the note. (Useful for meeting minutes, especially if\n" +" you activate the pad feature for collaborative writings).\n" +" </p><p>\n" +" You can customize how you process your notes/tasks by adding,\n" +" removing or modifying columns.\n" +" </p>\n" +" " +msgstr "" + +#. module: note +#: model:note.stage,name:note.demo_note_stage_01 +#: model:note.stage,name:note.note_stage_01 +msgid "Today" +msgstr "" + +#. module: note +#: model:ir.model,name:note.model_res_users +msgid "Users" +msgstr "" + +#. module: note +#: view:note.note:0 +msgid "í" +msgstr "" + +#. module: note +#: view:note.stage:0 +msgid "Stage of Notes" +msgstr "" + +#. module: note +#: field:note.note,message_unread:0 +msgid "Unread Messages" +msgstr "" + +#. module: note +#: field:note.note,current_partner_id:0 +msgid "unknown" +msgstr "" + +#. module: note +#: view:note.note:0 +msgid "By sticky note Category" +msgstr "" + +#. module: note +#: help:note.note,message_unread:0 +msgid "If checked new messages require your attention." +msgstr "" + +#. module: note +#: field:note.stage,name:0 +msgid "Stage Name" +msgstr "" + +#. module: note +#: field:note.note,message_is_follower:0 +msgid "Is a Follower" +msgstr "" + +#. module: note +#: model:note.stage,name:note.demo_note_stage_02 +msgid "Tomorrow" +msgstr "" + +#. module: note +#: view:note.note:0 +#: field:note.note,open:0 +msgid "Active" +msgstr "" + +#. module: note +#: help:note.stage,user_id:0 +msgid "Owner of the note stage." +msgstr "" + +#. module: note +#: model:ir.ui.menu,name:note.menu_notes_stage +msgid "Categories" +msgstr "" + +#. module: note +#: view:note.note:0 +#: field:note.note,stage_id:0 +msgid "Stage" +msgstr "" + +#. module: note +#: field:note.tag,name:0 +msgid "Tag Name" +msgstr "" + +#. module: note +#: field:note.note,message_ids:0 +msgid "Messages" +msgstr "" + +#. module: note +#: view:base.config.settings:0 +#: model:ir.actions.act_window,name:note.action_note_note +#: model:ir.ui.menu,name:note.menu_note_notes +#: view:note.note:0 +#: model:note.stage,name:note.note_stage_04 +msgid "Notes" +msgstr "" + +#. module: note +#: model:note.stage,name:note.demo_note_stage_03 +#: model:note.stage,name:note.note_stage_03 +msgid "Later" +msgstr "" + +#. module: note +#: model:ir.model,name:note.model_note_stage +msgid "Note Stage" +msgstr "" + +#. module: note +#: field:note.note,message_summary:0 +msgid "Summary" +msgstr "" + +#. module: note +#: field:note.note,stage_ids:0 +msgid "Stages of Users" +msgstr "" + +#. module: note +#: field:note.note,name:0 +msgid "Note Summary" +msgstr "" + +#. module: note +#: model:ir.actions.act_window,name:note.action_note_stage +#: view:note.note:0 +msgid "Stages" +msgstr "" + +#. module: note +#: help:note.note,message_ids:0 +msgid "Messages and communication history" +msgstr "" + +#. module: note +#: view:note.note:0 +msgid "Delete" +msgstr "" + +#. module: note +#: field:note.note,color:0 +msgid "Color Index" +msgstr "" + +#. module: note +#: field:note.note,sequence:0 +#: field:note.stage,sequence:0 +msgid "Sequence" +msgstr "" + +#. module: note +#: view:note.note:0 +#: field:note.note,tag_ids:0 +msgid "Tags" +msgstr "" + +#. module: note +#: view:note.note:0 +msgid "Archive" +msgstr "" + +#. module: note +#: field:base.config.settings,module_note_pad:0 +msgid "Use collaborative pads (etherpad)" +msgstr "" + +#. module: note +#: help:note.note,message_summary:0 +msgid "" +"Holds the Chatter summary (number of messages, ...). This summary is " +"directly in html format in order to be inserted in kanban views." +msgstr "" + +#. module: note +#: field:base.config.settings,group_note_fancy:0 +msgid "Use fancy layouts for notes" +msgstr "" + +#. module: note +#: field:note.note,current_partner_id:0 +#: field:note.stage,user_id:0 +msgid "Owner" +msgstr "" + +#. module: note +#: help:note.stage,sequence:0 +msgid "Used to order the note stages" +msgstr "" + +#. module: note +#: field:note.note,date_done:0 +msgid "Date done" +msgstr "" + +#. module: note +#: field:note.stage,fold:0 +msgid "Folded by Default" +msgstr "" diff --git a/addons/note/note.py b/addons/note/note.py index 2d95b15107a..eb9a6397d18 100644 --- a/addons/note/note.py +++ b/addons/note/note.py @@ -141,12 +141,19 @@ class note_note(osv.osv): #note without user's stage nb_notes_ws = self.search(cr,uid, domain+[('stage_ids', 'not in', current_stage_ids)], context=context, count=True) if nb_notes_ws: - result += [{ #notes for unknown stage and if stage_ids is not empty - '__context': {'group_by': groupby[1:]}, - '__domain': domain + [('stage_ids', 'not in', current_stage_ids)], - 'stage_id': (0, 'Unknown'), - 'stage_id_count':nb_notes_ws - }] + # add note to the first column if it's the first stage + dom_not_in = ('stage_ids', 'not in', current_stage_ids) + if result and result[0]['stage_id'][0] == current_stage_ids[0]: + dom_in = result[0]['__domain'].pop() + result[0]['__domain'] = domain + ['|', dom_in, dom_not_in] + else: + # add the first stage column + result = [{ + '__context': {'group_by': groupby[1:]}, + '__domain': domain + [dom_not_in], + 'stage_id': (current_stage_ids[0], stage_name[current_stage_ids[0]]), + 'stage_id_count':nb_notes_ws + }] + result else: # if stage_ids is empty @@ -156,7 +163,7 @@ class note_note(osv.osv): result = [{ #notes for unknown stage '__context': {'group_by': groupby[1:]}, '__domain': domain, - 'stage_id': (0, 'Unknown'), + 'stage_id': False, 'stage_id_count':nb_notes_ws }] else: @@ -187,9 +194,12 @@ class res_users(osv.Model): model_id = data_obj.get_object_reference(cr, uid, 'base', 'group_user') #Employee Group group_id = model_id and model_id[1] or False if group_id in [x.id for x in user.groups_id]: - for note_xml_id in ['note_stage_01','note_stage_02','note_stage_03','note_stage_04']: - data_id = data_obj._get_id(cr, uid, 'note', note_xml_id) + for note_xml_id in ['note_stage_00','note_stage_01','note_stage_02','note_stage_03','note_stage_04']: + try: + data_id = data_obj._get_id(cr, uid, 'note', note_xml_id) + except ValueError: + continue stage_id = data_obj.browse(cr, uid, data_id, context=context).res_id note_obj.copy(cr, uid, stage_id, default = { 'user_id': user_id}, context=context) - return user_id
\ No newline at end of file + return user_id diff --git a/addons/note/note_data.xml b/addons/note/note_data.xml index 592292788b3..376b8e9053f 100644 --- a/addons/note/note_data.xml +++ b/addons/note/note_data.xml @@ -2,6 +2,12 @@ <openerp> <data> + <record model="note.stage" id="note_stage_00"> + <field name="name">New</field> + <field name="sequence" eval="0"/> + <field name="user_id" eval="ref('base.user_root')"/> + </record> + <record model="note.stage" id="note_stage_01"> <field name="name">Today</field> <field name="sequence">1</field> diff --git a/addons/note/note_view.xml b/addons/note/note_view.xml index 49a154d10cc..68ec6bfc4f7 100644 --- a/addons/note/note_view.xml +++ b/addons/note/note_view.xml @@ -193,7 +193,7 @@ </record> <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"/> + <menuitem name="Stages" id="menu_notes_stage" parent="mail.mail_my_stuff" action="note.action_note_stage" sequence="21" groups="base.group_no_one"/> </data> </openerp> |
