diff --git a/addons/idea/__init__.py b/addons/idea/__init__.py index e6f7333e055..8b550800117 100644 --- a/addons/idea/__init__.py +++ b/addons/idea/__init__.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). +# Copyright (C) 2004-Today OpenERP S.A. (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as diff --git a/addons/idea/__openerp__.py b/addons/idea/__openerp__.py index 8f32e1e91c4..878342d6d00 100644 --- a/addons/idea/__openerp__.py +++ b/addons/idea/__openerp__.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). +# Copyright (C) 2004-Today OpenERP S.A. (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -43,7 +43,7 @@ Once installed, check the menu 'Ideas' in the 'Tools' main menu.""", 'idea_workflow.xml', ], 'demo': ['idea_data.xml'], - 'test':[], + 'test': [], 'installable': True, 'images': [], } diff --git a/addons/idea/idea.py b/addons/idea/idea.py index d1e250ce9a5..2cd7a9858d1 100644 --- a/addons/idea/idea.py +++ b/addons/idea/idea.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). +# Copyright (C) 2004-Today OpenERP S.A. (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -21,13 +21,13 @@ from openerp.osv import osv from openerp.osv import fields -from openerp.tools.translate import _ -import time + VoteValues = [('-1', 'Not Voted'), ('0', 'Very Bad'), ('25', 'Bad'), \ - ('50', 'Normal'), ('75', 'Good'), ('100', 'Very Good') ] + ('50', 'Normal'), ('75', 'Good'), ('100', 'Very Good')] DefaultVoteValue = '50' + class idea_category(osv.osv): """ Category of Idea """ _name = "idea.category" @@ -42,20 +42,24 @@ class idea_category(osv.osv): class idea_idea(osv.osv): - """ Idea """ + """ Model of an Idea """ _name = 'idea.idea' _inherit = ['mail.thread'] _columns = { 'create_uid': fields.many2one('res.users', 'Creator', required=True, readonly=True), - 'name': fields.char('Idea Summary', size=64, required=True, readonly=True, oldname='title', states={'draft': [('readonly', False)]}), - 'description': fields.text('Description', help='Content of the idea', readonly=True, states={'draft': [('readonly', False)]}), - 'category_ids': fields.many2many('idea.category', string='Tags', readonly=True, states={'draft': [('readonly', False)]}), + 'name': fields.char('Idea Summary', size=64, required=True, readonly=True, + states={'draft': [('readonly', False)]}, + oldname='title'), + 'description': fields.text('Description', readonly=True, + states={'draft': [('readonly', False)]}, + help='Content of the idea'), + 'category_ids': fields.many2many('idea.category', string='Tags', readonly=True, + states={'draft': [('readonly', False)]}), 'state': fields.selection([('draft', 'New'), - ('open', 'Accepted'), - ('cancel', 'Refused'), - ('close', 'Done')], - 'Status', readonly=True, track_visibility='onchange', - ) + ('open', 'Accepted'), + ('cancel', 'Refused'), + ('close', 'Done')], + 'Status', readonly=True, track_visibility='onchange'), } _sql_constraints = [ ('name', 'unique(name)', 'The name of the idea must be unique') diff --git a/addons/idea/idea_view.xml b/addons/idea/idea_view.xml index 53734d53919..e1a4b942e83 100644 --- a/addons/idea/idea_view.xml +++ b/addons/idea/idea_view.xml @@ -3,18 +3,19 @@ - - - idea.category.search - idea.category - - - - - - - + + + idea.category.search + idea.category + + + + + + + + idea.category.form idea.category @@ -40,96 +41,95 @@ + + Categories + idea.category + form + tree,form + + - - Categories - idea.category - form - tree,form - - + - + - - - + - + + + idea.idea.form + idea.idea + +
+
+
+ + +
+ + +
+
+
+
- - idea.idea.form - idea.idea - -
-
-
- - -
- - -
-
-
-
+ + + idea.idea.tree + idea.idea + + + + + + + + - + + + idea.idea.search + idea.idea + + + + + + + + + + + + + + + - - idea.idea.tree - idea.idea - - - - - - - - + + Ideas + idea.idea + form + tree,form + + - - - - idea.idea.search - idea.idea - - - - - - - - - - - - - - - - - - Ideas - idea.idea - form - tree,form - - - - +
diff --git a/addons/idea/security/idea_security.xml b/addons/idea/security/idea_security.xml index 8743252c9e5..c72608863b0 100644 --- a/addons/idea/security/idea_security.xml +++ b/addons/idea/security/idea_security.xml @@ -1,12 +1,12 @@ - + - - User - - + + User + + - +