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

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

Fri 10 Apr 2020 03:01:33 PM UTC, comment #1: 
Mario Puntin <mariomop>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.5