Failed to install demo data for some modules, demo disabled
code
failures = env['ir.demo_failure'].search([
('wizard_id', '=', False),
])
record = model.create({
'failure_ids': [Command.set(failures.ids)],
})
action = {
'type': 'ir.actions.act_window',
'res_id': record.id,
'res_model': 'ir.demo_failure.wizard',
'target': 'new',
'views': [(env.ref('base.demo_failures_dialog').id, 'form')],
}
Demo Failure Dialog
ir.demo_failure.wizard
Demo Failure Form
ir.demo_failure
Demo Failure Notification
1
done