On 03 Jun 18:44, Sergi Almacellas Abellana wrote: > 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?
I guess it is because AccountMoveLine is retreived using the purchase_user instead of account_user. For me it not a bug but a feature: http://hg.tryton.org/proteus/rev/5d8fbd71e99b -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpOUsQyqky34.pgp
Description: PGP signature