|
From: | Chrislene Legaspina |
Subject: | Re: [Health-dev] Inheriting inherited views? |
Date: | Sat, 16 Feb 2013 10:28:34 +0800 |
Hi Chrislene2013/2/15 Chrislene Legaspina <address@hidden>HiI can't uninstall the socioeconomics module. It says that it depends on a currently installed module which is health. Is there a way where I can hide the socioeconomics tab by not uninstalling it?
If you are not using the socioeconomics module, better to start a new database without that module. But if you can't, and you want to hide the socioeconomics tab, you can put something like this in a xml file of a custom module:<record model="ir.ui.view" id="gnuhealth_patient_form_mycustomview"><field name="model">gnuhealth.patient</field><field name="inherit" ref="health.gnuhealth_patient_view_form"/><field name="arch" type="xml"><![CDATA[<data><xpathexpr="/form/notebook/address@hidden"page_socioeconomics"]"position="replace_attributes"><page string="Socioeconomics" id="page_socioeconomics"states="{'invisible': True}"/></xpath></data>]]></field></record>Regards--Sebastián Marróthymbr@
Converging Ideas for Emerging Realities
www.thymbra.com
[Prev in Thread] | Current Thread | [Next in Thread] |