-
  Demo data for Account tax code
-
  !record {model: account.tax.code, id: account_tax_code_0}:
    name : Tax Code Test
    sign : 1.00
-
  In order to test the 'Post Journal Entries' wizard in OpenERP, I created an account move
-
  !record {model: account.move, id: account_move_0}:
    date: !eval time.strftime('%Y-%m-%d')
    journal_id: account.bank_journal
    line_id:
      - account_id: account.cash
        amount_currency: 0.0
        credit: 2000.0
        date: !eval time.strftime('%Y-%m-%d')
        debit: 0.0
        journal_id: account.bank_journal
        name: Basic Computer
        partner_id: base.res_partner_desertic_hispafuentes
        period_id: account.period_6
        ref: '2011010'
        tax_amount: 0.0
      - journal_id: account.bank_journal
        period_id: account.period_6
        ref: '2011010'
        tax_code_id: account_tax_code_0      
        tax_amount: 0.0
        account_id: account.a_recv
        amount_currency: 0.0
        credit: 0.0
        date: !eval time.strftime('%Y-%m-%d')
        debit: 2000.0
        name: Basic Computer
        partner_id: base.res_partner_desertic_hispafuentes
        quantity: 0.0
    name: /
    period_id: account.period_6
    ref: '2011010'
    state: draft

-
  I check that Initially account move state is "Draft"
-
  !assert {model: account.move, id: account_move_0, string: initialstatedraft}:
    - state == 'draft'
-
  I validate this account move by using the 'Post Journal Entries' wizard
-
  !record {model: validate.account.move, id: validate_account_move_0}:
    journal_id: account.bank_journal
    period_id: account.period_6
-
  I click on validate Button
-
  !python {model: validate.account.move}: |
      self.validate_move(cr, uid, [ref("validate_account_move_0")], {"lang": "en_US", "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_validate_account_moves")], "tz": False, "active_id": ref("account.menu_validate_account_moves"), })
-
  I check that the invoice state is now "Posted"
-
  !assert {model: account.move, id: account_move_0, string: moveincorrect}:
    - state == 'posted'
