summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorNicolas Bustillos <nicobustillos@users.noreply.github.com>2014-10-30 18:34:48 -0400
committerXavier Morel <xmo@openerp.com>2014-11-03 10:19:30 +0100
commitd0ff6df2f43bb51ad62d145046bf73949d1dc17e (patch)
tree20abf98facf9d62452c42eafce3d656491dc7aba /doc/reference
parentfcf0b278a932c6b9909202640936e470c6f40a53 (diff)
[FIX] doc: fit code example to new API
When using this code as is, the 'ids' variable throws an exception for not being defined. In the new API, 'ids' is no longer given as a function variable but as a variable within 'self'. close #3406
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/reports.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/reference/reports.rst b/doc/reference/reports.rst
index 78211ff4e49..7dfbfb1c8c7 100644
--- a/doc/reference/reports.rst
+++ b/doc/reference/reports.rst
@@ -65,9 +65,9 @@ render_html method. Classically, this method returns a call to the original
report_obj = self.env['report']
report = report_obj._get_report_from_name('<<module.reportname>>')
docargs = {
- 'doc_ids': ids,
+ 'doc_ids': self._ids,
'doc_model': report.model,
- 'docs': self.env[report.model].browse(ids),
+ 'docs': self,
}
return report_obj.render('<<module.reportname>>', docargs)