hello! in a list view it's possible to make a report for all marked ressources. I created a new report which should list only the marked invoices of a customer/supplier, e.g. "customer A: invoices number 001, 005, 006" (and some more invoice details). How can this be done?
I got it working that all invoices of a customer are listed using the following function in the /report/invoice_list.py: def _invoices_get(self, partner): invoices_obj = pooler.get_pool(self.cr.dbname).get('account.invoice') invoices = invoices_obj.search(self.cr, self.uid, [('partner_id', '=', partner.id), ]) invoices = invoices_obj.read(self.cr, self.uid, invoices) return invoices I call it in the invoice_list.rml via: <para>[[repeatIn(getInvoices(o.partner_id), 'line') ]]</para> and the table fields look like this: <td><para>[[ line['number'] ]]</para></td> _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users