Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][ADD] demo_academic: add new module #188

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions academic/demo/res_partner_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
<record id="res_partner_los_arroyos" model="res.partner">
<field name="name">Colegio Los Arroyos</field>
<field name="is_company" eval="1" />
<field name="company_id" eval="False"/>
</record>

<record id="res_partner_los_molinos" model="res.partner">
<field name="name">Colegio Los Molinos</field>
<field name="is_company" eval="1" />
<field name="company_id" eval="False"/>
</record>

<record id="res_partner_ignacio_rodriguez" model="res.partner">
Expand Down
70 changes: 70 additions & 0 deletions demo_academic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
.. |company| replace:: ADHOC SA

.. |company_logo| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-logo.png
:alt: ADHOC SA
:target: https://www.adhoc.com.ar

.. |icon| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-icon.png

.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

=============
Demo Academic
=============



Installation
============

To install this module, you need to:

#. Only need to install the module

Configuration
=============

To configure this module, you need to:

#. Nothing to configure

Usage
=====

To use this module, you need to:

#. Nothing to do

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: http://runbot.adhoc.com.ar/

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/ingadhoc/{project_repo}/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.

Credits
=======

Images
------

* |company| |icon|

Contributors
------------

Maintainer
----------

|company_logo|

This module is maintained by the |company|.

To contribute to this module, please visit https://www.adhoc.com.ar.
3 changes: 3 additions & 0 deletions demo_academic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# © 2016 ADHOC SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import demo_py
32 changes: 32 additions & 0 deletions demo_academic/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# © 2016 ADHOC SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Demo Academic',
'version': "18.0.1.0.0",
'sequence': 14,
'summary': '',
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
'depends': [
'academic_sale_subscription',
'sale_subscription_loyalty_ux',
'sale_loyalty_ux',
],
'demo': [
'demo/res_partner_category.xml',
'demo/res_partner.xml',
'demo/res.partner.link.csv',
'demo/product_template.xml',
'demo/product_pricelist.xml',
'demo/academic.section.csv',
'demo/academic.level.csv',
'demo/academic_group.xml',
'demo/res_users.xml',
'demo/loyalty_program.xml',
'demo/init_demo_py.xml',
],
'installable': True,
'auto_install': False,
'application': False,
}
5 changes: 5 additions & 0 deletions demo_academic/demo/academic.level.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
id,name,section_id/id
academic_level_pink_room,Pink Room,academic_section_initial_level
academic_level_blue_room,Blue Room,academic_section_initial_level
academic_level_1st_year_secondary,1st Year Secondary Level,academic_section_secondary_level
academic_level_1st_grade_primary,1st Grade Primary Level,academic_section_primary_level
4 changes: 4 additions & 0 deletions demo_academic/demo/academic.section.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
id,name
academic_section_initial_level,Initial Level
academic_section_primary_level,Primary Level
academic_section_secondary_level,Secondary Level
30 changes: 30 additions & 0 deletions demo_academic/demo/academic_group.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="academic_group_initial_pink" model="academic.group">
<field name="level_id" ref="academic_level_pink_room"/>
<field name="division_id" ref="academic.academic_division_1"/>
<field name="company_id" ref="academic.res_company_los_arroyos"/>
<field name="year" eval="str(datetime.now().year)"/>
</record>

<record id="academic_group_initial_blue" model="academic.group">
<field name="level_id" ref="academic_level_blue_room"/>
<field name="division_id" ref="academic.academic_division_2"/>
<field name="company_id" ref="academic.res_company_los_molinos"/>
<field name="year" eval="str(datetime.now().year)"/>
</record>

<record id="academic_group_secondary_first_year" model="academic.group">
<field name="level_id" ref="academic_level_1st_year_secondary"/>
<field name="division_id" ref="academic.academic_division_3"/>
<field name="company_id" ref="base.main_company"/>
<field name="year" eval="str(datetime.now().year)"/>
</record>

<record id="academic_group_primary_first_grade" model="academic.group">
<field name="level_id" ref="academic_level_1st_grade_primary"/>
<field name="division_id" ref="academic.academic_division_1"/>
<field name="company_id" ref="academic.res_company_los_arroyos"/>
<field name="year" eval="str(datetime.now().year)"/>
</record>
</odoo>
8 changes: 8 additions & 0 deletions demo_academic/demo/init_demo_py.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<function model="base.language.install" name="_init_demo_base"/>
<function model="sale.order" name="_init_demo_base"/>
<function model="sale.order.template" name="_init_demo_base"/>
<function model="loyalty.reward" name="_init_demo_base"/>
<function model="product.template" name="_init_demo_base"/>
</odoo>
10 changes: 10 additions & 0 deletions demo_academic/demo/loyalty_program.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<odoo noupdate="1">
<record id="loyalty_program_discount_sibling" model="loyalty.program">
<field name="name">Discount 10% for Sibling</field>
<field name="sale_domain" eval="[( 'partner_id.category_id', '=', ref('demo_academic.partner_category_discount_sibling') )]"/>
</record>
<record id="loyalty_program_discount_official" model="loyalty.program">
<field name="name">Discount 20% for Official's Child</field>
<field name="sale_domain" eval="[( 'partner_id.category_id', '=', ref('demo_academic.partner_category_discount_official') )]"/>
</record>
</odoo>
6 changes: 6 additions & 0 deletions demo_academic/demo/loyalty_rule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<odoo noupdate="1">
<record id="academic_loyalty_rule" model="loyalty.rule">
<field name="minimum_amount">0</field>
<field name="product_domain">[("recurring_invoice", "=", True)]</field>
</record>
</odoo>
12 changes: 12 additions & 0 deletions demo_academic/demo/product_pricelist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="product_pricelist_los_molinos" model="product.pricelist">
<field name="name">Los Molinos Pricelist</field>
</record>
<record id="product_pricelist_los_arroyos" model="product.pricelist">
<field name="name">Los Arroyos Pricelist</field>
</record>
<record id="product_pricelist_apdes" model="product.pricelist">
<field name="name">APDES Pricelist</field>
</record>
</odoo>
108 changes: 108 additions & 0 deletions demo_academic/demo/product_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="product_template_enrollment_pink_room" model="product.template">
<field name="name">Enrollment Pink Room</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">5000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_enrollment_blue_room" model="product.template">
<field name="name">Enrollment Blue Room</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">5000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_tuition_pink_room" model="product.template">
<field name="name">Tuition Pink Room</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">10000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_tuition_blue_room" model="product.template">
<field name="name">Tuition Blue Room</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">10000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_enrollment_primary_level" model="product.template">
<field name="name">Enrollment Primary Level</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">7000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_enrollment_secondary_level" model="product.template">
<field name="name">Enrollment Secondary Level</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">7500.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_tuition_primary_level" model="product.template">
<field name="name">Tuition Primary Level</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">12000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_tuition_secondary_level" model="product.template">
<field name="name">Tuition Secondary Level</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">13000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_interest_due_debt" model="product.template">
<field name="name">Interest Due Debt</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">0.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_late_payment_fee" model="product.template">
<field name="name">Late Payment Fee</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">500.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_extracurricular_sports" model="product.template">
<field name="name">Extracurricular Sports</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">3000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_extracurricular_english" model="product.template">
<field name="name">Extracurricular English</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">4000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_extracurricular_swimming" model="product.template">
<field name="name">Extracurricular Swimming</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">3500.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_official_discount" model="product.template">
<field name="name">Discount for Official's Child</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">-2000.0</field>
<field name="invoice_policy">order</field>
</record>
<record id="product_template_discount_sibling" model="product.template">
<field name="name">Discount for Sibling</field>
<field name="detailed_type">service</field>
<field name="recurring_invoice" eval="True"/>
<field name="list_price">-1500.0</field>
<field name="invoice_policy">order</field>
</record>
</odoo>
21 changes: 21 additions & 0 deletions demo_academic/demo/res.partner.link.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
id,student_id/id,partner_id/id,relationship_id/id,role_ids/id,note
res_partner_link_family_1_mother_1,res_partner_family_1,res_partner_mother_1,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role",
res_partner_link_family_1_father_1,res_partner_family_1,res_partner_father_1,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_2_mother_2,res_partner_family_2,res_partner_mother_2,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_2_father_2,res_partner_family_2,res_partner_father_2,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role",
res_partner_link_family_3_mother_3,res_partner_family_3,res_partner_mother_3,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_3_father_3,res_partner_family_3,res_partner_father_3,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role",
res_partner_link_family_4_mother_4,res_partner_family_4,res_partner_mother_4,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_4_father_4,res_partner_family_4,res_partner_father_4,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role",
res_partner_link_family_5_mother_5,res_partner_family_5,res_partner_mother_5,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_5_father_5,res_partner_family_5,res_partner_father_5,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role",
res_partner_link_family_6_mother_6,res_partner_family_6,res_partner_mother_6,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_6_father_6,res_partner_family_6,res_partner_father_6,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role",
res_partner_link_family_7_mother_7,res_partner_family_7,res_partner_mother_7,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_7_father_7,res_partner_family_7,res_partner_father_7,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role",
res_partner_link_family_8_mother_8,res_partner_family_8,res_partner_mother_8,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_8_father_8,res_partner_family_8,res_partner_father_8,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role",
res_partner_link_family_9_mother_9,res_partner_family_9,res_partner_mother_9,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_9_father_9,res_partner_family_9,res_partner_father_9,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role",
res_partner_link_family_10_mother_10,res_partner_family_10,res_partner_mother_10,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role,academic.paying_role",
res_partner_link_family_10_father_10,res_partner_family_10,res_partner_father_10,academic.parent_relationship,"academic.emergency_contact_role,academic.withdraw_role"
Loading