summaryrefslogtreecommitdiff
path: root/doc/reference/reports.rst
AgeCommit message (Collapse)Author
2019-02-20[MERGE] forward port branch saas-11.3 up to 2c495502aa3Christophe Simonis
2019-02-19[MERGE] forward port branch saas-15 up to c6c3d73391aChristophe Simonis
2019-02-04[DOC] reports: add documentation for custom fontsYenthe666
closes odoo/odoo#30813
2018-07-27[REF] *: BS4, adapt col-related classesqsm-odoo
col-lg-* -> col-xl-* col-md-* -> col-lg-* col-sm-* -> col-md-* col-xs-* -> col-* col-lg-offset-* -> offset-xl-* col-md-offset-* -> offset-lg-* col-sm-offset-* -> offset-md-* col-xs-offset-* -> offset-* col-lg-pull-* -> order-xl-1 col-md-pull-* -> order-lg-1 col-sm-pull-* -> order-md-1 col-xs-pull-* -> order-1 col-lg-push-* -> order-xl-2 col-md-push-* -> order-lg-2 col-sm-push-* -> order-md-2 col-xs-push-* -> order-2
2018-04-18[IMP] doc: add link to qweb variable syntaxMartin Trigaux
To mention you can use the {{ var }} syntax too Closes #12035
2017-10-23[FIX] doc: some changes due to Odoo 11Richard Mathot
* Gantt view definitions have been changed * reports call different templates than Odoo 10.0 * XML-RPC and JSON-RPC examples migrated to Python 3
2016-10-11[FIX] doc: building correctly autoclass referencesMartin Trigaux
2016-08-10[FIX] report: Pass correctly the docids to render_html methodYannick Tivisse
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.
2016-07-25[MERGE] forward port branch saas-11 up to 7ae5121Christophe Simonis
2016-07-22[FIX] doc: correct spelling mistake in referencergeleta
Closes #12865
2016-07-05[TYPO] qweb: use the same option attribute for t-esc t-raw and t-fieldChristophe Matthieu
t-options instead of t-field-options
2016-06-14[FIX] templates: remplace true by True for t-field-optionsChristophe Matthieu
t-field-options is a python dictionary. 'true' is evaluated as None because the qweb did not find any value for 'true' key.
2016-03-11[DOC] report: paperformat available in report declarationDamien Bouvy
No warning needed concerning the stupid parperformat_id inheritance hack.
2015-11-23[MERGE] forward port of branch 8.0 up to 6f29cbeDenis Ledoux
2015-11-20[DOC] reports: clarification about stylesJairo Llopis
* correct xpath to add style in report.styles * informations about style troubleshoot closes #9105
2015-07-07[MERGE] forward port of branch 8.0 up to 2de301dChristophe Simonis
2015-07-07[ADD] doc: new themeXavier Morel
Pretty much completely rewritten theme with custom HTML translator and a few parts of the old theme extracted to their own extensions. Banner images thought not to be that huge after all, and not worth the hassle of them living in a different repository. co-authored with @stefanorigano
2015-02-06[IMP] doc: update report doc to include t-lang attribute in template ↵Damien Bouvy
translation
2015-01-27[IMP] doc: documentation for qweb reportsDamien Bouvy
closes #4876
2014-11-03[FIX] doc: fit code example to new APINicolas Bustillos
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
2014-08-22[ADD] doc: new documentation, with training tutorials, and new scaffoldingRaphael Collet