This question has been flagged
4 Replies
2513 Views

I'm using v13 Cloud edition with Studio.

I've created a custom model which contains a subject, body and email template (many2one) field. I want to populate the subject and body field based on the email template that's selected.

How can I do this? As far as I know I cannot add onchange code in python in Odoo cloud edition?

Avatar
Discard
Author

thanks @Niyas! That worked. Do you know how I can copy over the email template and convert the placeholders so that they are filled in with the corresponding model data?

Best Answer

If you are using Odoo online, then you cannot do anything to make it work.

But if you are using a cloud server, then you can add an onchange method in your custom module and upload it on the cloud server.

Avatar
Discard
Author Best Answer

I'm using Odoo online... that's too bad. Thanks anyway!

Avatar
Discard
Best Answer

Hi,

If you need to trigger an on change function from user interface without code using the automated action, see this:  Add Onchange Function From User Interface In Odoo


Thanks

Avatar
Discard