3

I am developing ODOO application in iOS. I want to achieve "Send by email" functionality in "Quotations" and "Sales Order" module in ODOO.

So is there any API available to achieve this functionality ?

Or shall i generate PDF programmatically in iOS and send this by using MFMailComposeViewController class ?

Thanks

Tejas Bharambe
  • 672
  • 1
  • 12
  • 27

1 Answers1

1

It is best to reuse the Odoo feature. The button calls a method of the Sale Order model. You can identify the method's name if you activate the Developer Mode:

Send by Email button

The method is action_quotation_send, and it is available in the External API just like write is.

Unfortunately this particular method opens a wizard: it just prepares some data and then returns an action to the webclient to open the "wizard" dialog, and the actual operation will only be performed there, with its "Send" button.

To have a fully automated procedure, usable from a single API call, you will need to implement yourself a method. There website_sale official module does something similar, so I recommend looking to extract the relevant code for your use case.

Daniel Reis
  • 12,944
  • 6
  • 43
  • 71
  • Thanks daniel.. means you want to say that i want to implement another method in web to send mail and from iOS application call that method... ? – Tejas Bharambe May 06 '15 at 05:46