summaryrefslogtreecommitdiff
path: root/addons/note_pad/note_pad.py
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2012-09-07 13:56:04 +0200
committerChristophe Matthieu <chm@openerp.com>2012-09-07 13:56:04 +0200
commitb49b72f00ec2d818338aa8af008ac8337ba990df (patch)
tree065178ab5412214b3a4d50b04f988f05ca3b393a /addons/note_pad/note_pad.py
parent481c300cc5b98ffca245fa59573063513074a0d8 (diff)
[IMP] note : split of note module : note module & note_pad module
bzr revid: chm@openerp.com-20120907115604-wmp8rxec0fk9508r
Diffstat (limited to 'addons/note_pad/note_pad.py')
-rw-r--r--addons/note_pad/note_pad.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/addons/note_pad/note_pad.py b/addons/note_pad/note_pad.py
new file mode 100644
index 00000000000..73cc9d76a62
--- /dev/null
+++ b/addons/note_pad/note_pad.py
@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.osv import osv, fields
+from tools.translate import _
+
+class note_pad_note(osv.osv):
+ """ Note pad """
+
+ _name = 'note.note'
+ _inherit = ['pad.common','note.note']
+
+ _pad_fields = ['note_pad']
+ _description = "Note pad"
+
+ _columns = {
+ 'note_pad_url': fields.char('Pad Url', size=250),
+ }
+
+ _defaults = {
+ 'note_pad_url': lambda self, cr, uid, context: self.pad_generate_url(cr, uid, context),
+ }