Issue 11629

error creating a sale ver 6.4
Nosy list
ced, david_auto, reviewbot, roundup-bot
Assigned to

Created on 2022-08-04.16:09:03 by david_auto, last changed 3 months ago by roundup-bot.


New changeset dcd1db71737a by Cédric Krier in branch '6.4':
Return invoice term id as default value
New changeset e3f5de689d64 by Cédric Krier in branch 'default':
Return invoice term id as default value
New changeset a1d42034b3d1 by Cédric Krier in branch 'default':
Return invoice term id as default value
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-08-04.16:19:56

The default_invoice_term must return an id instead of an instance.

Author: [hidden] (david_auto)
Date: 2022-08-04.16:09:03

this error occurs when creating a sale:

Traceback (most recent call last):
File "/trytond/", line 119, in dispatch_request
return endpoint(request, request.view_args)
File "/trytond/protocols/", line 46, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/", line 86, in auth_required
return wrapped(*args,
File "/trytond/protocols/", line 161, in wrapper
return func(request, pool, args, kwargs)
File "/trytond/protocols/", line 212, in _dispatch
response = app.make_response(request, result)
File "/trytond/", line 142, in make_response
response = cls.response(data, request)
File "/trytond/protocols/", line 190, in response
return Response(json.dumps(
File "/json/", line 238, in dumps
File "/json/", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/json/", line 257, in iterencode
return _iterencode(o, 0)
File "/trytond/protocols/", line 68, in default
return marshaller(obj)
File "/json/", line 179, in default
raise TypeError(f'Object of type {} '
TypeError: Object of type sale.invoice.term is not JSON serializable

Date User Action Args
2022-08-13 19:16:35roundup-botsetkeyword: - backport
messages: + msg77705
2022-08-08 22:18:32roundup-botsetmessages: + msg77636
2022-08-08 22:18:28roundup-botsetmessages: + msg77635
nosy: + roundup-bot
status: testing -> resolved
2022-08-04 19:05:48reviewbotsetmessages: + msg77571
nosy: + reviewbot
2022-08-04 18:40:41cedsetkeyword: + backport, review
reviews: 417661003
status: in-progress -> testing
2022-08-04 18:25:13cedsetassignedto: ced
status: chatting -> in-progress
type: crash
2022-08-04 16:19:56cedsetmessages: + msg77567
nosy: + ced
status: unread -> chatting
2022-08-04 16:18:59cedsetcomponent: + sale_invoice_date, - sale
2022-08-04 16:09:03david_autocreate

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