[REM] Duplicate menu in kanban view
bzr revid: rim@openerp.com-20140325154526-n2x67rlnsktm0993
This commit is contained in:
parent
6e25b1fc3f
commit
dafe2e2328
|
@ -298,9 +298,9 @@ class survey_survey(osv.Model):
|
||||||
# self.write(cr, uid, [survey['id']], {'state': 'draft'}, context=context)
|
# self.write(cr, uid, [survey['id']], {'state': 'draft'}, context=context)
|
||||||
# return {}
|
# return {}
|
||||||
|
|
||||||
def action_kanban_duplicate(self, cr, uid, ids, context=None):
|
# def action_kanban_duplicate(self, cr, uid, ids, context=None):
|
||||||
''' Hack in order to provide "duplicate" action to kanban view '''
|
# ''' Hack in order to provide "duplicate" action to kanban view '''
|
||||||
return self.copy(cr, uid, ids[0], context=None)
|
# return self.copy(cr, uid, ids[0], context=None)
|
||||||
|
|
||||||
def action_start_survey(self, cr, uid, ids, context=None):
|
def action_start_survey(self, cr, uid, ids, context=None):
|
||||||
''' Open the website page with the survey form '''
|
''' Open the website page with the survey form '''
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
<!-- <li><a name="action_print_survey" type="object">Print Survey...</a></li> -->
|
<!-- <li><a name="action_print_survey" type="object">Print Survey...</a></li> -->
|
||||||
<!-- <li><a name="%(action_selected_survey_user_input)d" type="action">View Answers...</a></li> -->
|
<!-- <li><a name="%(action_selected_survey_user_input)d" type="action">View Answers...</a></li> -->
|
||||||
<li><a type="edit">Survey Options</a></li>
|
<li><a type="edit">Survey Options</a></li>
|
||||||
<li><a type="object" name="action_kanban_duplicate">Duplicate</a></li>
|
<!-- <li><a type="object" name="action_kanban_duplicate">Duplicate</a></li> -->
|
||||||
<li t-if="widget.view.is_action_enabled('delete')"><a type="delete">Delete!</a></li>
|
<li t-if="widget.view.is_action_enabled('delete')"><a type="delete">Delete!</a></li>
|
||||||
<li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
|
<li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue