~julie-w/unifield-wm/UTP-925

« back to all changes in this revision

Viewing changes to account_hq_entries/test/20_import_and_validation.yml

  • Committer: jf
  • Date: 2013-12-18 19:22:08 UTC
  • mfrom: (1851.10.32 UTP_760)
  • Revision ID: jfb@tempo-consulting.fr-20131218192208-24lnuzopwtkxftte
UTP-760 [IMP] Issues with HQ entries Split (analytical and accounting)
UTP-761 [IMP] HQ entries - not possible to change the description field so we cannot mention which
lp:~unifield-team/unifield-wm/UTP_760

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
-
45
45
  I validate all HQ Entries
46
46
-
47
 
  !python {model: hq.entries.validation.wizard}: |
 
47
  !python {model: hq.entries.validation}: |
48
48
    # The wizard only takes active_ids that are in context. So we search all HQ Entries, put them into context and launch the process!
49
49
    hq_ids = self.pool.get('hq.entries').search(cr, uid, [])
50
 
    wiz_id = self.create(cr, uid, {}, context={'active_ids': hq_ids})
51
 
    self.validate(cr, uid, [wiz_id], context={'active_ids': hq_ids})
 
50
    res = self.pool.get('hq.entries').get_validation_wizard(cr, uid, [], context={'active_ids': hq_ids})
 
51
    assert res.get('res_id', False) != False, "No wizard created!"
 
52
    assert res.get('res_model', False) == 'hq.entries.validation', "Wrong return type. Should be hq.entries.validation!"
 
53
    self.button_validate(cr, uid, res.get('res_id'))
52
54
-
53
55
  I test HQ entries import result (5 JI on Jan the 8th, 4 JE in BIF, 1 JE on CHF, 2 JE in EUR, etc.)
54
56
-