'This function prepares move line of account.move related to an expense'

def _prepare_move_line(self, line):

    partner_id = self.employee_id.address_home_id.commercial_partner_id.id
    return {'date_maturity': line.get('date_maturity'), 'partner_id': partner_id, 'name': line['name'][:64], 'debit': ((line['price'] > 0) and line['price']), 'credit': ((line['price'] < 0) and (- line['price'])), 'account_id': line['account_id'], 'analytic_line_ids': line.get('analytic_line_ids'), 'amount_currency': (((line['price'] > 0) and abs(line.get('amount_currency'))) or (- abs(line.get('amount_currency')))), 'currency_id': line.get('currency_id'), 'tax_line_id': line.get('tax_line_id'), 'tax_ids': line.get('tax_ids'), 'quantity': line.get('quantity', 1.0), 'product_id': line.get('product_id'), 'product_uom_id': line.get('uom_id'), 'analytic_account_id': line.get('analytic_account_id'), 'payment_id': line.get('payment_id')}
