~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to analytic_override/analytic_distribution.py

  • Committer: jf
  • Date: 2014-09-05 08:53:44 UTC
  • mfrom: (2206.3.39 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20140905085344-n3iz6igxpmo0yfht
Tags: pilot3.1b7
Pilot 3.1b7

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        account = self.pool.get('account.analytic.account').browse(cr, uid, [account_id], context=context)[0]
94
94
        if account.category == 'OC':
95
95
            vals = {'cost_center_id': account_id}
 
96
        elif account.category == 'DEST':
 
97
            vals = {'destination_id': account_id}
96
98
        else:
97
99
            vals = {'analytic_id': account_id}
98
100
        return self.pool.get('funding.pool.distribution.line').write(cr, uid, line_ids, vals)