Files
dn20/ai_marketing_automation_crm/data/ai_skill.xml
2026-11-08 20:08:53 +08:00

27 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="ai_skill_campaign_crm_targeting" model="ai.skill">
<field name="name">Campaign CRM Targeting</field>
<field name="description">Rules for campaigns targeting crm.lead: telling leads from opportunities, the fields to enrol and deduplicate on. Load before setting a campaign model to crm.lead or writing its enrolment.</field>
<field name="instructions">
Extends section 2 CAMPAIGN.
`crm.lead` becomes a valid `model_id`.
**A lead and an opportunity are both `crm.lead`**, told apart by `type`. Always constrain
`enroll_domain` on it: a campaign described as being for opportunities otherwise enrols every
lead as well.
The email field is `email_from`, not `email` - also the right `enroll_unique_field_id`. `user_id`
is the salesperson and may be empty, and a lead need not have a `partner_id` yet.
A campaign can start with an action rather than an email: the shipped Schedule Calls campaign is
one `action` step with `trigger_type` begin, booking a call with the lead's salesperson.
</field>
</record>
<record id="ai_marketing_automation.ai_agent_campaign_builder" model="ai.agent">
<field name="skill_ids" eval="[(4, ref('ai_skill_campaign_crm_targeting'))]"/>
</record>
</odoo>