Hi,

I have found some strange error on a test scenario [1]. The error seems related to some kind of cache on proteus, but i can not find more information on proteus code.

So basically i get the following code on pdb:

AccountMoveLine(23)
proteus.Model.get('account.move.line')(23)
AccountMoveLine(23).reconciliation
*** AttributeError: 'account.move.line' object has no attribute 'reconciliation'
AccountMoveLine(23)
proteus.Model.get('account.move.line')(23)
line = AccountMoveLine(23)
line.reload()
line.reconciliation
*** AttributeError: 'account.move.line' object has no attribute 'reconciliation'
MoveLine = Model.get('account.move.line')
MoveLine(23).reconciliation
proteus.Model.get('account.move.reconciliation')(2)

The line is read before the executing the snippet by a find call (line 412) and then it gets reconciled on line 424 and reread on line 426, so i don't understang why the reconcile field is not available.

This worked well on version 3.0, but doesn't work in 3.2 (i imagine that doesn't work on trunk also)

Is this the expected behaviour or it's a bug?

P.D: Sorry for not linking the lines, but bitbucket doesn't allow to do it on rst files :(

[1] https://bitbucket.org/nantic/trytond-purchase_stock_account_move/raw/36b261c60242c6daa2c42ec3b6a977efb8017d92/tests/scenario_purchase.rst

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Reply via email to