~openerp-dev/openobject-server/trunk-bug-1162681-sejal

Viewing all changes in revision 4839.

  • Committer: Vo Minh Thu
  • Date: 2013-03-27 16:11:29 UTC
  • mfrom: (4802.3.25 trunk-methport-thu)
  • Revision ID: vmt@openerp.com-20130327161129-6e7jz7l3lx7z1t18
[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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: