Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import time
from report import report_sxw

class account_invoice(report_sxw.rml_parse):
    def __init__(self, cr, uid, name, context):
        super(account_invoice, self).__init__(cr, uid, name, context)
        self.localcontext.update({
            'time': time,
        })

report_sxw.report_sxw(
    'report.account.invoice2',
    'account.invoice',
    'addons/profile_hsd/report/invoice.rml',
    parser=account_invoice
)