bugGNU Health - Bugs: bug #63557, Missing view architecture for...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #63557: Missing view architecture for ('calendar.category', None, 'tree')

Submitter:  Mathias Behrle <yangoon>
Submitted:  Wed 21 Dec 2022 09:59:37 PM UTC
 
Category:  Programming / Tracebacks Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  4.0.0
Module:  health_calendar Component:  Hospital Management

Thu 22 Dec 2022 11:55:20 AM UTC, comment #4: 

comment #3:

> Hi, Mathias
>
> I could not reproduce it.. it sounds like the issue is related to the empty views from older DBs .
>
> Here's the screenshot I just took
>
> https://imgur.com/y9ncL5z.png


Cannot reproduce now after the restart of the server, too.

Thanks!

Mathias Behrle <yangoon>
Thu 22 Dec 2022 11:34:43 AM UTC, comment #3: 

Hi, Mathias

I could not reproduce it.. it sounds like the issue is related to the empty views from older DBs .

Here's the screenshot I just took

https://imgur.com/y9ncL5z.png

Luis Falcon <meanmicio>
Project Administrator
Thu 22 Dec 2022 11:24:53 AM UTC, comment #2: 

Hi Luis,

I detected the issue on the demodb and couldn't now reproduce this one. Instead a next related issue appeared when trying to open a CalDAV Event from the Appointments Calendar:

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 117, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 46, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/wsgi.py", line 84, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 159, in wrapper
    return func(request, pool, args, *kwargs)
  File "/trytond/protocols/dispatcher.py", line 180, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/model/modelview.py", line 322, in fields_view_get
    raise ValueError("Missing view architecture for %s" % ((
ValueError: Missing view architecture for ('calendar.event', None, 'form')

Fault: Missing view architecture for ('calendar.event', None, 'form')

Let me know if you prefer to have that one in a separate issue.

Mathias Behrle <yangoon>
Thu 22 Dec 2022 10:47:31 AM UTC, comment #1: 

Hi, Mathias

Thanks for reporting! Indeed, the old "calendar" module name was still lingering in some ir.ui.view ...

Please run the following sql statement:

delete from ir_ui_view where module='calendar';

That will remove the obsolete entries and keep the good ones under health_caldav.

After that, please update the db

$cdexe

$./trytond-admin --all --database=your_db_name

and report :)

PS: I'll update the demodb also.

Luis Falcon <meanmicio>
Project Administrator
Wed 21 Dec 2022 09:59:37 PM UTC, original submission:  

Opening a calendar event:

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 117, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 46, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/wsgi.py", line 84, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 159, in wrapper
    return func(request, pool, args, *kwargs)
  File "/trytond/protocols/dispatcher.py", line 180, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/model/modelview.py", line 382, in fields_view_get
    result['arch'], result['fields'] = cls.parse_view(
  File "/trytond/model/modelview.py", line 521, in parse_view
    fields_def = cls.__parse_fields(
  File "/trytond/model/modelview.py", line 723, in __parse_fields
    fields_attrs = cls.__parse_fields(
  File "/trytond/model/modelview.py", line 723, in __parse_fields
    fields_attrs = cls.__parse_fields(
  File "/trytond/model/modelview.py", line 723, in __parse_fields
    fields_attrs = cls.__parse_fields(
  File "/trytond/model/modelview.py", line 634, in __parse_fields
    views = get_views(relation, widget, view_ids, mode)
  File "/trytond/model/modelview.py", line 610, in get_views
    Relation.fields_view_get(view_type=view_type))
  File "/trytond/model/modelview.py", line 322, in fields_view_get
    raise ValueError("Missing view architecture for %s" % ((
ValueError: Missing view architecture for ('calendar.category', None, 'tree')

Fault: Missing view architecture for ('calendar.category', None, 'tree')

Mathias Behrle <yangoon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by yangoon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-22 meanmicio StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-12-22 meanmicio CategoryNone Programming / Tracebacks
        StatusNone Ready For Test
        Assigned toNone meanmicio
        ReleaseNone 4.0.0
        ComponentNone Hospital Management

    Back to the top

    Powered by Savane 3.10