health-dev
[Top][All Lists]
Advanced

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

Re: [Health-dev] Inheriting inherited views?


From: Sebastián Marró
Subject: Re: [Health-dev] Inheriting inherited views?
Date: Fri, 15 Feb 2013 16:11:04 -0300

Hi Chrislene

2013/2/15 Chrislene Legaspina <address@hidden>
Hi

I 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>
                        <xpath
                            expr="/form/notebook/address@hidden&quot;page_socioeconomics&quot;]"
                            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

reply via email to

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