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}
97
99
vals = {'analytic_id': account_id}
98
100
return self.pool.get('funding.pool.distribution.line').write(cr, uid, line_ids, vals)