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:

&nbsp; &nbsp; <para>&#91;&#91;repeatIn&#40;getInvoices&#40;o.partner_id&#41;, 
'line'&#41; &#93;&#93;</para>

and the table fields look like this:
&nbsp; &nbsp; &nbsp; &nbsp; <td><para>&#91;&#91; line&#91;'number'&#93; 
&#93;&#93;</para></td>





_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to