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.