Odoo Help

2 Answers

Francesco OpenCode

--Francesco OpenCode--

| 6 8 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
4/26/13, 8:13 AM

The noupdate parameter is used to indicate if the values in the xml file must be re-imported when a module in updated.

For example, if we have a file with demo datas and we use noupdate="1", if we delete a demo record and update the module, the deleted data not will be imported again. With noupdate="0", instead, the record will be reimported again if it doesn't exist in the db.

4/26/13, 8:16 AM

thanks Francesco very helpful explanation.can u please tell me wat abt 'ir.rule' records in ...security.xml files & those have which relation with 'res.groups' records

Francesco OpenCode
4/26/13, 8:24 AM

Yeah, thanks for the precision. ;)

4/26/13, 8:25 AM

thanks so much Dear Olivier

Nathan Beck
7/29/14, 6:17 PM

Francesco, the example you gave is not 100% correct. This behavior is actually driven by 2 things: the noupdate flag on the data element, and the forcecreate attribute of each record. The latter defaults to "True" and determines whether a record that has been deleted will be re-created during an update, even if it is in a noupdate section. So by default noupdate will prevent synchronizing module data at each update (so you can customize it), but will not prevent the re-creation of deleted data. Set forcecreate="0" on individual records if you want that behavior as well.

1 Comment
3/3/16, 10:31 AM

Thanks ! +1

Ask a Question
Keep Informed
2 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now