generic_list.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # -*- encoding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # OpenERP, Open Source Management Solution
  5. # Copyright (c) 2013 Acysos S.L. (http://acysos.com) All Rights Reserved.
  6. # Ignacio Ibeas <ignacio@acysos.com>
  7. # $Id$
  8. #
  9. # This program is free software: you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation, either version 3 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. #
  22. ##############################################################################
  23. import time
  24. from report import report_sxw
  25. class real_estate_generic_list(report_sxw.rml_parse):
  26. _name = 'report.real_estate_top_list'
  27. def __init__(self, cr, uid, name, context):
  28. super(real_estate_generic_list, self).__init__(cr, uid, name, context)
  29. self.localcontext.update({
  30. 'time': time,
  31. })
  32. report_sxw.report_sxw('report.real.estate.top.generic.list', 'real.estate.top',
  33. 'addons/acy_real_estate/report/generic_list.rml', parser=real_estate_generic_list, header='internal landscape')