[MERGE] reports: make it possible to use only XML declaration, even with custom parsers.
authorVo Minh Thu <vmt@openerp.com>
Wed, 27 Mar 2013 16:11:29 +0000 (17:11 +0100)
committerVo Minh Thu <vmt@openerp.com>
Wed, 27 Mar 2013 16:11:29 +0000 (17:11 +0100)
commit23d672dfc347c1ae0755a580f545ee45cb7b3fd5
tree977e7e1473b5ba221f6946ac0b4d0b4e974151ea
parent255cec154a8e65c1005bce7d113398d009d1d6f7
parent4613a97c0101cc906b4c75d10015d88bac7c72c5
[MERGE] reports: make it possible to use only XML declaration, even with custom parsers.

This makes report registration more uniform, and report rendering be possible
through the ORM (and thus the model service, instead of the report service).

To register a report, always use the database, i.e. a <report> tag within an
XML file. The custom parser, if any, will be specified in the database.
Previously specify a custom parser, the report was declared in Python.

Each model exposes a print_report() method, which will take the report name (as
many report can be defined on a single model) in argument.

bzr revid: vmt@openerp.com-20130327161129-6e7jz7l3lx7z1t18
openerp/netsvc.py
openerp/tools/convert.py