diff options
| author | Laurent Smet <las@openerp.com> | 2017-04-07 09:56:03 +0200 |
|---|---|---|
| committer | Laurent Smet <las@openerp.com> | 2017-05-08 09:22:56 +0200 |
| commit | 3425752eaca236c1e4b4d616aa49b3faa6cfd957 (patch) | |
| tree | 5ad5c08176129dff99f072c71fc8211f8b56183f /odoo/netsvc.py | |
| parent | 9898b125ad00aa2288017761297003a3a4e1ddb0 (diff) | |
[REM] odoo/report: remove deprecated stuff
- RML Reports
- Webkit Reports (most part already removed by 13b9982c6298021289707ed364e3c1d622a09f13)
- LocalService in netsvc.py
- rename attributes like rml_% to report_%
- rename ir.actions.report.xml to ir.actions.report
- allow rendering directly on an ir.actions.report by calling render method
- remove 'controller' report_type
- remove unused res.font stuff
- remove print_report method in models.py (not used)
- restore removed call to pdftotext process in test_reports
Diffstat (limited to 'odoo/netsvc.py')
| -rw-r--r-- | odoo/netsvc.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/odoo/netsvc.py b/odoo/netsvc.py index 3832ae10cd6..a44984f391c 100644 --- a/odoo/netsvc.py +++ b/odoo/netsvc.py @@ -25,26 +25,6 @@ def log(logger, level, prefix, msg, depth=None): logger.log(level, indent+line) indent=indent_after -def LocalService(name): - """ - The odoo.netsvc.LocalService() function is deprecated. It still works - in one case: reports. For reports, odoo.report.render_report() should - be used (methods on the Model should be provided too in the future). - """ - assert odoo.conf.deprecation.allow_local_service - _logger.warning("LocalService() is deprecated since march 2013 (it was called with '%s')." % name) - - if name.startswith('report.'): - report = odoo.report.interface.report_int._reports.get(name) - if report: - return report - else: - dbname = getattr(threading.currentThread(), 'dbname', None) - if dbname: - registry = odoo.registry(dbname) - with registry.cursor() as cr: - return registry['ir.actions.report.xml']._lookup_report(cr, name[len('report.'):]) - path_prefix = os.path.realpath(os.path.dirname(os.path.dirname(__file__))) class PostgreSQLHandler(logging.Handler): |
