Skip to content

Commit

Permalink
fix serialized jsonb psycopg set error
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverstore-si committed Jan 6, 2020
1 parent 55ceb30 commit 458d742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/osv/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ class serialized(_column):
# We use postgresql jsonb field and recent version of psycopg already
# manage it.
def _symbol_set_struct(val):
return val
return json.dumps(val)

def _symbol_get_struct(self, val):
return val or {}
Expand Down

0 comments on commit 458d742

Please sign in to comment.