diff --git a/doc/topics/reports/index.rst b/doc/topics/reports/index.rst index 9622f6f04b..01128c2038 100644 --- a/doc/topics/reports/index.rst +++ b/doc/topics/reports/index.rst @@ -178,35 +178,45 @@ Replacing existing Tryton reports To replace an existing report you must deactivate the old report and activate the new report. -For example to deactivate the invoice report: +For example to deactivate the sale report: .. highlight:: xml :: - + -Then you must activate the new invoice report that exists in your new module: +Then you must activate the new sale report that exists in your new module: .. highlight:: xml :: - - Invoice - account.invoice - account.invoice - my_module/invoice.odt + + Sale + sale.sale + sale.sale + my_module/sale.odt odt +And create the keyword for the new report: + +.. highlight:: xml + +:: + + + form_print + sale.sale,-1 + + + Passing custom data to a report ------------------------------- -TODO: Examples of overriding Report.execute. - In this example `Report.get_context` is overridden and an employee object is set into context. Now the invoice report will be able to access the employee object.