Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PrintReportInvoice(Wizard):
- "Print Report Invoice"
- __name__ = 'pathocytology.print.report.invoice'
- start = StateReport('pathocytology_services.invoice.attachment.report')
- def do_start(self, action):
- pool = Pool()
- service = pool.get('pathocytology.health_service')
- invoice = self.record
- services = service.search([('invoice', '=', invoice.id)], order=[('counter', 'ASC')])
- data = {
- 'ids': [invoice.id],
- 'services': services,
- }
- return action, data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement