I want to put <field name="perm_create" eval="False" />
to existing record rule .
so i added inherited it and added my addition .. but no effect:
<record id="hr_attendance.hr_attendance_rule_attendance_manager" model="ir.rule">
<field name="perm_create" eval="False"/>
</record>
It is because of
<data noupdate="1">
.hr_attendance_rule_attendance_manager
is defined inhr_attendance
withnoupdate=1
. So, you cannot change it normally.As far as I know, there are 2 ways to solve this.
Remove
noupdate
via UI. Settings > Technical > External Identifiers > find your record (hr_attendance.hr_attendance_rule_attendance_manager
). Then, uncheck "Non Updatable" field.Remove
noupdate
with xml. I am referring to this question/answer. https://www.odoo.com/forum/help-1/question/how-can-i-update-a-record-stored-with-the-attribute-noupdate-1-78133noupdate
.noupdate
True.