From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- .../data/crm_lead_demo.xml | 33 ++++++ .../data/crm_partner_assign_data.xml | 123 +++++++++++++++++++++ .../data/res_partner_demo.xml | 107 ++++++++++++++++++ .../data/res_partner_grade_demo.xml | 21 ++++ 4 files changed, 284 insertions(+) create mode 100644 addons/website_crm_partner_assign/data/crm_lead_demo.xml create mode 100644 addons/website_crm_partner_assign/data/crm_partner_assign_data.xml create mode 100644 addons/website_crm_partner_assign/data/res_partner_demo.xml create mode 100644 addons/website_crm_partner_assign/data/res_partner_grade_demo.xml (limited to 'addons/website_crm_partner_assign/data') diff --git a/addons/website_crm_partner_assign/data/crm_lead_demo.xml b/addons/website_crm_partner_assign/data/crm_lead_demo.xml new file mode 100644 index 00000000..468b90fa --- /dev/null +++ b/addons/website_crm_partner_assign/data/crm_lead_demo.xml @@ -0,0 +1,33 @@ + + + + + + + lead + Specifications and price of your phones + Steve Martinez + + + Reseller + + Edinburgh + + 2 + + + + Hi, + + Please, can you give me more details about your phones, including their specifications and their prices. + + Regards, + Steve + + + + + + + + \ No newline at end of file diff --git a/addons/website_crm_partner_assign/data/crm_partner_assign_data.xml b/addons/website_crm_partner_assign/data/crm_partner_assign_data.xml new file mode 100644 index 00000000..5ca6dee5 --- /dev/null +++ b/addons/website_crm_partner_assign/data/crm_partner_assign_data.xml @@ -0,0 +1,123 @@ + + + + + No more partner available + 3 + + + Spam + 3 + + + Created by Partner + 4 + + + Lead Forward: Send to partner + + Fwd: Lead: ${ctx['partner_id'].name} + ${user.email_formatted | safe} + ${ctx['partner_id'].email_formatted |safe} + + + + +
+ + + + + + + + + + + + + + + +
+ + + +
+ Your leads
+
+ +
+
+
+
+ + + + + + + +
+
+ Hello,
+ We have been contacted by those prospects that are in your region. Thus, the following leads have been assigned to ${ctx['partner_id'].name}:
+
    + % for lead in ctx['partner_leads']: +
  1. ${lead.lead_id.name or 'Subject Undefined'}, ${lead.lead_id.partner_name or lead.lead_id.contact_name or 'Contact Name Undefined'}, ${lead.lead_id.country_id and lead.lead_id.country_id.name or 'Country Undefined' }, ${lead.lead_id.email_from or 'Email Undefined'}, ${lead.lead_id.phone or ''}

  2. + % endfor +
+ % if ctx.get('partner_in_portal'): + Please connect to your Partner Portal to get details. On each lead are two buttons on the top left corner that you should press after having contacted the lead: "I'm interested" & "I'm not interested".
+ % else: + You do not have yet a portal access to our database. Please contact + ${ctx['partner_id'].user_id and ctx['partner_id'].user_id.email and 'your account manager %s (%s)' % (ctx['partner_id'].user_id.name,ctx['partner_id'].user_id.email) or 'us'}.
+ % endif + The lead will be sent to another partner if you do not contact the lead before 20 days.

+ Thank you,
+ ${ctx['partner_id'].user_id and ctx['partner_id'].user_id.signature | safe or ''} +
+ % if not ctx['partner_id'].user_id: + PS: It looks like you do not have an account manager assigned to you, please contact us. + % endif +
+
+
+
+
+ + + +
+ ${user.company_id.name} +
+ ${user.company_id.phone} + % if user.company_id.phone and (user.company_id.email or user.company_id.website) + | + % endif + % if user.company_id.email + ${user.company_id.email} + % endif + % if user.company_id.email and user.company_id.website + | + % endif + % if user.company_id.website + + ${user.company_id.website} + + % endif +
+
+
+ + +
+ Powered by Odoo +
+
+
+ ${ctx['partner_id'].lang} + +
+
+
diff --git a/addons/website_crm_partner_assign/data/res_partner_demo.xml b/addons/website_crm_partner_assign/data/res_partner_demo.xml new file mode 100644 index 00000000..dde9e124 --- /dev/null +++ b/addons/website_crm_partner_assign/data/res_partner_demo.xml @@ -0,0 +1,107 @@ + + + + Platinum + 4 + + + Gold + 3 + + + Silver + 2 + + + Bronze + 1 + + + + + 10 + + + + + + + 10 + + + + 10 + + + + + 10 + + + + 10 + + + + 10 + + + + + 10 + + + + 10 + + + + 10 + + + + + 10 + + + + 10 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/website_crm_partner_assign/data/res_partner_grade_demo.xml b/addons/website_crm_partner_assign/data/res_partner_grade_demo.xml new file mode 100644 index 00000000..c12607f0 --- /dev/null +++ b/addons/website_crm_partner_assign/data/res_partner_grade_demo.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + 10 + + + -- cgit v1.2.3