Userfeedback #1013

Anlegen einer location funktioniert nicht

Added by Nico H 28 days ago. Updated 15 days ago.

Status:In BearbeitungStart date:
Priority:NormalDue date:
Assignee:Nico H% Done:

90%

Category:-
Target version:-

Description

trytond.exceptions.UserError
UserError: ('UserError', ('required_validation_record', ''))
Traceback (most recent call last)
File "/opt/venv/lib/python2.7/site-packages/pyramid_debugtoolbar/panels/performance.py", line 58, in resource_timer_handler
Display the sourcecode for this frameOpen an interactive python shell in this frameresult = handler(request)
File "/opt/venv/lib/python2.7/site-packages/pyramid/tweens.py", line 41, in excview_tween
Display the sourcecode for this frameOpen an interactive python shell in this frameresponse = error_handler(request, exc)
File "/opt/venv/lib/python2.7/site-packages/pyramid/tweens.py", line 16, in error_handler
Display the sourcecode for this frameOpen an interactive python shell in this framereraise(*exc_info)
File "/opt/venv/lib/python2.7/site-packages/pyramid/tweens.py", line 39, in excview_tween
Display the sourcecode for this frameOpen an interactive python shell in this frameresponse = handler(request)
File "/opt/venv/lib/python2.7/site-packages/pyramid/router.py", line 156, in handle_request
Display the sourcecode for this frameOpen an interactive python shell in this frameview_name
File "/opt/venv/lib/python2.7/site-packages/pyramid/view.py", line 642, in call_view
Display the sourcecode for this frameOpen an interactive python shell in this frameresponse = view_callable(context, request)
File "/opt/venv/lib/python2.7/site-packages/pyramid/viewderivers.py", line 301, in secured_view
Display the sourcecode for this frameOpen an interactive python shell in this framereturn view(context, request)
File "/opt/venv/lib/python2.7/site-packages/pyramid/viewderivers.py", line 439, in rendered
view
Display the sourcecode for this frameOpen an interactive python shell in this frameresult = view(context, request)
File "/opt/venv/lib/python2.7/site-packages/pyramid/viewderivers.py", line 138, in _class
view
Display the sourcecode for this frameOpen an interactive python shell in this frameresponse = getattr(inst, attr)()
File "/shared/src/collecting_society_web/collecting_society_web/views/location.py", line 43, in add
Display the sourcecode for this frameOpen an interactive python shell in this framereturn self.process_forms()
File "/shared/src/portal_web/portal_web/views/base.py", line 39, in process_forms
Display the sourcecode for this frameOpen an interactive python shell in this frame_response = controller.process(self.context, self.request)
File "/shared/src/portal_web/portal_web/views/forms/base.py", line 98, in process
Display the sourcecode for this frameOpen an interactive python shell in this framereturn self.controller()
File "/shared/src/collecting_society_web/collecting_society_web/views/forms/add_location.py", line 28, in controller
Display the sourcecode for this frameOpen an interactive python shell in this frameself.create
location()
File "/shared/src/portal_web/portal_web/models/base.py", line 201, in wrapper
Display the sourcecode for this frameOpen an interactive python shell in this frameresult = func(*args, **kwargs)
File "/shared/src/collecting_society_web/collecting_society_web/views/forms/add_location.py", line 129, in create_location
Display the sourcecode for this frameOpen an interactive python shell in this frameparty_record = Party.create([party])
File "/shared/src/portal_web/portal_web/models/party.py", line 91, in create
Display the sourcecode for this frameOpen an interactive python shell in this frameresult = cls.get().create(vlist)
File "/shared/src/party/party.py", line 164, in create
Display the sourcecode for this frameOpen an interactive python shell in this framereturn super(Party, cls).create(vlist)
File "/shared/src/trytond/trytond/model/modelsql.py", line 486, in create
Display the sourcecode for this frameOpen an interactive python shell in this framefield.set(cls, fname, *fargs)
File "/shared/src/trytond/trytond/model/fields/one2many.py", line 201, in set
Display the sourcecode for this frameOpen an interactive python shell in this frameTarget.create(to_create)
File "/shared/src/trytond/trytond/model/modelsql.py", line 492, in create
Display the sourcecode for this frameOpen an interactive python shell in this framecls.validate(sub_records)
File "/shared/src/trytond/trytond/model/modelstorage.py", line 988, in validate
Display the sourcecode for this frameOpen an interactive python shell in this framefield_name)
File "/shared/src/trytond/trytond/model/modelstorage.py", line 972, in required
test
Display the sourcecode for this frameOpen an interactive python shell in this frameerror
args=cls.get_error_args(field_name))
File "/shared/src/trytond/trytond/error.py", line 74, in raise_user_error
Display the sourcecode for this frameOpen an interactive python shell in this frameraise UserError(error)
UserError: ('UserError', ('required
validation_record', ''))
Warning: this feature should not be enabled on production systems.

Hover over any gray area in the traceback and click on the icon on the right hand side of that gray area to show an interactive console for the associated frame. Type arbitrary Python into the console; it will be evaluated in the context of the associated frame. In the interactive console there are helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object
Hover over any gray area in the traceback and click on on the right hand side of that gray area to show the source of the file associated with the frame.

Click on the traceback header to switch back and forth between the rendered version of the traceback and a plaintext copy-paste-friendly version of the traceback.

URL to recover this traceback page: http://collecting_society.test/_debug_toolbar/313430353531323032353039323030/exception

Brought to you by DONT PANIC, your friendly Werkzeug powered traceback interpreter.
«

Associated revisions

Revision 41057bb6
Added by Thomas Mielke 15 days ago

empty values in email, website, or fax lead to rejection of record while saving the party; ref #1013

History

#1 Updated by Thomas Mielke 15 days ago

  • Status changed from Neu to In Bearbeitung
  • Assignee set to Thomas Mielke

Jap. Habe ich wohl auch verbrochen... :)

#2 Updated by Thomas Mielke 15 days ago

  • Assignee changed from Thomas Mielke to Nico H
  • % Done changed from 0 to 90

Hi Nico!

Habs gefixt. Mach mal scripts/update im basis-repo.

Es ist eine Datenbankänderung dazugekommen. Du musst die db neu bauen:

$ docker-compose run --rm erpserver execute db-rebuild

Setz das Ticket auf erledigt, wenn es bei Dir jetzt wieder geht.

Also available in: Atom PDF