diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index eca80dada2f..b24fcee3ed4 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -343,10 +343,12 @@ -
- +
+
+ diff --git a/addons/hr/static/src/css/hr.css b/addons/hr/static/src/css/hr.css index 951ec4d02e3..9e288c687e5 100644 --- a/addons/hr/static/src/css/hr.css +++ b/addons/hr/static/src/css/hr.css @@ -73,3 +73,10 @@ width: auto; float: none; } +.openerp .oe_job_title_form { + width: 75%; + float: left; +} +.openerp .oe_job_button_box { + width: 24%; +} \ No newline at end of file diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml index bfd869ee583..91449c200e9 100644 --- a/addons/hr_recruitment/hr_recruitment_view.xml +++ b/addons/hr_recruitment/hr_recruitment_view.xml @@ -333,12 +333,12 @@
-
-
+
+
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 2744e6df231..069c12abec5 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -106,10 +106,11 @@ class mail_thread(osv.AbstractModel): object_id.alias_id.alias_model_id.model == self._name and \ object_id.alias_id.alias_force_thread_id == 0: alias = object_id.alias_id - elif catchall_domain and model: # no specific res_id given -> generic help message, take an example alias (i.e. alias of some section_id) + + if catchall_domain and model and not alias: #check for example alias if res_id not given or given res_id dose not contain alias-> generic help message, take an example alias (i.e. alias of some section_id) model_id = self.pool.get('ir.model').search(cr, uid, [("model", "=", self._name)], context=context)[0] alias_obj = self.pool.get('mail.alias') - alias_ids = alias_obj.search(cr, uid, [("alias_model_id", "=", model_id), ("alias_name", "!=", False), ('alias_force_thread_id', '=', 0)], context=context, order='id ASC') + alias_ids = alias_obj.search(cr, uid, [("alias_model_id", "=", model_id), ("alias_name", "!=", False), ('alias_force_thread_id', '=', False), ('alias_parent_thread_id', '=', False)], context=context, order='id ASC') if alias_ids and len(alias_ids) == 1: # if several aliases -> incoherent to propose one guessed from nowhere, therefore avoid if several aliases alias = alias_obj.browse(cr, uid, alias_ids[0], context=context)