vauxoo-dev / gist-vauxoo

All our gist files into organization
6 stars 7 forks source link

[ADD]: Webservice to generate a PDF and cancel XML task#9290 #97

Closed goliveirab closed 6 years ago

goliveirab commented 7 years ago

Generate payslip PDF With a signed payroll XML : Generate the PDF

Cancel payslip With a UUIDs list: Cancel the XML in SAT.

goliveirab commented 7 years ago

@luistorresm This changes copy the test payroll, i still have to 'confirm' the payroll to generate the xml (not signed), so i was trying to call the hr_verify_sheet with hr_payslip.execute_kw(DB_NAME, UID, PASSWD, 'hr.payslip', 'hr_verify_sheet', [cr, uid, [hr_copy]]) but, How could i get the cursor (cr) in the WS to pass it to the method?

goliveirab commented 7 years ago

@luistorresm Could you please check this.

luistorresm commented 7 years ago

Thanks @goliveirab

Could you show me the PDF that generate the WS, please?

goliveirab commented 7 years ago

@luistorresm This is the PDF: Page 1 Page 2

goliveirab commented 7 years ago

@luistorresm I made some changes here PR in the report to set the 'Receptor' values. And now the PDF is like this: PDF

goliveirab commented 7 years ago

@luistorresm could you please check this.

goliveirab commented 6 years ago

@luistorresm The file ws_cancel_payslip_xml.py has been created for the cancellation process.

goliveirab commented 6 years ago

@luistorresm Do you have any news about this?