144
144
raise osv.except_osv(_('Warning !'), _("Account/destination %s/%s is twice in the file!")%(account_codes[0], account_codes[1]))
146
146
account = self.pool.get('account.account').browse(cr,uid,account_ids[0], context=context)
148
raise osv.except_osv(_('Warning !'), _("Account %s is not an expense account!") % (account_codes[0],))
148
raise osv.except_osv(_('Warning !'), _("Account %s is not an analytic-a-holic account!") % (account_codes[0],))
149
149
# Only create "destination" budget lines
150
150
budget_line_vals.update({'account_id': account_ids[0],
151
151
'destination_id': destination_ids[0],