[Top][All Lists]

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

Re: [Health-dev] Inheriting inherited views?

From: Chrislene Legaspina
Subject: Re: [Health-dev] Inheriting inherited views?
Date: Sat, 16 Feb 2013 10:28:34 +0800

Hi Sebastian

I've tried the code you provided but the following error shows up:
    AttributeError: Couldn't find tag (xpath: /form/notebook/address@hidden"page_socioeconomics"]) in parent view

This is exactly what confuses me. I've tried putting this kind of code in my custom module before, and I don't know why it could not find the tag in gnuhealth.patient view.

On Sat, Feb 16, 2013 at 3:11 AM, Sebastián Marró <address@hidden> wrote:
Hi Chrislene

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

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">
<page string="Socioeconomics" id="page_socioeconomics"
states="{'invisible': True}"/>


Sebastián Marró
Converging Ideas for Emerging Realities

reply via email to

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