Issue 11629

Title
error creating a sale ver 6.4
Priority
bug
Status
resolved
Nosy list
ced, david_auto, reviewbot, roundup-bot
Assigned to
ced
Keywords
backport, review

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

Messages

New changeset e3f5de689d64 by Cédric Krier in branch 'default':
Return invoice term id as default value
https://hg.tryton.org/tryton-env/rev/e3f5de689d64
New changeset a1d42034b3d1 by Cédric Krier in branch 'default':
Return invoice term id as default value
https://hg.tryton.org/modules/sale_invoice_date/rev/a1d42034b3d1
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/wsgi.py", line 119, in dispatch_request
return endpoint(request, request.view_args)
File "/trytond/protocols/dispatcher.py", line 46, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 86, in auth_required
return wrapped(*args,
kwargs)
File "/trytond/protocols/wrappers.py", line 161, in wrapper
return func(request, pool, args, kwargs)
File "/trytond/protocols/dispatcher.py", line 212, in _dispatch
response = app.make_response(request, result)
File "/trytond/wsgi.py", line 142, in make_response
response = cls.response(data, request)
File "/trytond/protocols/jsonrpc.py", line 190, in response
return Response(json.dumps(
File "/json/init.py", line 238, in dumps
*kw).encode(obj)
File "/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/trytond/protocols/jsonrpc.py", line 68, in default
return marshaller(obj)
File "/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type sale.invoice.term is not JSON serializable

History
Date User Action Args
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)