Tryton - Issues



Title Enregistrement filtre
Priority bug Status resolved
Superseder Nosy List camille, ced, nicoe, pokoli, reviewbot, roundup-bot
Type crash Components proteus, tryton, trytond
Assigned To ced Keywords review
Reviews 46341002, 41241002, 44971002
View: 46341002, 41241002, 44971002

Created on 2018-03-29.14:20:36 by camille, last changed by roundup-bot.

New changeset 287b9db41fba by Cédric Krier in branch 'default':
Support Decimal in PYSONEncoder
New changeset b02c5f05e548 by Cédric Krier in branch 'default':
Support Decimal in PYSONEncoder
New changeset 75ca6f7b8cf1 by Cédric Krier in branch 'default':
Support Decimal in PYSONEncoder

New changeset aa4bcaba7e01 by Cédric Krier in branch 'default':
Test Decimal in PYSONEncoder
New review44971002 at
New review41241002 at
New review46341002 at
msg40136 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-04-15.00:04:11
Here are review46341002, review41241002 and review44971002
msg40135 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-04-14.23:59:11
Indeed it is the pyson Encoder that can not encode Decimal.
I think it should dumps them as float like sao (Javascript) does.
msg39537 (view) Author: [hidden] (nicoe) (Tryton committer) (Tryton translator) Date: 2018-03-29.14:46:06
Camille is having an issue when trying to save a domain such as:

  "Customers": !0 or "Suppliers": !0

I don't know it's tryton version though.
msg39536 (view) Author: [hidden] (pokoli) (Tryton committer) (Tryton translator) Date: 2018-03-29.14:31:48
Could you please report it in english? 

IIUC you have an error when saving a filter. Could you explain which filter are you tring to save (and the type of fields of each field).

Could you please also indicate which tryton version are you using?
msg39535 (view) Author: [hidden] (camille) Date: 2018-03-29.14:20:36
Lorsque je clique sur l'étoile dans la barre de filtre et que j'enregistre un nom (simple en minuscules)
je reçois le message d'erreur :

Traceback (most recent call last):
  File "/home/cam/Tryton/tryton_Cam/local/lib/python2.7/site-packages/tryton/gui/window/view_form/view/", line 467, in icon_press
    common.VIEW_SEARCH.add(model_name, name, domain)
  File "/home/cam/Tryton/tryton_Cam/local/lib/python2.7/site-packages/tryton/common/", line 194, in add
    'domain': PYSONEncoder().encode(domain),
  File "/usr/lib/python2.7/json/", line 207, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python2.7/json/", line 270, in iterencode
    return _iterencode(o, 0)
  File "/home/cam/Tryton/tryton_Cam/local/lib/python2.7/site-packages/tryton/", line 120, in default
    return super(PYSONEncoder, self).default(obj)
  File "/usr/lib/python2.7/json/", line 184, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: Decimal('0') is not JSON serializable
Date User Action Args
2018-04-17 17:59:55roundup-botsetmessages: + msg40199
2018-04-17 17:59:24roundup-botsetmessages: + msg40198
2018-04-17 17:58:44roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg40197
2018-04-15 00:25:34reviewbotsetmessages: + msg40141
2018-04-15 00:25:32reviewbotsetreviews: 46341002, 41241002 -> 46341002, 41241002, 44971002
2018-04-15 00:25:16reviewbotsetmessages: + msg40140
2018-04-15 00:25:14reviewbotsetreviews: 46341002 -> 46341002, 41241002
2018-04-15 00:24:54reviewbotsetnosy: + reviewbot
messages: + msg40139
2018-04-15 00:24:52reviewbotsetreviews: 46341002
keyword: + review
2018-04-15 00:04:11cedsetstatus: in-progress -> testing
messages: + msg40136

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