How to use noupdate 0 or 1 in Odoo - Odoo 17 Slides
CelineGeorge1
524 views
9 slides
Jul 29, 2024
Slide 1 of 9
1
2
3
4
5
6
7
8
9
About This Presentation
In this slide we’ll discuss the noupdate attribute in odoo. Using this attribute we can restrict or allow change when updating a record.
Size: 552.4 KB
Language: en
Added: Jul 29, 2024
Slides: 9 pages
Slide Content
How to use noupdate 0 or 1 in Odoo Enterprise
Introduction Enterpr ise In this slide we’ll discuss the noupdate attribute in odoo. Using this attribute we can restrict or allow change when updating a record.
Enterprise Using data file, we are adding a demo data to the model ‘ student.detail ’ and we have given noupdate= ” ”. Giving noupdate= ” ” or not using this attribute has the same meaning.
Enterprise If we check the metadata of the record, we can see that the No update has false value, we can make any change in this record by updating the module.
Enterprise This is the form view of the demo data we added.
Enterprise We can change the value of the standard from class 1 to class 2 by changing the value in the standard field in the code and then by updating the module.
Enterprise We can restrict this by giving noupdate="1" in the xml data file, then the external identifier created has a field called noupdate set to True. Once this happens, it is impossible to update a record using xml.
Enterprise So modifying the record by code and then updating the module won’t make any change to this record.
For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com