I am doing a basic test for a small manufacturing business.
- I have created a few products for raw materials.
- I created a BOM for a produced good
- I attempted to create a production in order to capture factory production, and to add to inventory.
When I attempt to Add a production, I get the following error:
'NoneType' object has no attribute 'id'
Traceback (most recent call last):
File "usrlocallibpython3.11dist-packagestrytondwsgi.py", line 96, in dispatch_request
return endpoint(request, **request.view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondprotocolsdispatcher.py", line 44, in rpc
return methods.get(request.rpc_method, _dispatch)(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondwsgi.py", line 76, in wrapper
return func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondprotocolswrappers.py", line 206, in wrapper
result = func(request, pool, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondprotocolsdispatcher.py", line 216, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondmodelmodel.py", line 155, in default_get
value[field_name] = cls._defaults[field_name]()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondmodulesproductionproduction.py", line 313, in default_location
return warehouse.production_location.id
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'id'
This is using the docker image for Tryton 7.4
I wanted to see if this might be a user issue before posting it as a bug.
Thank you.