Advertisement
NeyderCorrea

Reporte

Feb 22nd, 2024
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. class PrintReportInvoice(Wizard):
  2. "Print Report Invoice"
  3. __name__ = 'pathocytology.print.report.invoice'
  4.  
  5. start = StateReport('pathocytology_services.invoice.attachment.report')
  6.  
  7. def do_start(self, action):
  8. pool = Pool()
  9. service = pool.get('pathocytology.health_service')
  10. invoice = self.record
  11.  
  12. services = service.search([('invoice', '=', invoice.id)], order=[('counter', 'ASC')])
  13.  
  14. data = {
  15. 'ids': [invoice.id],
  16. 'services': services,
  17. }
  18. return action, data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement