Skip to content

Commit

Permalink
[ADD] sports_coach: new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrs-odoo committed Oct 9, 2024
1 parent a40c43e commit 3c6221f
Show file tree
Hide file tree
Showing 13 changed files with 135 additions and 152 deletions.
14 changes: 12 additions & 2 deletions sports_coach/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
'name': 'Sports coach',
'version': '1.0',
'category': 'Health & Fitness',
'description': """
""",
'description': "",
'depends': [
'appointment_account_payment',
'appointment_crm',
Expand All @@ -27,13 +26,15 @@
'data/knowledge_article_favorite.xml',
'data/mail_message.xml',
'data/ir_model_data.xml',
'data/knowledge_tour.xml',
],
'demo': [
'demo/res_partner.xml',
'demo/account_analytic_account.xml',
'demo/crm_lead.xml',
'demo/hr_employee.xml',
'demo/calendar_event.xml',
'demo/project_tags.xml',
'demo/project_project.xml',
'demo/sale_order.xml',
'demo/sale_order_line.xml',
Expand All @@ -42,5 +43,14 @@
'demo/sale_order_confirm.xml',
],
'license': 'OPL-1',
'assets': {
'web.assets_backend': [
'sports_coach/static/src/js/my_tour.js',
]
},
'author': 'Odoo S.A.',
"cloc_exclude": [
"data/knowledge_article.xml",
"static/src/js/my_tour.js",
],
}
8 changes: 4 additions & 4 deletions sports_coach/data/knowledge_article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
<li class="null">Follow up on inquiries</li>
<li class="null">Convert leads into clients</li>
</ul>
<p class="null"><a class="btn btn-outline-primary btn-sm" href="https://www.odoo.com/documentation/master/applications/sales/crm.html">🎓 CRM</a></p>
<p class="null"><a class="btn btn-outline-primary btn-sm" href="https://www.odoo.com/documentation/latest/applications/sales/crm.html">🎓 CRM</a></p>
<p class="null"><br /></p>
<h3 class="null">Manage your services 👟</h3>
<p class="null">Create and manage your coaching services:</p>
<ul class="null">
<li class="null">Set up services like "10-Session Personal Training Package" or "3-Month Transformation Program"</li>
<li class="null">Define pricing and project tracking needs for each service</li>
</ul>
<p><a href="https://www.odoo.com/documentation/master/applications/sales/sales.html" class="btn btn-outline-primary btn-sm">🎓 Sales</a></p>
<p><a href="https://www.odoo.com/documentation/latest/applications/sales/sales.html" class="btn btn-outline-primary btn-sm">🎓 Sales</a></p>
<div class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-info pb-0 pt-3" data-oe-protected="true">
<i class="o_editor_banner_icon mb-3 fst-normal">🚀</i>
<div class="w-100 px-3" data-oe-protected="false">
Expand All @@ -60,15 +60,15 @@
<li class="null">Track progress and set milestones</li>
<li class="null">Collaborate with clients on their goals</li>
</ul>
<p><a href="https://www.odoo.com/documentation/master/applications/services/project.html" class="btn btn-outline-primary btn-sm">🎓 Project</a></p>
<p><a href="https://www.odoo.com/documentation/latest/applications/services/project.html" class="btn btn-outline-primary btn-sm">🎓 Project</a></p>
<p><br /></p>
<h3 class="null">Invoicing 🧾</h3>
<p class="null">Easily bill clients for your services:</p>
<ul class="null">
<li class="null">Generate invoices automatically from sales orders</li>
<li class="null">Track payments and send reminders</li>
</ul>
<p><a href="https://www.odoo.com/documentation/master/applications/finance/accounting/customer_invoices.html" class="btn btn-outline-primary btn-sm">🎓 Invoicing</a></p>
<p><a href="https://www.odoo.com/documentation/latest/applications/finance/accounting/customer_invoices.html" class="btn btn-outline-primary btn-sm">🎓 Invoicing</a></p>
<p><br /></p>
<div class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-success pb-0 pt-3" data-oe-protected="true">
<i class="o_editor_banner_icon mb-3 fst-normal">✅</i>
Expand Down
8 changes: 8 additions & 0 deletions sports_coach/data/knowledge_tour.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="knowledge_tour" model="web_tour.tour">
<field name="name">knowledge_tour</field>
<field name="sequence">2</field>
<field name="rainbow_man_message">Welcome! Happy exploring.</field>
</record>
</odoo>
8 changes: 4 additions & 4 deletions sports_coach/data/mail_message.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<field name="author_id" ref="base.partner_root"/>
<field name="subtype_id" ref="mail.mt_comment"/>
<field name="subject">🚀 Get started with Odoo Sports Coach</field>
<field name="body" model="knowledge.article" eval="'&lt;br>Hi! Follow this&lt;/br>
&lt;br>Checkout this &lt;a href=\''
+ obj().env.ref('sports_coach.welcome_article').article_url.replace(obj().get_base_url(), '')
+ '\'>article&lt;/a>&lt;/br>'"/>
<field name="body" model="knowledge.article" eval="
'&lt;span>&#x1F44B; Hi! Follow this &lt;a href=\''
+ obj().env.ref('sports_coach.welcome_article').article_url
+ '\'>onboarding guide&lt;/a>. You can find it anytime in the Knowledge app.&lt;/span>'"/>
</record>
</odoo>
4 changes: 2 additions & 2 deletions sports_coach/data/product_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<odoo noupdate="1">
<record id="product_product_7" model="product.product">
<field name="name">10-Session Personal Training Package</field>
<field name="service_tracking">task_in_project</field>
<field name="service_tracking">project_only</field>
<field name="list_price">800.0</field>
<field name="purchase_ok" eval="False"/>
<field name="type">service</field>
Expand All @@ -23,7 +23,7 @@
<record id="product_product_9" model="product.product">
<field name="name">3-Month Transformation Program</field>
<field name="image_1920" type="base64" file="sports_coach/static/src/binary/product_template/9-image_1920"/>
<field name="service_tracking">task_in_project</field>
<field name="service_tracking">project_only</field>
<field name="list_price">1500.0</field>
<field name="purchase_ok" eval="False"/>
<field name="type">service</field>
Expand Down
90 changes: 20 additions & 70 deletions sports_coach/demo/crm_lead.xml
Original file line number Diff line number Diff line change
@@ -1,171 +1,121 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="crm_lead_1" model="crm.lead">
<field name="partner_id" ref="res_partner_13"/>
<field name="name">12-week Transformation Program</field>
<field name="partner_id" ref="res_partner_13"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">3</field>
<field name="stage_id" ref="crm_stage_5"/>
<field name="expected_revenue">1200.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="probability">91.67</field>
<field name="date_open">2024-09-16 13:53:17</field>
<field name="partner_name">John Smith</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">pending</field>
<field name="iap_enrich_done" eval="True"/>
</record>
<record id="crm_lead_2" model="crm.lead">
<field name="partner_id" ref="res_partner_14"/>
<field name="name">Marathon Training Plan</field>
<field name="partner_id" ref="res_partner_14"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">3</field>
<field name="stage_id" ref="crm.stage_lead2"/>
<field name="expected_revenue">800.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="probability">91.67</field>
<field name="date_open">2024-09-16 13:53:39</field>
<field name="partner_name">Emily Johnson</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">pending</field>
<field name="iap_enrich_done" eval="True"/>
</record>
<record id="crm_lead_3" model="crm.lead">
<field name="partner_id" ref="res_partner_15"/>
<field name="name">Golf Performance Enhancement</field>
<field name="partner_id" ref="res_partner_15"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">2</field>
<field name="stage_id" ref="crm.stage_lead2"/>
<field name="expected_revenue">600.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="probability">91.67</field>
<field name="date_open">2024-09-16 13:54:05</field>
<field name="partner_name">Mike Brown</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">pending</field>
<field name="iap_enrich_done" eval="True"/>
</record>
<record id="crm_lead_4" model="crm.lead">
<field name="partner_id" ref="res_partner_16"/>
<field name="name">Post-rehabilitation Fitness</field>
<field name="partner_id" ref="res_partner_16"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">3</field>
<field name="stage_id" ref="crm.stage_lead4"/>
<field name="expected_revenue">1000.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="probability">100.0</field>
<field name="date_closed">2024-09-16 13:57:14</field>
<field name="date_open">2024-09-16 13:54:26</field>
<field name="partner_name">Sarah Davis</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">won</field>
</record>
<record id="crm_lead_5" model="crm.lead">
<field name="partner_id" ref="res_partner_17"/>
<field name="name">Youth Soccer Coaching</field>
<field name="partner_id" ref="res_partner_17"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">2</field>
<field name="stage_id" ref="crm.stage_lead3"/>
<field name="expected_revenue">500.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="probability">91.67</field>
<field name="date_open">2024-09-16 13:54:47</field>
<field name="partner_name">Tom Wilson</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">pending</field>
<field name="iap_enrich_done" eval="True"/>
</record>
<record id="crm_lead_6" model="crm.lead">
<field name="partner_id" ref="res_partner_18"/>
<field name="name">Corporate Wellness Program</field>
<field name="partner_id" ref="res_partner_18"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">1</field>
<field name="stage_id" ref="crm_stage_5"/>
<field name="expected_revenue">2000.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="probability">91.67</field>
<field name="date_open">2024-09-16 13:55:09</field>
<field name="partner_name">Lisa Anderson</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">pending</field>
<field name="iap_enrich_done" eval="True"/>
</record>
<record id="crm_lead_7" model="crm.lead">
<field name="partner_id" ref="res_partner_19"/>
<field name="name">Boxing Technique Sessions</field>
<field name="partner_id" ref="res_partner_19"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">1</field>
<field name="stage_id" ref="crm.stage_lead2"/>
<field name="expected_revenue">400.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="probability">91.67</field>
<field name="date_open">2024-09-16 13:55:28</field>
<field name="partner_name">David Lee</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">pending</field>
<field name="iap_enrich_done" eval="True"/>
</record>
<record id="crm_lead_8" model="crm.lead">
<field name="partner_id" ref="res_partner_20"/>
<field name="name">Nutrition and Fitness Package</field>
<field name="partner_id" ref="res_partner_20"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">2</field>
<field name="stage_id" ref="crm.stage_lead3"/>
<field name="expected_revenue">1500.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="probability">91.67</field>
<field name="date_open">2024-09-16 13:55:59</field>
<field name="partner_name">Amanda White</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">pending</field>
<field name="iap_enrich_done" eval="True"/>
</record>
<record id="crm_lead_9" model="crm.lead">
<field name="partner_id" ref="res_partner_21"/>
<field name="name">Senior Fitness Program</field>
<field name="partner_id" ref="res_partner_21"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">1</field>
<field name="stage_id" ref="crm.stage_lead1"/>
<field name="expected_revenue">700.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="date_open">2024-09-16 13:56:20</field>
<field name="partner_name">Chris Taylor</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">pending</field>
<field name="iap_enrich_done" eval="True"/>
</record>
<record id="crm_lead_10" model="crm.lead">
<field name="partner_id" ref="res_partner_22"/>
<field name="name">Pre-wedding Fitness Plan</field>
<field name="partner_id" ref="res_partner_22"/>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="company_id" ref="base.main_company"/>
<field name="priority">2</field>
<field name="stage_id" ref="crm.stage_lead1"/>
<field name="expected_revenue">900.0</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="date_open">2024-09-16 13:56:46</field>
<field name="partner_name">Jessica Martinez</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="won_status">pending</field>
<field name="iap_enrich_done" eval="True"/>
</record>
</odoo>
1 change: 0 additions & 1 deletion sports_coach/demo/hr_employee.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
<field name="mobile_phone">+00</field>
<field name="work_email">[email protected]</field>
<field name="user_id" ref="base.user_admin"/>
<field name="private_email">[email protected]</field>
</record>
</odoo>
3 changes: 3 additions & 0 deletions sports_coach/demo/project_project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
</record>
<record id="project_project_2" model="project.project">
<field name="analytic_account_id" ref="account_analytic_account_2"/>
<field name="tag_ids" eval="[Command.set([ref('project_tags_1')])]"/>
</record>
<record id="project_project_3" model="project.project">
<field name="analytic_account_id" ref="account_analytic_account_3"/>
<field name="tag_ids" eval="[Command.set([ref('project_tags_1')])]"/>
</record>
<record id="project_project_4" model="project.project">
<field name="analytic_account_id" ref="account_analytic_account_4"/>
<field name="tag_ids" eval="[Command.set([ref('project_tags_1')])]"/>
</record>
<record id="project_project_5" model="project.project">
<field name="name">S00001 - 3-Month Transformation Program</field>
Expand Down
6 changes: 6 additions & 0 deletions sports_coach/demo/project_tags.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="project_tags_1" model="project.tags">
<field name="name">Template</field>
</record>
</odoo>
Loading

0 comments on commit 3c6221f

Please sign in to comment.