+
-
-
-
-
+
+
+
+
+
-
-
+
+
+ note.note.tree
+ note.note
+
+
+
+
+
+
+
+
+
+
+
note.note.form
note.note
-
+
note.note.search
note.note
-
+
+
+
+
-
-
+
-
+
+
+
+ note.view.general_settings.form
+ base.config.settings
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Notes
note.note
form
kanban,tree,form
+ {'search_default_active_true':True}
diff --git a/addons/note/security/ir.model.access.csv b/addons/note/security/ir.model.access.csv
index fdd6030ca51..cbe11cba94e 100644
--- a/addons/note/security/ir.model.access.csv
+++ b/addons/note/security/ir.model.access.csv
@@ -1,3 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
-access_note_stage_user,note.stage user,model_note_stage,base.group_user,1,1,1,1
-access_note_note_user,note.note user,model_note_note,base.group_user,1,1,1,1
+access_note_stage,note.stage,model_note_stage,base.group_user,1,1,1,1
+access_note_note,note.note,model_note_note,base.group_user,1,1,1,1
+access_note_tag,note.tag,model_note_tag,base.group_user,1,1,1,1
diff --git a/addons/note/security/ir.rule.xml b/addons/note/security/ir.rule.xml
new file mode 100644
index 00000000000..3d2f0d242f6
--- /dev/null
+++ b/addons/note/security/ir.rule.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ Only followers can access a sticky notes
+
+ ['|',('message_follower_ids','=',False),('message_follower_ids','=',user.partner_id.id)]
+
+
+
+
+
diff --git a/addons/note/security/note_security.xml b/addons/note/security/note_security.xml
deleted file mode 100644
index 46eebee629c..00000000000
--- a/addons/note/security/note_security.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- My notes
-
-
- [('follower_ids','=',user.id)]
-
-
-
-
diff --git a/addons/note/security/res.groups.csv b/addons/note/security/res.groups.csv
new file mode 100644
index 00000000000..61c54c964ff
--- /dev/null
+++ b/addons/note/security/res.groups.csv
@@ -0,0 +1,3 @@
+id,name,implied_ids/id
+group_note_tags,Memo / Display tags,
+group_note_fancy,Memo / Fancy mode,
diff --git a/addons/note/static/src/css/Makefile b/addons/note/static/src/css/Makefile
index d6019f4ed4a..91b3abc9333 100644
--- a/addons/note/static/src/css/Makefile
+++ b/addons/note/static/src/css/Makefile
@@ -1,3 +1,3 @@
-note.css: note.sass
- sass -t expanded note.sass note.css
+memo.css: memo.sass
+ sass -t expanded memo.sass memo.css
diff --git a/addons/note/static/src/css/note.css b/addons/note/static/src/css/note.css
index 7e79438b46a..6ada8d6cd14 100644
--- a/addons/note/static/src/css/note.css
+++ b/addons/note/static/src/css/note.css
@@ -1,78 +1,143 @@
-.openerp .oe_notes .oe_fold_column .oe_kanban_card {
- text-decoration:none;
- color:#000;
- display:block;
- padding:1em;
- margin-right: 1em;
- margin-bottom: 1em;
-
- -moz-box-shadow:5px 5px 7px rgba(33,33,33,1);
- -webkit-box-shadow: 5px 5px 7px rgba(33,33,33,.7);
- box-shadow: 5px 5px 7px rgba(33,33,33,.7);
+@charset "utf-8";
+@font-face {
+ font-family: "mnmliconsRegular";
+ src: url("/web/static/src/font/mnmliconsv21-webfont.eot") format("eot");
+ src: url("/web/static/src/font/mnmliconsv21-webfont.woff") format("woff");
+ src: url("/web/static/src/font/mnmliconsv21-webfont.ttf") format("truetype");
+ src: url("/web/static/src/font/mnmliconsv21-webfont.svg") format("svg") active;
+ font-weight: normal;
+ font-style: normal;
}
-.openerp .oe_notes .oe_kanban_record .oe_kanban_card {
- -webkit-transform: rotate(-2deg);
- -o-transform: rotate(-2deg);
- -moz-transform:rotate(-2deg);
+@font-face {
+ font-family: "EntypoRegular";
+ src: url("/web/static/src/font/entypo-webfont.eot") format("eot");
+ src: url("/web/static/src/font/entypo-webfont.eot?#iefix") format("embedded-opentype");
+ src: url("/web/static/src/font/entypo-webfont.woff") format("woff");
+ src: url("/web/static/src/font/entypo-webfont.ttf") format("truetype");
+ src: url("/web/static/src/font/entypo-webfont.svg") format("svg") active;
+ font-weight: normal;
+ font-style: normal;
}
-.openerp .oe_notes .oe_kanban_record:nth-of-type(even) .oe_kanban_card {
- -webkit-transform: rotate(1deg);
- -o-transform: rotate(1deg);
- -moz-transform:rotate(1deg);
+@-moz-keyframes bounce {
+ 0% {
+ -moz-transform: scale(0);
+ opacity: 0;
+ }
+
+ 50% {
+ -moz-transform: scale(1.3);
+ opacity: 0.4;
+ }
+
+ 75% {
+ -moz-transform: scale(0.9);
+ opacity: 0.7;
+ }
+
+ 100% {
+ -moz-transform: scale(1);
+ opacity: 1;
+ }
}
-.openerp .oe_notes .oe_kanban_record:nth-of-type(3n) .oe_kanban_card {
- -webkit-transform: rotate(4deg);
- -o-transform: rotate(4deg);
- -moz-transform:rotate(4deg);
+@-webkit-keyframes bounce {
+ 0% {
+ -webkit-transform: scale(0);
+ opacity: 0;
+ }
+
+ 50% {
+ -webkit-transform: scale(1.3);
+ opacity: 0.4;
+ }
+
+ 75% {
+ -webkit-transform: scale(0.9);
+ opacity: 0.7;
+ }
+
+ 100% {
+ -webkit-transform: scale(1);
+ opacity: 1;
+ }
}
-.openerp .oe_notes .oe_kanban_column:nth-of-type(even) .oe_kanban_record .oe_kanban_card {
- -webkit-transform: rotate(2deg);
- -o-transform: rotate(2deg);
- -moz-transform:rotate(2deg);
+.oe_kanban_color_2 {
+ background-color: red;
}
-.openerp .oe_notes .oe_kanban_column:nth-of-type(even) .oe_kanban_record:nth-of-type(even) .oe_kanban_card {
- -webkit-transform: rotate(-3deg);
- -o-transform: rotate(-3deg);
- -moz-transform:rotate(-3deg);
+.oe_kanban_column .note_text_line_through {
+ text-decoration: line-through;
}
-.openerp .oe_notes .oe_kanban_column:nth-of-type(even) .oe_kanban_record:nth-of-type(3n) .oe_kanban_card {
- -webkit-transform: rotate(1deg);
- -o-transform: rotate(1deg);
- -moz-transform:rotate(1deg);
+.openerp .oe_fold_column .oe_kanban_card_fancy {
+ text-decoration: none;
+ color: black;
+ display: block;
+ padding: 1em;
+ margin-right: 1em;
+ margin-bottom: 1em;
+ -moz-box-shadow: 5px 5px 7px #212121;
+ -webkit-box-shadow: 5px 5px 7px rgba(33, 33, 33, 0.7);
+ box-shadow: 5px 5px 7px rgba(33, 33, 33, 0.7);
}
-.openerp .oe_notes .oe_kanban_column:nth-of-type(3n) .oe_kanban_record .oe_kanban_card {
- -webkit-transform: rotate(-2deg);
- -o-transform: rotate(-2deg);
- -moz-transform:rotate(-2deg);
+.openerp .oe_kanban_record .oe_kanban_card_fancy {
+ -webkit-transform: rotate(-2deg);
+ -o-transform: rotate(-2deg);
+ -moz-transform: rotate(-2deg);
+}
+.openerp .oe_kanban_record:nth-of-type(even) .oe_kanban_card_fancy {
+ -webkit-transform: rotate(1deg);
+ -o-transform: rotate(1deg);
+ -moz-transform: rotate(1deg);
+}
+.openerp .oe_kanban_record:nth-of-type(3n) .oe_kanban_card_fancy {
+ -webkit-transform: rotate(4deg);
+ -o-transform: rotate(4deg);
+ -moz-transform: rotate(4deg);
+}
+.openerp .oe_kanban_column:nth-of-type(even) .oe_kanban_card_fancy {
+ -webkit-transform: rotate(2deg);
+ -o-transform: rotate(2deg);
+ -moz-transform: rotate(2deg);
+}
+.openerp .oe_kanban_column:nth-of-type(even) .oe_kanban_record:nth-of-type(even) .oe_kanban_card_fancy {
+ -webkit-transform: rotate(-3deg);
+ -o-transform: rotate(-3deg);
+ -moz-transform: rotate(-3deg);
+}
+.openerp .oe_kanban_column:nth-of-type(even) .oe_kanban_record:nth-of-type(3n) .oe_kanban_card_fancy {
+ -webkit-transform: rotate(1deg);
+ -o-transform: rotate(1deg);
+ -moz-transform: rotate(1deg);
+}
+.openerp .oe_kanban_column:nth-of-type(3n) .oe_kanban_card_fancy {
+ -webkit-transform: rotate(-2deg);
+ -o-transform: rotate(-2deg);
+ -moz-transform: rotate(-2deg);
+}
+.openerp .oe_kanban_column:nth-of-type(3n) .oe_kanban_record:nth-of-type(even) .oe_kanban_card_fancy {
+ -webkit-transform: rotate(1deg);
+ -o-transform: rotate(1deg);
+ -moz-transform: rotate(1deg);
+}
+.openerp .oe_kanban_column:nth-of-type(3n) .oe_kanban_record:nth-of-type(3n) .oe_kanban_card_fancy {
+ -webkit-transform: rotate(-1deg);
+ -o-transform: rotate(-1deg);
+ -moz-transform: rotate(-1deg);
}
-.openerp .oe_notes .oe_kanban_column:nth-of-type(3n) .oe_kanban_record:nth-of-type(even) .oe_kanban_card {
- -webkit-transform: rotate(1deg);
- -o-transform: rotate(1deg);
- -moz-transform:rotate(1deg);
-}
-
-.openerp .oe_notes .oe_kanban_column:nth-of-type(3n) .oe_kanban_record:nth-of-type(3n) .oe_kanban_card {
- -webkit-transform: rotate(-1deg);
- -o-transform: rotate(-1deg);
- -moz-transform:rotate(-1deg);
-}
-
-.openerp .oe_notes .oe_kanban_column .oe_fold_column .oe_kanban_card:hover,
-.openerp .oe_notes .oe_kanban_column .oe_fold_column .oe_kanban_card:focus {
- box-shadow:10px 10px 7px rgba(0,0,0,.7);
- -moz-box-shadow:10px 10px 7px rgba(0,0,0,.7);
- -webkit-box-shadow: 10px 10px 7px rgba(0,0,0,.7);
- -webkit-transform: rotate(0);
- -moz-transform: rotate(0);
- -o-transform: rotate(0);
- position:relative;
- z-index:5;
+.openerp .oe_kanban_column .oe_fold_column .oe_kanban_card_fancy:hover,
+.openerp .oe_kanban_column .oe_fold_column .oe_kanban_card_fancy:focus {
+ box-shadow: 10px 10px 7px rgba(0, 0, 0, 0.7);
+ -moz-box-shadow: 10px 10px 7px rgba(0, 0, 0, 0.7);
+ -webkit-box-shadow: 10px 10px 7px rgba(0, 0, 0, 0.7);
+ position: relative;
+ z-index: 5;
+ -webkit-transform: rotate(0);
+ -o-transform: rotate(0);
+ -moz-transform: rotate(0);
}
diff --git a/addons/note/static/src/css/note.sass b/addons/note/static/src/css/note.sass
index cd04015dcbb..56aa91abc44 100644
--- a/addons/note/static/src/css/note.sass
+++ b/addons/note/static/src/css/note.sass
@@ -42,10 +42,10 @@ $sheet-max-width: 860px
background-color: $startColor
background-image: -webkit-gradient(linear, left top, left bottom, from($startColor), to($endColor)) /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, $startColor, $endColor) /* Chrome 10+, Saf5.1+, iOS 5+ */
- background-image: -moz-linear-gradient(top, $startColor, $endColor) /* FF3.6 */
- background-image: -ms-linear-gradient(top, $startColor, $endColor) /* IE10 */
- background-image: -o-linear-gradient(top, $startColor, $endColor) /* Opera 11.10+ */
- background-image: linear-gradient(to bottom, $startColor, $endColor)
+ background-image: -moz-linear-gradient(top, $startColor, $endColor) /* FF3.6 */
+ background-image: -ms-linear-gradient(top, $startColor, $endColor) /* IE10 */
+ background-image: -o-linear-gradient(top, $startColor, $endColor) /* Opera 11.10+ */
+ background-image: linear-gradient(to bottom, $startColor, $endColor)
@mixin radial-gradient($gradient)
background-position: center center
@@ -93,7 +93,7 @@ $sheet-max-width: 860px
font-size: 1px
letter-spacing: -1px
color: transparent
- &:before
+ &: before
font: 21px "mnmliconsRegular"
content: $icon-name
color: $color
@@ -131,7 +131,79 @@ $sheet-max-width: 860px
.oe_kanban_color_2
- background-color:red
+ background-color: red
-// au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers
> "%:p:r.css"
+// au BufWritePost,FileWritePost *.sass : !sass --style expanded --line-numbers > "%: p: r.css"
+.oe_kanban_column
+ .note_text_line_through
+ text-decoration: line-through
+
+
+.openerp
+ .oe_fold_column
+ .oe_kanban_card_fancy
+ text-decoration: none
+ color: #000
+ display: block
+ padding: 1em
+ margin-right: 1em
+ margin-bottom: 1em
+ -moz-box-shadow: 5px 5px 7px rgba(33,33,33,1)
+ -webkit-box-shadow: 5px 5px 7px rgba(33,33,33,.7)
+ box-shadow: 5px 5px 7px rgba(33,33,33,.7)
+
+
+@mixin rotate($a)
+ -webkit-transform: rotate($a)
+ -o-transform: rotate($a)
+ -moz-transform: rotate($a)
+
+.openerp
+ .oe_kanban_record
+ .oe_kanban_card_fancy
+ @include rotate(-2deg)
+ .oe_kanban_record:nth-of-type(even)
+ .oe_kanban_card_fancy
+ @include rotate(1deg)
+ .oe_kanban_record:nth-of-type(3n)
+ .oe_kanban_card_fancy
+ @include rotate(4deg)
+ .oe_kanban_column:nth-of-type(even)
+ .oe_kanban_card_fancy
+ @include rotate(2deg)
+ .oe_kanban_column:nth-of-type(even)
+ .oe_kanban_record:nth-of-type(even)
+ .oe_kanban_card_fancy
+ @include rotate(-3deg)
+ .oe_kanban_column:nth-of-type(even)
+ .oe_kanban_record:nth-of-type(3n)
+ .oe_kanban_card_fancy
+ @include rotate(1deg)
+ .oe_kanban_column:nth-of-type(3n)
+ .oe_kanban_card_fancy
+ @include rotate(-2deg)
+ .oe_kanban_column:nth-of-type(3n)
+ .oe_kanban_record:nth-of-type(even)
+ .oe_kanban_card_fancy
+ @include rotate(1deg)
+ .oe_kanban_column:nth-of-type(3n)
+ .oe_kanban_record:nth-of-type(3n)
+ .oe_kanban_card_fancy
+ @include rotate(-1deg)
+
+
+@mixin oe_kanban_card_fancy
+ box-shadow: 10px 10px 7px rgba(0,0,0,.7)
+ -moz-box-shadow: 10px 10px 7px rgba(0,0,0,.7)
+ -webkit-box-shadow: 10px 10px 7px rgba(0,0,0,.7)
+ position: relative
+ z-index: 5
+ @include rotate(0)
+
+.openerp
+ .oe_kanban_column
+ .oe_fold_column
+ .oe_kanban_card_fancy:hover,
+ .oe_kanban_card_fancy:focus
+ @include oe_kanban_card_fancy
diff --git a/addons/note_pad/__init__.py b/addons/note_pad/__init__.py
new file mode 100644
index 00000000000..44a484adac4
--- /dev/null
+++ b/addons/note_pad/__init__.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL ().
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+import note_pad
+
diff --git a/addons/note_pad/__openerp__.py b/addons/note_pad/__openerp__.py
new file mode 100644
index 00000000000..1a40ef80cc6
--- /dev/null
+++ b/addons/note_pad/__openerp__.py
@@ -0,0 +1,50 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL ().
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+{
+ 'name': 'Memos pad',
+ 'version': '0.1',
+ 'category': 'Tools',
+ 'description': """
+This module update memos inside OpenERP for using an external pad
+===================================================================
+
+Use for update your text memo in real time with the following user that you invite.
+
+""",
+ 'author': 'OpenERP SA',
+ 'website': 'http://openerp.com',
+ 'summary': 'Sticky memos, Collaborative',
+ 'depends': [
+ 'base_tools',
+ 'mail',
+ 'pad',
+ 'note',
+ ],
+ 'data': [
+ 'note_pad_view.xml',
+ ],
+ 'installable': True,
+ 'application': False,
+ 'auto_install': False,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/note_pad/note_pad.py b/addons/note_pad/note_pad.py
new file mode 100644
index 00000000000..9864f0ae14f
--- /dev/null
+++ b/addons/note_pad/note_pad.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL ().
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from openerp.osv import osv, fields
+from tools.translate import _
+
+class note_pad_note(osv.osv):
+ """ memo pad """
+
+ _name = 'note.note'
+ _inherit = ['pad.common','note.note']
+
+ _pad_fields = ['note_pad']
+
+ _columns = {
+ 'note_pad_url': fields.char('Pad Url',
+ pad_content_field='memo',
+ size=250 ),
+ }
+
+ #_defaults = {
+ # 'note_pad_url': lambda self, cr, uid, context: self.pad_generate_url(cr, uid, context),
+ #}
diff --git a/addons/note_pad/note_pad_view.xml b/addons/note_pad/note_pad_view.xml
new file mode 100644
index 00000000000..9e45a3952f1
--- /dev/null
+++ b/addons/note_pad/note_pad_view.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ note_pad.view.form
+ note.note
+
+
+
+
+
+
+
+
+