I need to see what data can I use to compose a report. How can I insert the proper code in a .FODT document to use it and present a complete structure of usable data?
For example in a sale:
<FOR EACH=“sale in records”>… dump all object hierachy with named data., including lines, possible relations, etc.</FOR>
There is no such things. And it is probably not possible to do it as it will probably generate infinite loop as data are mainly all interleaved.
See Where can I find a database relations map? to know available fields.
records here is the default value from model that you selected for print.
You may read more for “def get_context” to understand the how to passing value to report. Reports
you may need to create a class to inherit from “Report” (from trytond.report import Report)
Example: Invoice Report
Then you may passing any parameter to override method “get_context”
Example: get_context
Then to declare the report using xml: Invoice xml <field name="report_name">account.invoice</field>
the report_name is the model you declare in your class.
PS. the model can be any name you named it.