-
Sylvain Thénault authoredSylvain Thénault authored
actions.py 618 B
"""specific actions for fresh template
:organization: Logilab
:copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
from cubicweb.selectors import implements
from cubicweb.web.action import Action
class AccountingAction(Action):
__regid__ = 'accaction'
__select__ = implements('Expense')
title = _('generate accounting entries')
def url(self):
entity = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
return entity.absolute_url(vid='accexpense')