~digi-solution/openerp-digisolution/6.1

« back to all changes in this revision

Viewing changes to veneservi_request/report/veneservi_request.py

  • Committer: raima-mendoza
  • Date: 2013-03-26 16:03:58 UTC
  • Revision ID: raima.mendoza@digi-solution.com-20130326160358-tatrmr8nmomqaydl
[ADD] formatos veneservi 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
# -*- encoding: utf-8 -*-
 
3
###########################################################################
 
4
#    Module Writen to OpenERP, Open Source Management Solution
 
5
#    Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
 
6
#    All Rights Reserved
 
7
###############Credits######################################################
 
8
#    Coded by: Humberto Arocha           <humberto@openerp.com.ve>
 
9
#              María Gabriela Quilarque  <gabrielaquilarque97@gmail.com>
 
10
#              Nhomar Hernandez          <nhomar@openerp.com.ve>
 
11
#    Planified by: Humberto Arocha
 
12
#    Finance by: Helados Gilda, C.A. http://heladosgilda.com.ve
 
13
#    Audited by: Humberto Arocha humberto@openerp.com.ve
 
14
#############################################################################
 
15
#    This program is free software: you can redistribute it and/or modify
 
16
#    it under the terms of the GNU General Public License as published by
 
17
#    the Free Software Foundation, either version 3 of the License, or
 
18
#    (at your option) any later version.
 
19
#
 
20
#    This program is distributed in the hope that it will be useful,
 
21
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
22
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
23
#    GNU General Public License for more details.
 
24
#
 
25
#    You should have received a copy of the GNU General Public License
 
26
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
27
##############################################################################
 
28
 
 
29
import time
 
30
from report import report_sxw
 
31
 
 
32
class veneservi_request(report_sxw.rml_parse):
 
33
    def __init__(self, cr, uid, name, context):
 
34
        super(veneservi_request, self).__init__(cr, uid, name, context=context)
 
35
        self.localcontext.update({
 
36
            'time': time,
 
37
            'get_company_addr': self._get_company_addr,
 
38
            'get_partner_addr': self._get_partner_addr,
 
39
            'get_alicuota': self._get_alicuota,
 
40
            'get_footer_addr': self._get_footer_addr
 
41
                    })
 
42
 
 
43
report_sxw.report_sxw(
 
44
    'report.request.rml',
 
45
    'purchase.order',
 
46
    'addons/veneservi_request/report/veneservi_request.rml',
 
47
    parser=veneservi_request,
 
48
    header = False 
 
49
)
 
50
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: