Re: [tryton] It`s a bug or other?? class ModelStorage`create has no return

24 views
Skip to first unread message
Message has been deleted

Sergi Almacellas Abellana

unread,
Mar 7, 2017, 4:45:32 AM3/7/17
to try...@googlegroups.com
El 07/03/17 a les 10:26, Yanchao Jia ha escrit:
> in trytond/trytond/model/modelstorage.py
>
>
> line 90 def create() has no return

ModelStorage should be extended in order to return the records. Indeed,
this is done by ModelSQL.
>
> line 328 new_records =cls.create(to_create)
>
> new_records = ?
>

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

Cédric Krier

unread,
Mar 7, 2017, 4:50:12 AM3/7/17
to tryton
On 2017-03-07 01:26, Yanchao Jia wrote:
> in trytond/trytond/model/modelstorage.py
>
>
> line 90 def create() has no return
>
> line 328 new_records = cls.create(to_create)
>
> new_records = ?

See https://bugs.tryton.org/issue6328

If you are 19235...@qq.com, please do not duplicate communication
channels by asking here what you already have asked and been answered on
the bug-tracker.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages