Discussion:
[tryton] reports
Cato Nano
2018-03-30 09:00:40 UTC
Permalink
I could use an example of a report where "single" is False

For one thing this form is incorrect

<record model="ir.action.report" id="report_bolletta">
<field name="name">Bolletta</field>
<field name="model">tributi.bolletta</field>
<field name="report_name">tributi.bolletta</field>
<field name="report">tributi/bolletta.fodt</field>
<field name="single">False<field/>
</record>

KeyError: 'name'

and then I wonder: a not single report needs one only template fodt file and then it will create as many copies as needed ?

Or, rather, the file should contain some machinery to replicate some form for each record ?

Thanks
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/d22579c2-70cb-4a49-8ad9-e07ef394c10b%40googlegroups.com.
Cato Nano
2018-03-30 15:12:26 UTC
Permalink
Post by Cato Nano
I could use an example of a report where "single" is False
For one thing this form is incorrect
<record model="ir.action.report" id="report_bolletta">
<field name="name">Bolletta</field>
<field name="model">tributi.bolletta</field>
<field name="report_name">tributi.bolletta</field>
<field name="report">tributi/bolletta.fodt</field>
<field name="single">False<field/>
</record>
KeyError: 'name'
and then I wonder: a not single report needs one only template fodt file and then it will create as many copies as needed ?
Or, rather, the file should contain some machinery to replicate some form for each record ?
Thanks
I forgot: happy Easter !!
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/ce7b2da8-85e2-4259-b1a6-70dcd7ab83ec%40googlegroups.com.
Cédric Krier
2018-04-02 21:13:41 UTC
Permalink
Post by Cato Nano
and then I wonder: a not single report needs one only template fodt file and then it will create as many copies as needed ?
For non-single report (which is the default), you need to loop over
records.
For single report, you can use directly record.
--
Cédric Krier - B2CK SPRL
Email/Jabber: ***@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20180402211341.GR3910%40kei.
Continue reading on narkive:
Loading...