health
[Top][All Lists]
Advanced

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

Re: [Health] Report Change Error


From: Luis Falcon
Subject: Re: [Health] Report Change Error
Date: Fri, 16 Dec 2011 15:05:57 -0300

Hi Paras

On Fri, Dec 16, 2011 at 5:56 AM, Paras Jasani <address@hidden> wrote:


On Tue, Dec 13, 2011 at 9:02 AM, Luis Falcon <address@hidden> wrote:
Dear Paras

Thanks for the feedback. Check my comments below.

On Tue, Dec 13, 2011 at 5:01 AM, Paras Jasani <address@hidden> wrote:
I was trying to see if i can customize the reports. When an email address@hidden was entered in the Reports - Diseases - Email field. The Patients scripts failed to run giving the following error. Is there a different way to customize reports - like giving logo and address in the header ?

We will use the contact method on the Party form. On Tryton, there is no a "email" field per se. What we will do is to use in the reports all the lines that are filled in the contact method of the patient. We can use this header for most of the reports, including lab, prescriptions, clinical history...

What do you think ?

    I agree to what you have mentioned that the email field should come from Party form so as to keep contact info of patient in the report in synch with the form data.

Yes. We'll include the contact info in the patient information.
 
  Is there a way to include the hospital logo, name and address in the reports ? 
Yes. It's a 2-step procedure
1) In the Company information, there is a tab called "Report". There you have the Header and Footer information.

2) For the logo, you can create your own header template, or use the current "company/letter.odt" . I reccomend using your own one, so it won't be overwritten.

After you have your header report, include it in the information (Administration -> User Interface -> Actions -> Reports ) of the report you want. Place the header report in the field called "Style".

Best

The current email field is obsolete. It has been changed in the trunk a couple of weeks ago, so it will be ready for 1.4.3

Best

 
ERROR:common.message:Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 108, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 147, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 155, in dispatch
    res = getattr(obj, method)(*args_without_context, **kargs)
  File "/trytond/model/modelview.py", line 244, in view_toolbar_get
    prints = action_obj.get_keyword('form_print', (self._name, -1))
  File "/trytond/ir/action.py", line 207, in get_keyword
    res.append(action_obj.read(action_id[0], list(columns)))
  File "/trytond/model/modelsql.py", line 638, in read
    res2 = self._columns[field].get(ids, self, field_list, values=res)
  File "/trytond/model/fields/function.py", line 89, in get
    res[name] = getattr(model, self.getter)(ids, name)
  File "/trytond/ir/action.py", line 423, in get_pyson
    defaults.get(field, 'False'), CONTEXT))
  File "/trytond/tools/misc.py", line 410, in safe_eval
    comp = _compile_source(source)
  File "/trytond/tools/misc.py", line 188, in wrapper
    res = fct(*args)
  File "/trytond/tools/misc.py", line 390, in _compile_source
    comp = compile(source, '', 'eval')
  File "<string>", line 1


Thanks
Paras 



--
Luis Falcon
GNU Health
http://health.gnu.org




--
Luis Falcon
GNU Health
http://health.gnu.org

reply via email to

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