[FIX] account_followup: do not set the next action date on a partner if he already had one previously set
bzr revid: qdp-launchpad@openerp.com-20130515151054-dhuuscqrtc1agq0i
This commit is contained in:
@@ -165,9 +165,8 @@ class res_partner(osv.osv):
|
||||
else:
|
||||
action_text = partner.latest_followup_level_id_without_lit.manual_action_note or ''
|
||||
|
||||
#Check date: put the minimum date if it existed already
|
||||
action_date = (partner.payment_next_action_date and min(partner.payment_next_action_date, fields.date.context_today(self, cr, uid, context=context))
|
||||
) or fields.date.context_today(self, cr, uid, context=context)
|
||||
#Check date: only change when it did not exist already
|
||||
action_date = partner.payment_next_action_date or fields.date.context_today(self, cr, uid, context=context)
|
||||
|
||||
# Check responsible: if partner has not got a responsible already, take from follow-up
|
||||
responsible_id = False
|
||||
|
||||
Reference in New Issue
Block a user