[IMP] project, project_issue : Improved the tooltip.
authorDivyesh Makwana (Open ERP) <mdi@tinyerp.com>
Wed, 18 Apr 2012 13:10:00 +0000 (18:40 +0530)
committerDivyesh Makwana (Open ERP) <mdi@tinyerp.com>
Wed, 18 Apr 2012 13:10:00 +0000 (18:40 +0530)
bzr revid: mdi@tinyerp.com-20120418131000-xoxybd9fw7imliad

addons/project/project.py
addons/project_issue/project_issue.py

index 5fe723e..9a128d2 100644 (file)
@@ -44,9 +44,7 @@ class project_task_type(osv.osv):
         'sequence': fields.integer('Sequence'),
         'project_default': fields.boolean('Common to All Projects', help="If you check this field, this stage will be proposed by default on each new project. It will not assign this stage to existing projects."),
         'project_ids': fields.many2many('project.project', 'project_task_type_rel', 'type_id', 'project_id', 'Projects'),
-        'state': fields.selection(_TASK_STATE, 'State', required=True,
-                                help='If the task is created the state is \'Draft\'.\n If the task is started, the state becomes \'In Progress\'.\n If review is needed the task is in \'Pending\' state.\
-                                \n If the task is over, the states is set to \'Done\'.'),
+        'state': fields.selection(_TASK_STATE, 'State', required=True, help='This state is related to stage.'),
     }
     _defaults = {
         'state': 'draft',
@@ -698,7 +696,8 @@ class task(osv.osv):
         store = {
                 'project.task': (lambda self, cr, uid, ids, c={}: ids, ['type_id'], 10),
                 'project.task.type': (_get_stage, ['state'], 10)
-        }),
+        }, help='If the task is created the state is \'Draft\'.\n If the task is started, the state becomes \'In Progress\'.\n If review is needed the task is in \'Pending\' state.\
+                                \n If the task is over, the states is set to \'Done\'.'),
         'kanban_state': fields.selection([('normal', 'Normal'),('blocked', 'Blocked'),('done', 'Ready To Pull')], 'Kanban State',
                                          help="A task's kanban state indicates special situations affecting it:\n"
                                               " * Normal is the default situation\n"
index 484900b..38d948c 100644 (file)
@@ -211,7 +211,10 @@ class project_issue(crm.crm_case, osv.osv):
         store = {
                 'project.issue': (lambda self, cr, uid, ids, c={}: ids, ['type_id'], 10),
                 'project.task.type': (_get_stage, ['state'], 10)
-        }),
+        }, help='The state is set to \'Draft\', when a case is created.\
+                                  \nIf the case is in progress the state is set to \'Open\'.\
+                                  \nWhen the case is over, the state is set to \'Done\'.\
+                                  \nIf the case needs to be reviewed then the state is set to \'Pending\'.'),
         'email_from': fields.char('Email', size=128, help="These people will receive email.", select=1),
         'email_cc': fields.char('Watchers Emails', size=256, help="These email addresses will be added to the CC field of all inbound and outbound emails for this record before being sent. Separate multiple email addresses with a comma"),
         'date_open': fields.datetime('Opened', readonly=True,select=True),