<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/openerp/addons/base/module/report/ir_module_reference_print.py, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[REF] openerp: move `openerp` to `odoo`</title>
<updated>2016-09-02T15:28:12+00:00</updated>
<author>
<name>Raphael Collet</name>
<email>rco@openerp.com</email>
</author>
<published>2016-09-02T13:58:39+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=9e64f9f9514194d74e166b032add8511182f2677'/>
<id>9e64f9f9514194d74e166b032add8511182f2677</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] report: Pass correctly the docids to render_html method</title>
<updated>2016-08-10T09:13:33+00:00</updated>
<author>
<name>Yannick Tivisse</name>
<email>yti@odoo.com</email>
</author>
<published>2016-08-09T15:06:28+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=a3f83916d0c9152c9d5076782ee41f1adb06d679'/>
<id>a3f83916d0c9152c9d5076782ee41f1adb06d679</id>
<content type='text'>
In the 'get_html' method, the report is using a custom model to render its html,
we should use its own 'render_html' method to generate the report. During the
module migration, we replaced
'report_model.render_html(cr, uid, ids, data=data, context=context)'
by
'report_model.render_html(data=data)'

The new API signature of 'get_html' is

    @api.model
    def get_html(self, docids, report_name, data=None):

That way, 'render_html' doesn't receive docids anymore when called. We should do instead

    if report_model is not None:
        return report_model.browse(docids).render_html(data=data)

As render_html is an api.multi method, this is all wrong too, because we'll send a
browse record with the custom report model to the render_html method, to use the
ids with 'self.ids' that are absolutely not corresponding to the report model but to
to the record model we want to print (an invoice for example).

In old API style we were sending a list of ids, but it's not correct to keep the same
behavior by sending a browse record with only the ids relevant. We have also to
change render_html method decorator to @api.model with a new signature

    @api.model
    def render_html(self, docids, data=None):

And replace the call to render_html by

    if report_model is not None:
        return report_model.render_html(docids, data=data)

In the case the report is printed from a wizard, this is sufficient because the ids
are taken from the active_ids in context, or in data.

In the case the report is printed from a simple action, we should replace the occurence
of 'self.ids' (which doesn't mean anything) to 'docids'

This fix doesn't solve the printing issues for the custom accounting reports, because
the method get_pdf has been reimplemented in the module account_reports.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the 'get_html' method, the report is using a custom model to render its html,
we should use its own 'render_html' method to generate the report. During the
module migration, we replaced
'report_model.render_html(cr, uid, ids, data=data, context=context)'
by
'report_model.render_html(data=data)'

The new API signature of 'get_html' is

    @api.model
    def get_html(self, docids, report_name, data=None):

That way, 'render_html' doesn't receive docids anymore when called. We should do instead

    if report_model is not None:
        return report_model.browse(docids).render_html(data=data)

As render_html is an api.multi method, this is all wrong too, because we'll send a
browse record with the custom report model to the render_html method, to use the
ids with 'self.ids' that are absolutely not corresponding to the report model but to
to the record model we want to print (an invoice for example).

In old API style we were sending a list of ids, but it's not correct to keep the same
behavior by sending a browse record with only the ids relevant. We have also to
change render_html method decorator to @api.model with a new signature

    @api.model
    def render_html(self, docids, data=None):

And replace the call to render_html by

    if report_model is not None:
        return report_model.render_html(docids, data=data)

In the case the report is printed from a wizard, this is sufficient because the ids
are taken from the active_ids in context, or in data.

In the case the report is printed from a simple action, we should replace the occurence
of 'self.ids' (which doesn't mean anything) to 'docids'

This fix doesn't solve the printing issues for the custom accounting reports, because
the method get_pdf has been reimplemented in the module account_reports.
</pre>
</div>
</content>
</entry>
<entry>
<title>[MIG] base/module</title>
<updated>2016-05-11T09:40:25+00:00</updated>
<author>
<name>Raphael Collet</name>
<email>rco@openerp.com</email>
</author>
<published>2016-05-02T13:41:08+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d465346f1ee4d2399576f03fd5644f74191fc14b'/>
<id>d465346f1ee4d2399576f03fd5644f74191fc14b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text</title>
<updated>2015-06-02T01:16:04+00:00</updated>
<author>
<name>Olivier Dony</name>
<email>odo@openerp.com</email>
</author>
<published>2015-06-01T22:39:30+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=0bd454534818941bc3216025ebe3dcac3d78c19d'/>
<id>0bd454534818941bc3216025ebe3dcac3d78c19d</id>
<content type='text'>
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] base : Convert Model Overview and Technical Guide  rml reports in qweb report</title>
<updated>2015-02-04T14:28:50+00:00</updated>
<author>
<name>rsi-odoo</name>
<email>rsi@openerp.com</email>
</author>
<published>2014-11-11T13:07:16+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=1c3f7c5ad7b6e699fc44c1919010c6792c2d040f'/>
<id>1c3f7c5ad7b6e699fc44c1919010c6792c2d040f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[REF] remove vim modelines and resulting trailing blank lines</title>
<updated>2014-12-31T14:52:13+00:00</updated>
<author>
<name>Leonardo Donelli</name>
<email>learts92@gmail.com</email>
</author>
<published>2014-12-31T23:00:00+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=4a0b13ed92311032ec4236a71b5a07592df79b0f'/>
<id>4a0b13ed92311032ec4236a71b5a07592df79b0f</id>
<content type='text'>
Let 2015 be a year without modelines!
cf #4174
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let 2015 be a year without modelines!
cf #4174
</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port of server v7 up to revision 4954</title>
<updated>2013-04-23T18:37:23+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@openerp.com</email>
</author>
<published>2013-04-23T18:37:23+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=261dea6fec607d8e1d216acddda1d845e205b698'/>
<id>261dea6fec607d8e1d216acddda1d845e205b698</id>
<content type='text'>
bzr revid: qdp-launchpad@openerp.com-20130422093655-txqmbalod6qmw1s6
bzr revid: chs@openerp.com-20130423183723-9kiexdyzdew8iuzm</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzr revid: qdp-launchpad@openerp.com-20130422093655-txqmbalod6qmw1s6
bzr revid: chs@openerp.com-20130423183723-9kiexdyzdew8iuzm</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] module, technical reference guide report: don't print fields having the same name than another on another object that have been modified in that module. + small refactoring</title>
<updated>2013-04-12T13:32:14+00:00</updated>
<author>
<name>Quentin (OpenERP)</name>
<email>qdp-launchpad@openerp.com</email>
</author>
<published>2013-04-12T13:32:14+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=3f1d969e51a9deb3fdb5b3a8b2e1812b407518f4'/>
<id>3f1d969e51a9deb3fdb5b3a8b2e1812b407518f4</id>
<content type='text'>
bzr revid: qdp-launchpad@openerp.com-20130412133214-s92o4gcfwfu7yfbp</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzr revid: qdp-launchpad@openerp.com-20130412133214-s92o4gcfwfu7yfbp</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] module, technical reference guide report: print only the that have been added, not all the fields of the modified objects</title>
<updated>2013-04-12T12:57:54+00:00</updated>
<author>
<name>Quentin (OpenERP)</name>
<email>qdp-launchpad@openerp.com</email>
</author>
<published>2013-04-12T12:57:54+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f354be38a380dcadbd46845b2da00078f63e0733'/>
<id>f354be38a380dcadbd46845b2da00078f63e0733</id>
<content type='text'>
bzr revid: qdp-launchpad@openerp.com-20130412125754-qfu30oxc7yrsrrzv</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzr revid: qdp-launchpad@openerp.com-20130412125754-qfu30oxc7yrsrrzv</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] replace all tests like 'registry.get(X)' by 'X in registry' where X is non static</title>
<updated>2013-03-29T14:07:23+00:00</updated>
<author>
<name>Raphael Collet</name>
<email>rco@openerp.com</email>
</author>
<published>2013-03-29T14:07:23+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=09be864f1d2198afa245bc12d68cd38cc2119874'/>
<id>09be864f1d2198afa245bc12d68cd38cc2119874</id>
<content type='text'>
bzr revid: rco@openerp.com-20130329140723-dnrl02saky570xg0</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzr revid: rco@openerp.com-20130329140723-dnrl02saky570xg0</pre>
</div>
</content>
</entry>
</feed>
