Re: [tryton-dev] Move origin issue when in same period

2018-05-08 Thread Cédric Krier
On 2018-05-08 22:46, Richard PALO wrote: > BTW, why does save(), for example on a move, automatically save() its lines? > Is the problem because origin is unidirectional? Because proteus simulate the behavior of other clients. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel:

Re: [tryton-dev] Move origin issue when in same period

2018-05-08 Thread Richard PALO
Le 08/05/2018 à 19:56, Cédric Krier a écrit : The origin must be saved before being assigned if you want to store the saved id. I submitted https://bugs.tryton.org/issue7421 to prevent the exception raising. Ok, I'm trying the following, based upon what I see e.g. in modelstorage.py:

Re: [tryton-dev] Move origin issue when in same period

2018-05-08 Thread Cédric Krier
On 2018-05-08 18:48, Richard PALO wrote: > I came across a difficulty noticed during FEC generation (French plan) where I > get the following exception: > >... > > File "/trytond/modules/account_fr/account.py", line 315, in get_reference > > return line.move.origin.rec_name > > AttributeError

[tryton-dev] Move origin issue when in same period

2018-05-08 Thread Richard PALO
I came across a difficulty noticed during FEC generation (French plan) where I get the following exception: ... File "/trytond/modules/account_fr/account.py", line 315, in get_reference return line.move.origin.rec_name AttributeError: 'str' object has no attribute 'rec_name' To briefly ex