[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health] A strange error
From: |
Luis Falcon |
Subject: |
Re: [Health] A strange error |
Date: |
Mon, 14 Nov 2016 08:42:12 +0000 |
Dear Khurram
On Mon, 14 Nov 2016 09:54:43 +0500
Khurram Shahzad <address@hidden> wrote:
> Dear All,
>
> I have copied Health Imaging module of GNU Health and made some
> changes in it to design a new module for request surgical procedures.
>
> Everything works fine except I am unable to place "Procedure Results"
> in relate button. The records for this in view.xml are:
>
> <!-- Procedure Results link in Relate of patients -->
> <record model="ir.action.act_window"
> id="act_proc_test_result_view2">
> <field name="name">Procedure Results</field>
> <field name="res_model">anth.proc.test.result</field>
> <field name="domain" eval="[('patient', '=',
> Eval('active_id'))]" pyson="1"/>
> </record>
>
> <record model="ir.action.keyword"
> id="act_open_patient_proc_result_keyword2">
> <field name="keyword">form_relate</field>
> <field name="model">gnuheatlh.patient,-1</field>
> <field name="action" ref="act_proc_test_result_view2"/>
> </record>
>
>
> When I add the first of above records, there is no error on updating
> module and I don't see "Procedure Results" in Relate button too.
>
> But when I add the second of above records, I am unable to update the
> module and following error is displayed in a dialogue box:
>
> The value "gnuhealth.patient" of field "Model" on "Action keyword" is
> not in the selection.
Check the spelling : It should be gnuhealth.patient, instead of
"gnuheatlh.patient"
Have a great day !
Bests,
Luis
--
Dr. Luis Falcon, M.D., BSc
President, GNU Solidario
GNU Health: Freedom and Equity in Healthcare
http://health.gnu.org