I want to implement workflow to process project issues. Some of actions will be available for customers via portal and statusbar widget will be read only. The action will be perform by buttons deppends the issue state and logged user.
How to perform by buttons the same action like statusbar? I add on_click to statusbar, but it doesn't perform the function. How to override on_click statusbar function?
<field name="stage_id" widget="statusbar" clickable="True" on_change="onchange_stage_id(stage_id)"/>
class my_issue(osv.osv): _inherit = 'project.issue' def onchange_stage_id(self, cr, uid, ids, stage_id, context=None): _logger.warning("\n onchange_stage_id") return True
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: 10/23/13, 1:11 PM|
|Seen: 1344 times|
|Last updated: 3/16/15, 8:10 AM|