Wrong usage of False instead of None
Trying to duplicate a sale will result in the crash below. I guess this is due
to latest changes and None should be used instead of False for setting values to
null.
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 122, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 155, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 155, in dispatch
res = getattr(obj, method)(*args_without_context, **kargs)
File "/trytond/modules/sale/sale.py", line 645, in copy
return super(Sale, self).copy(ids, default=default)
File "/trytond/model/modelstorage.py", line 316, in copy
new_ids[data_id] = self.create(data)
File "/trytond/model/modelsql.py", line 311, in create
values[field]))
File "/trytond/backend/fields.py", line 48, in sql_format
assert isinstance(value, unicode)
AssertionError