[MERGE] misc fixes
bzr revid: qdp-launchpad@openerp.com-20120823125156-uddhlkwg9mddoer8
This commit is contained in:
commit
c33449b43e
|
@ -108,7 +108,7 @@ class hr_payslip(osv.osv):
|
|||
'journal_id': slip.journal_id.id,
|
||||
'period_id': period_id,
|
||||
}
|
||||
for line in slip.line_ids:
|
||||
for line in slip.details_by_salary_rule_category:
|
||||
amt = slip.credit_note and -line.total or line.total
|
||||
partner_id = line.salary_rule_id.register_id.partner_id and line.salary_rule_id.register_id.partner_id.id or default_partner_id
|
||||
debit_account_id = line.salary_rule_id.account_debit.id
|
||||
|
|
|
@ -296,7 +296,7 @@ class mail_thread(osv.Model):
|
|||
self.message_create_notify_by_email(cr, uid, vals, user_to_push_ids, context=context)
|
||||
|
||||
return msg_id
|
||||
|
||||
|
||||
def message_get_user_ids_to_notify(self, cr, uid, thread_ids, new_msg_vals, context=None):
|
||||
# get body
|
||||
body = new_msg_vals.get('body_html', '') if new_msg_vals.get('content_subtype') == 'html' else new_msg_vals.get('body_text', '')
|
||||
|
@ -1139,7 +1139,7 @@ class mail_thread(osv.Model):
|
|||
""" When creating a new message, set as unread if uid is not the
|
||||
object responsible. """
|
||||
for obj in self.browse(cr, uid, ids, context=context):
|
||||
if obj.message_state and self._columns.get('user_id') and (not obj.user_id or obj.user_id.id != uid):
|
||||
if obj.message_state and ('user_id' in obj._columns.keys()) and (not obj.user_id or obj.user_id.id != uid) :
|
||||
self.message_mark_as_unread(cr, uid, [obj.id], context=context)
|
||||
|
||||
def message_check_and_set_unread(self, cr, uid, ids, context=None):
|
||||
|
|
Loading…
Reference in New Issue