Hi all,

I'm trying to use the wizard to reconcile two movelines using Proteus.

But I'm not sure how to do this correctly:

given two posted lines, both on the same journal:

models = ModelList()
models.append(line1)
models.append(line2)
Wizard('account.move.reconcile_lines', models=models)

I get:

Traceback (most recent call last):
File "/home/paul/tryton/src/trytond/trytond/protocols/dispatcher.py", line 136, in dispatch
    res = getattr(obj, method)(*args, **kargs)
File "/home/paul/tryton/src/trytond/trytond/wizard/wizard.py", line 191, in execute
    return self.execute(wiz_id, data, next_state)
File "/home/paul/tryton/src/trytond/trytond/wizard/wizard.py", line 144, in execute
    action_res = getattr(self, action)(data)
File "/home/paul/tryton/src/trytond/trytond/modules/account/move.py", line 1521, in _reconcile
    line_obj.reconcile(data['ids'], journal_id, date, account_id)
File "/home/paul/tryton/src/trytond/trytond/modules/account/move.py", line 1227, in reconcile
    error_args=(line.name, line.id,))
File "/home/paul/tryton/src/trytond/trytond/model/model.py", line 457, in raise_user_error
    raise Exception('UserError', error)
Exception: ('UserError', u'Line "ideal/2010059" (289) already reconciled!')


Both lines are now reconciled, and the invoice involved is paid.


--
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl

--
[email protected] mailing list

Reply via email to