Am 07.12.2011 17:05, schrieb pjalrimba rimbabara:
Can anybody explain to me what is my_module.my_report .
<record model="ir.action.report" id="report_invoice_new">
   <field name="name">Invoice</field>
   <field name="report_name">account.invoice</field>
   <field name="model">account.invoice</field>
   <field name="report">my_module/my_report</field>
   <field name="style">module_name/header_A4.odt</field>
</record>

report_name: The name of the report model, for example
my_module.my_report. This is the name you would use with pool.get

This means:

class Report(Report):
    _name='*reportname*'

so you can do a self.pool.get('*reportname*')

Jan



--
tryton@googlegroups.com mailing list

Reply via email to