From 034f540664fa3d2c939f2d22e65fcf575e05940d Mon Sep 17 00:00:00 2001 From: Jusab Sida Date: Fri, 17 Jul 2015 15:30:43 +0530 Subject: [PATCH 1/2] [IMP] crm, base_calendar: help messages on the active field were misleading. Actually, not really misleading, just wrong. Because the behavior is the opposite of what the help tells. --- addons/base_calendar/base_calendar.py | 4 ++-- addons/crm/crm.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index ca67114e851..c7534746160 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -647,7 +647,7 @@ class res_alarm(osv.osv): are both optional, but if one occurs, so MUST the other"""), 'repeat': fields.integer('Repeat'), 'active': fields.boolean('Active', help="If the active field is set to \ -true, it will allow you to hide the event alarm information without removing it.") +false, it will allow you to hide the event alarm information without removing it.") } _defaults = { 'trigger_interval': 'minutes', @@ -1108,7 +1108,7 @@ rule or repeating pattern of time to exclude from the recurring rule."), 'event_id', 'attendee_id', 'Attendees'), 'allday': fields.boolean('All Day', states={'done': [('readonly', True)]}), 'active': fields.boolean('Active', help="If the active field is set to \ - true, it will allow you to hide the event alarm information without removing it."), + false, it will allow you to hide the event alarm information without removing it."), 'recurrency': fields.boolean('Recurrent', help="Recurrent Meeting"), 'partner_ids': fields.many2many('res.partner', string='Attendees', states={'done': [('readonly', True)]}), } diff --git a/addons/crm/crm.py b/addons/crm/crm.py index 5953500dcec..02c13c7ec75 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -114,7 +114,7 @@ class crm_case_section(osv.osv): 'complete_name': fields.function(get_full_name, type='char', size=256, readonly=True, store=True), 'code': fields.char('Code', size=8), 'active': fields.boolean('Active', help="If the active field is set to "\ - "true, it will allow you to hide the sales team without removing it."), + "false, it will allow you to hide the sales team without removing it."), 'change_responsible': fields.boolean('Reassign Escalated', help="When escalating to this team override the salesman with the team leader."), 'user_id': fields.many2one('res.users', 'Team Leader'), 'member_ids':fields.many2many('res.users', 'sale_member_rel', 'section_id', 'member_id', 'Team Members'), From cb29f9efac93d709658d7db5e8f7bee97b14ff57 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 29 Jul 2015 12:00:15 +0200 Subject: [PATCH 2/2] [FIX] base: reset `latest_version` field when uninstalling a module. --- openerp/addons/base/module/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/module/module.py b/openerp/addons/base/module/module.py index 89285bdbf4f..8ffb60055f9 100644 --- a/openerp/addons/base/module/module.py +++ b/openerp/addons/base/module/module.py @@ -436,7 +436,7 @@ class module(osv.osv): ir_model_data = self.pool.get('ir.model.data') modules_to_remove = [m.name for m in self.browse(cr, uid, ids, context)] ir_model_data._module_data_uninstall(cr, uid, modules_to_remove, context) - self.write(cr, uid, ids, {'state': 'uninstalled'}) + self.write(cr, uid, ids, {'state': 'uninstalled', 'latest_version': False}) return True def downstream_dependencies(self, cr, uid, ids, known_dep_ids=None,