I have module with many standards 1, 2 and 3 every standard have some students and i want to create attendance sheets for every standard
i want that when i choose standard 1 ,2 or 3 in form view the students in this standard loaded automatically n the form.
Can odoo do that or i should add students to the form view every time ?
If it is possible you use onchange and RedirectWarning
if self.my_field == "FOO":
model, action_id = self.pool['ir.model.data'].get_object_reference(cr, uid, 'my_module', 'my_action')
msg = _("FOO FOO FOO.")
raise openerp.exceptions.RedirectWarning(msg, action_id, _('Go to MY ACTION'))
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/18/15, 5:31 AM|
|Seen: 1088 times|
|Last updated: 4/4/15, 7:06 PM|