chore: test new field

This commit is contained in:
jinhojang6 2024-03-11 03:05:33 +09:00
parent e352f5b08d
commit 5ac24a80ba
1 changed files with 7 additions and 3 deletions

View File

@ -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 || "",
},
],
}, },
}), }),
} }