Skip to content

Commit

Permalink
apply all suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arpa-odoo committed Apr 26, 2024
1 parent b9c7621 commit 9d397aa
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 38 deletions.
13 changes: 7 additions & 6 deletions learning_management_services/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
communication tools, certification and gamification.
""",
'depends': [
'account_followup',
'appointment_crm',
'account',
'knowledge',
'payment_demo',
'project_enterprise',
'sale_project',
'sale_management',
'website_crm',
'website_sale_wishlist',
'website_sale_loyalty',
Expand All @@ -31,6 +29,8 @@
'data/product_document.xml',
'data/knowledge_cover.xml',
'data/knowledge_article.xml',
'data/knowledge_article_favorite.xml',
'data/payment_provider_demo.xml',
'data/survey_survey.xml',
'data/survey_question.xml',
'data/survey_question_answer.xml',
Expand All @@ -40,12 +40,13 @@
'data/slide_slide.xml',
'data/slide_question.xml',
'data/slide_answer.xml',
'data/appointment_type.xml',
'data/mail_message.xml',
],
'demo': [
'demo/website_view.xml',
'demo/website.xml',
'demo/res_partner.xml',
'demo/res_users.xml',
'demo/loyalty_program.xml',
'demo/loyalty_rule.xml',
'demo/loyalty_reward.xml',
Expand All @@ -56,8 +57,8 @@
'demo/website_ir_attachment.xml',
'demo/forum_forum.xml',
'demo/forum_post.xml',
'demo/payment_provider_demo.xml',
],
'license': 'OPL-1',
'images': ['images/main.png'],
'maintenance_loc': 0,
}
29 changes: 0 additions & 29 deletions learning_management_services/data/appointment_type.xml

This file was deleted.

2 changes: 1 addition & 1 deletion learning_management_services/data/knowledge_article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<ul>
<li>Create a product with product type as "course"</li>
<li>Define the course and set the enrollment policy</li>
<li>Visit the online shop and select the course</li>
<li>visit the Website and select the course</li>
<li>Make the payment and enroll in the course</li>
</ul>
<h2>Flow 2 : Offer a Discount and Coupon code for Free Product on Course</h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="knowledge_favorite" model="knowledge.article.favorite">
<field name="article_id" ref="knowledge_article_1"/>
<field name="user_id" ref="base.user_admin"/>
</record>
</odoo>
16 changes: 16 additions & 0 deletions learning_management_services/data/mail_message.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record model="mail.message" id="notification_knowledge">
<field name="model">discuss.channel</field>
<field name="res_id" ref="mail.channel_all_employees"/>
<field name="message_type">email</field>
<field name="author_id" ref="base.partner_root"/>
<field name="subtype_id" ref="mail.mt_comment"/>
<field name="subject">Knowledge article</field>
<field name="body" model="knowledge.article" eval="
'&lt;br>Hey! Need help?&lt;/br>
&lt;br>Checkout this &lt;a href=\''
+ obj().env.ref('learning_management_services.knowledge_article_1').article_url.replace(obj().get_base_url(), '')
+ '\'>article&lt;/a>&lt;/br>'"/>
</record>
</odoo>
7 changes: 7 additions & 0 deletions learning_management_services/data/payment_provider_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="payment.payment_provider_demo" model="payment.provider">
<field name="is_published" eval="0"/>
<field name="state">disabled</field>
</record>
</odoo>
4 changes: 2 additions & 2 deletions learning_management_services/demo/forum_post.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<record id="forum_post_3" model="forum.post">
<field name="name">What are your hospitality career goals?</field>
<field name="forum_id" ref="forum_forum_3"/>
<field name="create_uid" ref="base.user_admin"/>
<field name="create_uid" ref="res_user_1"/>
<field name="content">
<![CDATA[
<p>All About the Hospitality management!</p>
Expand All @@ -35,7 +35,7 @@
<field name="name">Good Evening! Could you just let me know about the What are the 7 C's of digital marketing? Thanks in advance!</field>
<field name="state">pending</field>
<field name="forum_id" ref="forum_forum_3"/>
<field name="create_uid" ref="base.user_admin"/>
<field name="create_uid" ref="res_user_1"/>
<field name="content">
<![CDATA[
<p>About the Managmnet courses</p>
Expand Down
7 changes: 7 additions & 0 deletions learning_management_services/demo/payment_provider_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="payment.payment_provider_demo" model="payment.provider">
<field name="is_published" eval="1"/>
<field name="state">test</field>
</record>
</odoo>
9 changes: 9 additions & 0 deletions learning_management_services/demo/res_users.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="res_user_1" model="res.users">
<field name="partner_id" ref="res_partner_15"/>
<field name="login">arjun@example.com</field>
<field name="company_id" ref="base.main_company"/>
<field name="is_published" eval="True"/>
</record>
</odoo>

0 comments on commit 9d397aa

Please sign in to comment.