Crash when creating stock move without product or unit
Here is the traceback: ``` Traceback (most recent call last): File "/tryton/tryton/trytond/trytond/protocols/dispatcher.py", line 195, in _dispatch result = rpc.result(meth(*c_args, **c_kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tryton/tryton/trytond/trytond/modules/production/production.py", line 635, in write super(Production, cls).write(*args) File "/tryton/tryton/trytond/trytond/model/modelsql.py", line 161, in wrapper return func(cls, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tryton/tryton/trytond/trytond/model/modelsql.py", line 1141, in write field.set(cls, fname, *fargs) File "/tryton/tryton/trytond/trytond/model/fields/one2many.py", line 287, in set Target.create(to_create) File "/tryton/tryton/trytond/trytond/modules/stock/move.py", line 806, in create id2product = {p.id: p for p in Product.browse(products.keys())} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tryton/tryton/trytond/trytond/model/modelstorage.py", line 672, in browse ids = list(map(int, ids)) ^^^^^^^^^^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' ```
issue