~therp-nl/banking-addons/ba61-payment_move_line

« back to all changes in this revision

Viewing changes to account_banking_uk_hsbc/wizard/export_hsbc.py

  • Committer: James Jesudason
  • Date: 2012-02-15 17:15:52 UTC
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.jesudason@canonical.com-20120215171552-1ivny15o4vcx9jyu
Added ability to store the HSBC Client ID for HSBCNet, and use that on the payment files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
        try:
299
299
            self.logger.notifyChannel('paymul', netsvc.LOG_INFO, 'Create transactions...')
300
300
            transactions = []
 
301
            hsbc_clientid = ''
301
302
            for po in payment_orders:
302
303
                transactions += [self._create_transaction(l) for l in po.line_ids]
 
304
                hsbc_clientid = po.hsbc_clientid_id.clientid
303
305
 
304
306
            batch = paymul.Batch(
305
307
                exec_date=strpdate(wizard_data.execution_date_create),
328
330
 
329
331
        message = paymul.Message(reference=ref)
330
332
        message.batches.append(batch)
331
 
        interchange = paymul.Interchange(client_id='CLIENTID',
 
333
        interchange = paymul.Interchange(client_id=hsbc_clientid,
332
334
                                         reference=ref,
333
335
                                         message=message)
334
336