On 27/10/10 14:35 +0200, Paul J Stevens wrote:
> 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.

It is fixed with http://hg.tryton.org/proteus/rev/e7bd16b24c01

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpPoPwokVKBs.pgp
Description: PGP signature

Reply via email to