Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3879 Prikazi

Hello everybody.

I made a website in WordPress and I also have an Odoo account for e-mail marketing and newsletter subscriptions.

I need some help please in configuring my WordPress website so that when a visitor wants to subscribe, to be automatically added into my newsletter subscribers database that I allready have in Odoo.

Is this possible?

Looking forward for your answer.

Thanks in advance!

Avatar
Opusti
Best Answer

Hello, Serkan.

One of the available approaches is using the External API requests to Odoo. 

Try making a request to create a record in the "mailing.contact" Odoo model. See examples by this link: https://www.odoo.com/documentation/15.0/developer/misc/api/odoo.html#create-records

$id = $models->execute_kw($db, $uid, $password,
    'mailing.contact', 'create',
    array(array('name'=>"New Partner")));

Have a nice day!

Yurii Razumovskyi.

Company Garazd Creation

https://garazd.biz

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
avg. 24
723
1
sep. 23
2371
0
feb. 17
5669
0
nov. 23
892
0
sep. 17
5114