Error when creating a production

I am doing a basic test for a small manufacturing business.

  1. I have created a few products for raw materials.
  2. I created a BOM for a produced good
  3. 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.

Yes it’s a bug, could you please create a issue on the bug tracker and post here the link after creating it?

But for your luck, it has easy solution as a user, you need to go to Inventory & Stock > Locations >Locations. Open your warehouse and select/create your Production location.

For some reason I am not getting confirmation emails when registering on heptapod.net, and so thus far have been unable to create an issue.