[Top][All Lists]

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

[Health] A strange error

From: Khurram Shahzad
Subject: [Health] A strange error
Date: Mon, 14 Nov 2016 09:54:43 +0500

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 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"/>

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.

Please help as I have spent many hours on it but all in vain.


reply via email to

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