chore: test new field
This commit is contained in:
parent
e352f5b08d
commit
5ac24a80ba
|
@ -26,7 +26,7 @@
|
||||||
const reason = form.querySelector("#form-reason").value;
|
const reason = form.querySelector("#form-reason").value;
|
||||||
|
|
||||||
const res = await fetch(
|
const res = await fetch(
|
||||||
`https://odoo.logos.co/website_mass_mailing/subscribe2`,
|
`https://odoo.logos.co/web/dataset/call_kw/mailing.contact/create`,
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -38,10 +38,14 @@
|
||||||
params: {
|
params: {
|
||||||
value: email,
|
value: email,
|
||||||
name: name || "",
|
name: name || "",
|
||||||
x_x_handle: x || "",
|
|
||||||
x_reason: reason || "",
|
|
||||||
list_id: 12,
|
list_id: 12,
|
||||||
subscription_type: "email",
|
subscription_type: "email",
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
x_social: x || "",
|
||||||
|
x_reason: reason || "",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue