Message 68954

Author
bernatnan
Date
2021-07-20.17:10:10
Message id
68954

Content

Missatge de Cédric Krier <bugs@tryton.org> del dia dt., 20 de jul. 2021 a
les 17:00:

>
> Cédric Krier <cedric.krier@b2ck.com> added the comment:
>
> On 2021-07-20 16:30, Bernat Brunet wrote:
> > I have created Product01 and make an inventory of 100 units.
> > You have a shipment in return (id:2) with 150 units and if you try to
> Assign, appear the loop origin warning.
>
> Indeed it happens when Move.assign_try create a new move to be assigned.
> So on each run it is a new id that is used for this new move.
> I think we should find a way to distinct new records in Warning_.format
> so we use another value than the id to build the key.
> I think to distinct we could the `Transaction.create_records` and to
> replace the id we could use the value of the fields excepted for binary.
>

Another solution may be could be fill the origin of the new move with the
'stock.move,ID' of the original move and this will avoid the missing origin
warning.

> ______________________________________
> Tryton issue tracker <bugs@tryton.org>
> <https://bugs.tryton.org/issue10591>
> ______________________________________
>

-- 

Bernat Brunet

Tel. (+34) 935 531 803

<https://www.nan-tic.com/en/news/>  <http://twitter.com/nan_tic>
<https://www.linkedin.com/company/nan-tic/>

Pot consultar la informació sobre el tractament que realitzem de les dades
de caràcter personal de conformitat amb l’article 11 LOPD aquí
<https://www.nan-tic.com/lopd>.
History
Date User Action Args
2021-07-20 17:10:10bernatnansetrecipients: + ced
2021-07-20 17:10:10bernatnanlinkissue10591 messages
2021-07-20 17:10:10bernatnancreate

Showing 10 items. Show all history (warning: this could be VERY long)