~vauxoo/addons-vauxoo/8.0-import_tax_tariff-dev-yani-rev-2

« back to all changes in this revision

Viewing changes to mrp_webkit_report_wizard/report/report_webkit_variation_group.py

  • Committer: Nhomar Hernandez
  • Date: 2013-04-19 20:33:12 UTC
  • mfrom: (542.1.314 addons-vauxoo)
  • Revision ID: nhomar@gmail.com-20130419203312-o35v7dn79l6vur0t
[MERGE - PEP8 AND V7-MIG] All migrated to V7 Just
improved osv.osv => osv.Model, osv.osv_memory => osv.TransientModel
import inside openerp.* enviroment
Erased class instansiation no necesarry anymore in V7
AUTOPEP8 run, Left PEP8 long lines manually.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
import os
3
3
import platform
4
4
from report import report_sxw
5
 
from osv import osv
 
5
 
6
6
 
7
7
class report_webkit_variation_group(report_sxw.rml_parse):
8
8
    def __init__(self, cr, uid, name, context):
9
 
        super(report_webkit_variation_group, self).__init__(cr, uid, name, context=context)
 
9
        super(report_webkit_variation_group, self).__init__(
 
10
            cr, uid, name, context=context)
10
11
        self.localcontext.update({
11
12
            'time': time,
12
 
            'cr':cr,
 
13
            'cr': cr,
13
14
            'uid': uid,
14
 
            'os':os,
15
 
            'platform':platform,
16
 
            'this_self':self,
17
 
            'this_context':context
 
15
            'os': os,
 
16
            'platform': platform,
 
17
            'this_self': self,
 
18
            'this_context': context
18
19
        })
19
20
 
20
21
report_sxw.report_sxw('report.webkitmrp.production_variation_group',
21
 
                       'mrp.production', 
22
 
                       'addons/mrp_report_webkit_wizard/report/report_webkit_variation_group.mako',
23
 
                       parser=report_webkit_variation_group)
 
22
                      'mrp.production',
 
23
                      'addons/mrp_report_webkit_wizard/report/report_webkit_variation_group.mako',
 
24
                      parser=report_webkit_variation_group)
24
25
 
25
 
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
 
b'\\ No newline at end of file'
 
26
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: