bugGNU Health - Bugs: bug #58104, view_attributes() method should...

 
 

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

bug #58104: view_attributes() method should extend list of attributes

Submitter:  Mario Puntin <mariomop>
Submitted:  Thu 02 Apr 2020 11:41:24 PM UTC
 
Category:  Tryton Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  mariomop
Open/Closed:  Closed Release:  3.6.0
Module:  health_gyneco Component:  None

Fri 10 Apr 2020 03:01:33 PM UTC, comment #1: 
Mario Puntin <mariomop>
Thu 02 Apr 2020 11:41:24 PM UTC, original submission:  

Hi!
I think the view_attributes() method used in health_gyneco to show/hide Gyneco page on patient (depending on biological sex) should extend the list of attributes, not just set it.
This way, other GNUHealth modules will be able to set view attributes in Patient too.
I mean:
  return super(GnuHealthPatient, cls).view_attributes() + [(...)]
instead of just
  return [(...)]

I attached a patch file.
Regards,
Mario

Mario Puntin <mariomop>

 

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

Attached Files
file #48745:  health_gyneco.py.patch added by mariomop (234B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mariomop (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-10 mariomop StatusNone Fixed
        Assigned toNone mariomop
        Open/ClosedOpen Closed
        ReleaseNone 3.6.0
    2020-04-02 mariomop Attached File- Added health_gyneco.py.patch, #48745

    Back to the top

    Powered by Savane 3.10