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 May 13, 2024
1 parent cec1df1 commit d41ff22
Show file tree
Hide file tree
Showing 19 changed files with 205 additions and 220 deletions.
18 changes: 11 additions & 7 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 @@ -26,11 +24,12 @@
'data/res_config_settings.xml',
'data/ir_attachment_pre.xml',
'data/product_category.xml',
'data/product_pricelist.xml',
'data/product_product.xml',
'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,24 +39,29 @@
'data/slide_slide.xml',
'data/slide_question.xml',
'data/slide_answer.xml',
'data/appointment_type.xml',
'data/mail_message.xml',
],
'demo': [
'demo/slide_slide.xml',
'demo/slide_channel.xml',
'demo/product_product.xml',
'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',
'demo/product_pricelist.xml',
'demo/sale_order.xml',
'demo/sale_order_line.xml',
'demo/sale_order_confirm.xml',
'demo/website_theme_apply.xml',
'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>
16 changes: 0 additions & 16 deletions learning_management_services/data/product_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,102 +5,89 @@
<field name="categ_id" ref="product_category_5"/>
<field name="detailed_type">course</field>
<field name="list_price">140.0</field>
<field name="is_published" eval="True"/>
<field name="website_ribbon_id" ref="website_sale.new_ribbon"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/2-image_1920"/>
</record>
<record id="product_product_3" model="product.product">
<field name="name">The Gifts of Imperfection, by Bren&#233; Brown(Ebook)</field>
<field name="detailed_type">service</field>
<field name="list_price">60.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/3-image_1920"/>
</record>
<record id="product_product_4" model="product.product">
<field name="name">Marketing Management</field>
<field name="categ_id" ref="product_category_6"/>
<field name="detailed_type">course</field>
<field name="list_price">130.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/4-image_1920"/>
</record>
<record id="product_product_5" model="product.product">
<field name="name">Business Management-Basic overview</field>
<field name="categ_id" ref="product_category_6"/>
<field name="detailed_type">course</field>
<field name="list_price">60.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/5-image_1920"/>
</record>
<record id="product_product_6" model="product.product">
<field name="name">Hotel Management </field>
<field name="categ_id" ref="product_category_6"/>
<field name="detailed_type">course</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/6-image_1920"/>
</record>
<record id="product_product_7" model="product.product">
<field name="name">Microsoft Excel - Advanced Excel Formulas &amp; Functions Master</field>
<field name="categ_id" ref="product_category_7"/>
<field name="detailed_type">course</field>
<field name="list_price">40.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/7-image_1920"/>
</record>
<record id="product_product_8" model="product.product">
<field name="name">Learning Python for Data Analysis and Visualisation </field>
<field name="categ_id" ref="product_category_7"/>
<field name="detailed_type">course</field>
<field name="list_price">80.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/8-image_1920"/>
</record>
<record id="product_product_9" model="product.product">
<field name="name">Microsoft Power BI Desktop for Business Intelligence</field>
<field name="categ_id" ref="product_category_8"/>
<field name="detailed_type">course</field>
<field name="list_price">90.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/9-image_1920"/>
</record>
<record id="product_product_10" model="product.product">
<field name="name">Business Analysis Modelling Skills &amp; Techniques Learn</field>
<field name="categ_id" ref="product_category_9"/>
<field name="detailed_type">course</field>
<field name="list_price">80.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/10-image_1920"/>
</record>
<record id="product_product_11" model="product.product">
<field name="name">Fundamentals of Business Analysis</field>
<field name="categ_id" ref="product_category_9"/>
<field name="detailed_type">course</field>
<field name="list_price">90.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/11-image_1920"/>
</record>
<record id="product_product_12" model="product.product">
<field name="name">Communication Skills for Beginners</field>
<field name="categ_id" ref="product_category_10"/>
<field name="detailed_type">course</field>
<field name="list_price">30.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/12-image_1920"/>
</record>
<record id="product_product_13" model="product.product">
<field name="name">The Complete Communication Skills Master Class for Life Communication Skills</field>
<field name="categ_id" ref="product_category_10"/>
<field name="detailed_type">course</field>
<field name="list_price">90.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/13-image_1920"/>
</record>
<record id="product_product_15" model="product.product">
<field name="name">Is Hotel and Hospitality Management a good career</field>
<field name="categ_id" ref="product_category_6"/>
<field name="detailed_type">course</field>
<field name="list_price">120.0</field>
<field name="is_published" eval="True"/>
<field name="purchase_ok" eval="False"/>
<field name="website_ribbon_id" ref="website_sale.sale_ribbon"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/15-image_1920"/>
Expand Down Expand Up @@ -137,7 +124,6 @@
<field name="name">Expertise in Hotel and Hospitality Management</field>
<field name="detailed_type">course</field>
<field name="list_price">100.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/22-image_1920"/>
</record>
<record id="product_product_23" model="product.product">
Expand All @@ -152,12 +138,10 @@
<field name="categ_id" ref="product_category_5"/>
<field name="detailed_type">course</field>
<field name="list_price">120.0</field>
<field name="is_published" eval="True"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/product_product/24-image_1920"/>
</record>
<record id="product_product_25" model="product.product">
<field name="name">Free Product - Become An expert in Digital Marketing(Ebook)</field>
<field name="is_published" eval="True"/>
</record>
<record id="product_product_26" model="product.product">
<field name="name">E-Book</field>
Expand Down
2 changes: 1 addition & 1 deletion learning_management_services/data/slide_answer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
<record id="slide_answer_7" model="slide.answer">
<field name="text_value">Internet</field>
<field name="question_id" ref="slide_question_3"/>
<field name="is_correct" eval="True"/>
</record>
<record id="slide_answer_8" model="slide.answer">
<field name="text_value">Digital</field>
<field name="question_id" ref="slide_question_3"/>
<field name="is_correct" eval="True"/>
</record>
<record id="slide_answer_9" model="slide.answer">
<field name="text_value">Email</field>
Expand Down
24 changes: 2 additions & 22 deletions learning_management_services/data/slide_channel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
<record id="slide_channel_1" model="slide.channel">
<field name="name">Digital Marketing for Beginners</field>
<field name="product_id" ref="product_product_2"/>
<field name="is_published" eval="True"/>
<field name="enroll">payment</field>
<field name="user_id" ref="base.user_admin"/>
<field name="tag_ids" eval="[(6, 0, [ref('website_slides.slide_channel_tag_level_basic'), ref('slide_channel_tag_13'), ref('slide_channel_tag_15'), ref('slide_channel_tag_5')])]"/>
<field name="tag_ids" eval="[(6, 0, [ref('website_slides.slide_channel_tag_level_basic', raise_if_not_found=False), ref('slide_channel_tag_13'), ref('slide_channel_tag_15'), ref('slide_channel_tag_5')])]"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/slide_channel/2-image_1920"/>
<field name="description">
<![CDATA[
Expand All @@ -22,10 +21,9 @@
<record id="slide_channel_2" model="slide.channel">
<field name="name">Become an expert in Digital Marketing</field>
<field name="product_id" ref="product_product_24"/>
<field name="is_published" eval="True"/>
<field name="enroll">payment</field>
<field name="user_id" ref="base.user_admin"/>
<field name="tag_ids" eval="[(6, 0, [ref('website_slides.slide_channel_tag_level_advanced'), ref('slide_channel_tag_15'), ref('slide_channel_tag_5'), ref('slide_channel_tag_13')])]"/>
<field name="tag_ids" eval="[(6, 0, [ref('website_slides.slide_channel_tag_level_advanced', raise_if_not_found=False), ref('slide_channel_tag_15'), ref('slide_channel_tag_5'), ref('slide_channel_tag_13')])]"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/slide_channel/1-image_1920"/>
<field name="prerequisite_channel_ids" eval="[(6, 0, [ref('slide_channel_1')])]"/>
<field name="description">
Expand All @@ -44,7 +42,6 @@
<record id="slide_channel_4" model="slide.channel">
<field name="name">Learn Business Analysis For absolute beginners</field>
<field name="product_id" ref="product_product_11"/>
<field name="is_published" eval="True"/>
<field name="enroll">payment</field>
<field name="user_id" ref="base.user_admin"/>
<field name="tag_ids" eval="[(6, 0, [ref('slide_channel_tag_18'), ref('slide_channel_tag_7'), ref('slide_channel_tag_9'), ref('slide_channel_tag_13')])]"/>
Expand All @@ -60,7 +57,6 @@
<record id="slide_channel_5" model="slide.channel">
<field name="name">Business Analysis Modelling Skills &amp; Techniques Learn</field>
<field name="product_id" ref="product_product_10"/>
<field name="is_published" eval="True"/>
<field name="enroll">payment</field>
<field name="user_id" ref="base.user_admin"/>
<field name="tag_ids" eval="[(6, 0, [ref('slide_channel_tag_17'), ref('slide_channel_tag_7'), ref('slide_channel_tag_9'), ref('slide_channel_tag_13')])]"/>
Expand All @@ -78,7 +74,6 @@
<record id="slide_channel_6" model="slide.channel">
<field name="name">Is Hotel and Hospitality Management a good career</field>
<field name="product_id" ref="product_product_15"/>
<field name="is_published" eval="True"/>
<field name="enroll">payment</field>
<field name="user_id" ref="base.user_admin"/>
<field name="tag_ids" eval="[(6, 0, [ref('slide_channel_tag_11'), ref('slide_channel_tag_9'), ref('slide_channel_tag_13'), ref('slide_channel_tag_15')])]"/>
Expand All @@ -89,19 +84,4 @@
]]>
</field>
</record>
<record id="slide_channel_7" model="slide.channel">
<field name="name">Expertise in Hotel and Hospitality Management</field>
<field name="product_id" ref="product_product_22"/>
<field name="is_published" eval="True"/>
<field name="enroll">payment</field>
<field name="user_id" ref="base.user_admin"/>
<field name="tag_ids" eval="[(6, 0, [ref('slide_channel_tag_13'), ref('slide_channel_tag_15'), ref('slide_channel_tag_9'), ref('slide_channel_tag_11')])]"/>
<field name="image_1920" type="base64" file="learning_management_services/static/src/binary/slide_channel/7-image_1920"/>
<field name="prerequisite_channel_ids" eval="[(6, 0, [ref('slide_channel_6')])]"/>
<field name="description">
<![CDATA[
<p>Join the exciting world of hospitality management, and work in a global-reaching, constantly shifting industry. Sign up for a Bachelor’s degree in Hospitality Management now.</p>
]]>
</field>
</record>
</odoo>

0 comments on commit d41ff22

Please sign in to comment.