[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health] New Column Add

From: Sebastián Marró
Subject: Re: [Health] New Column Add
Date: Thu, 29 Nov 2012 12:24:24 -0300

Hi Paras

   When you develop on GNU Health/Tryton, you don't have to modify the database manually, you have to declare the new fields on the model (python file), and also on the views (xml file).

  Take a look at this example on how to create a new module [1]

   For more information on the Tryton API, go to [2]

   If you want to add fields on the patient it's better to create a new module and inherit the PatientData class instead of modifying the file on the health directory. In that way when you upgrade GNU Health to a new version, you don't lose your changes.



2012/11/29 Paras Jasani <address@hidden>

I would like to add a boolean column in gnu_patient. Which file do i need to modify so that column appears in Field section of GNU Health ? I have added the column in database but it doesn't show up when i see the model details of gnu_patient.


Sebastián Marró
Converging Ideas for Emerging Realities

reply via email to

[Prev in Thread] Current Thread [Next in Thread]