Skip to content
Snippets Groups Projects
actions.py 526 B
Newer Older
Sylvain's avatar
Sylvain committed
"""specific actions for fresh template

:organization: Logilab
:copyright: 2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"

from cubicweb.web.action import EntityAction

class AccountingAction(EntityAction):
    accepts = ('Expense',)
    id = 'accaction'
    title = _('generate accounting entries')
    
    def url(self):
        entity = self.entity(0, 0)
        return entity.absolute_url(vid='accexpense')
Sylvain's avatar
Sylvain committed