<commit_before>-
  In order to check the Account_voucher module with multi-currency in OpenERP, 
  I create a supplier invoices in USD and make the payment in USD but with another exchange rate and with a write-off
-
  I create a cash account with currency USD
-
  !record {model: account.account, id: account_cash_usd_id2}:
    currency_id: base.USD
    name: "cash account in usd"
    code: "Xcash usd"
    type: 'liquidity'
    user_type: "account.data_account_type_cash"

-
  I create currency USD in OpenERP for November of 1.8 Rate
-
  !record {model: res.currency.rate, id: nov_usd}:
    currency_id: base.USD
    name: !eval "'%s-11-01' %(datetime.now().year)"
    rate: 1.8
-
  I create currency USD in OpenERP for December of 1.5 Rate
-
  !record {model: res.currency.rate, id: dec_usd}:
    currency_id: base.USD
    name: !eval "'%s-12-01' %(datetime.now().year)"
    rate: 1.5
-
  I set the income and expense currency accounts on the main company
-
  !python {model: res.company}: |
    from datetime import datetime
    vals = {
      'income_currency_exchange_account_id': ref('account.o_expense'),
      'expense_currency_exchange_account_id': ref('account.o_expense')}
    self.write(cr, uid, ref('base.main_company'), vals)
-
  I create a bank journal with EUR as currency
-
  !record {model: account.journal, id: bank_journal_EUR}:<commit_msg>[FIX] account_voucher: fixed newly added constraint<commit_after>-
  In order to check the Account_voucher module with multi-currency in OpenERP, 
  I create a supplier invoices in USD and make the payment in USD but with another exchange rate and with a write-off
-
  I create a cash account with currency USD
-
  !record {model: account.account, id: account_cash_usd_id2}:
    currency_id: base.USD
    name: "cash account in usd"
    code: "Xcash usd2"
    type: 'liquidity'
    user_type: "account.data_account_type_cash"

-
  I create currency USD in OpenERP for November of 1.8 Rate
-
  !record {model: res.currency.rate, id: nov_usd}:
    currency_id: base.USD
    name: !eval "'%s-11-01' %(datetime.now().year)"
    rate: 1.8
-
  I create currency USD in OpenERP for December of 1.5 Rate
-
  !record {model: res.currency.rate, id: dec_usd}:
    currency_id: base.USD
    name: !eval "'%s-12-01' %(datetime.now().year)"
    rate: 1.5
-
  I set the income and expense currency accounts on the main company
-
  !python {model: res.company}: |
    from datetime import datetime
    vals = {
      'income_currency_exchange_account_id': ref('account.o_expense'),
      'expense_currency_exchange_account_id': ref('account.o_expense')}
    self.write(cr, uid, ref('base.main_company'), vals)
-
  I create a bank journal with EUR as currency
-
  !record {model: account.journal, id: bank_journal_EUR}:
{'fraction_non_alphanumeric': 0.10669077757685352, 'fraction_numerical': 0.012658227848101266, 'mean_word_length': 3.61, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1080450', 'n_tokens_mistral': 964, 'n_tokens_neox': 914, 'n_words': 306}