4

Is it possible to inherit from one xml and to change its updatable. I tried to inherit "Check Action Rules" to change the "interval_number" from 4 to 1 hours. To make it run every single hour. I don't think it may work because of noupdate="1". Anyone have any idea about this?

Janarthanan Ramu
  • 1,331
  • 16
  • 17
Tintumon M
  • 1,156
  • 2
  • 14
  • 36

1 Answers1

3

Yes you can change the noupdate file by the help of hook. In the manifest file next to data add 'post_init_hook': 'post_init_hook',

create hooks.py file

def post_init_hook(cr, registry):
    env = api.Environment(cr, SUPERUSER_ID, {})
    orginalxml=env.ref('module.external id')
    orginalxml.write({'field_name_to_inherit':value,
    })
Janarthanan Ramu
  • 1,331
  • 16
  • 17