Help

How to remove or disable default data from the parent module

Closed
Avatar
Obay Albadri

The question has been closed

by
Obay Albadri
on 06/24/2013 06:49:55

If i created new module depends on another one, Is there is any way to remove/disable/override default data (Users/Groups/ACL/...) set by parent module.

For example, i created a module depends on the project management module, and i want to use my own data and disable, remove or override: 1. Users and groups.(project_security.xml) 2. Rules and Access Control.(project_security.xml) 2. Task Stages.(project_data.xml)

And what the impact of <data noupdate="0/1">?

Avatar
Discard
1 Answer
1
Avatar
Omal Bastin
Best Answer

you can use <delete> tag to delete already created record in xml.

<delete model='model.name' search="your search domain in list of tuples"/>
3 Comments
Avatar
Discard
Avatar
Obay Albadri
-

Thanks Omal, after more googling I found another way to delete/replace data: <record model="res.user" id="user_id"> <field name="groups_id" eval="[(6, 0, [])]" /> </record>

Avatar
Obay Albadri
-

another Question what about: <data noupdate="0/1">?

Avatar
Omal Bastin
-

if noupdate="1" is provided then the xml part comes under <data noupdate="1"><!--xml code --></data>will be loaded only the first time when loading the file. what ever change in the xml code will not be loaded after that. by default, noupdate='0'