Am Mittwoch, 9. Mai 2012 13:31:32 UTC+2 schrieb Andreas Kaiser:
>
>
> Am Mittwoch, 9. Mai 2012 13:18:33 UTC+2 schrieb Nicolas Évrard:
>>
>> * Andreas Kaiser  [2012-05-09 12:59 +0200]: 
>> What is this timesheet_invoice module you are talking about? 
>> It's probably a custom module we never heard about. 
>>
>
> Sorry, I din't even notice that it's not an official module. However you 
> can find it on PyPI (
> http://pypi.python.org/pypi/trytond_timesheet_invoice/) or github (
> https://github.com/pjstevns/trytond_timesheet_invoice).
>
> It contains two reports (timesheet_invoice_lines_report 
> and timesheet_lines_report) on the account.invoice and project.work models 
> (see 
> https://github.com/pjstevns/trytond_timesheet_invoice/blob/master/report.xml
> ).
>
> My problem is, that I don't know how to trigger these reports from the 
> Tryton client.
>

Finally I found the solution for my problem. 
 
1. A ir.action.wizard element was missing in report.xml.

Adding this makes the report show up in the client:

    <record model="ir.action.wizard" 
id="print_timesheet_invoice_lines_report">
        <field name="name">Timesheet</field>
        <field 
name="wiz_name">account.invoice.print_timesheet_invoice_lines_report</field>
        <field name="model">account.invoice</field>
    </record>

2. Although not a "hard" dependency "zope.pagetemplate" is an additional 
requirement to make the report generation finally work.


Thank you all for your help!

Andreas

-- 
[email protected] mailing list

Reply via email to