[REM] Duplicate menu in kanban view

bzr revid: rim@openerp.com-20140325154526-n2x67rlnsktm0993
This commit is contained in:
Richard Mathot (OpenERP) 2014-03-25 16:45:26 +01:00
parent 6e25b1fc3f
commit dafe2e2328
2 changed files with 4 additions and 4 deletions

View File

@ -298,9 +298,9 @@ class survey_survey(osv.Model):
# self.write(cr, uid, [survey['id']], {'state': 'draft'}, context=context)
# return {}
def action_kanban_duplicate(self, cr, uid, ids, context=None):
''' Hack in order to provide "duplicate" action to kanban view '''
return self.copy(cr, uid, ids[0], context=None)
# def action_kanban_duplicate(self, cr, uid, ids, context=None):
# ''' Hack in order to provide "duplicate" action to kanban view '''
# return self.copy(cr, uid, ids[0], context=None)
def action_start_survey(self, cr, uid, ids, context=None):
''' Open the website page with the survey form '''

View File

@ -237,7 +237,7 @@
<!-- <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 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><ul class="oe_kanban_colorpicker" data-field="color"/></li>
</ul>