Program Manager#

The program manager determines which registrants/groups are included in the program.

odoo.addons.g2p_programs.models.managers.program_manager provides the class BaseProgramManager define the interface for this manager. DefaultProgramManager is the default implementation.

class odoo.addons.g2p_programs.models.managers.program_manager.BaseProgramManager[source]#
enroll_eligible_registrants(state=None)[source]#

This method is used to enroll the beneficiaries in a program. Returns:

bool: True if the beneficiaries were enrolled, False otherwise.

last_cycle()[source]#

Returns the last cycle of the program Returns:

cycle: the last cycle of the program

mark_enroll_eligible_as_done()[source]#

Complete the enrollment of eligible beneficiaries. Base mark_enroll_eligible_as_done(). This is executed when all the jobs are completed. Post a message in the chatter. :return:

new_cycle()[source]#

Create the next cycle of the program Returns:

cycle: the newly created cycle

class odoo.addons.g2p_programs.models.managers.program_manager.BaseProgramManager[source]#
enroll_eligible_registrants(state=None)[source]#

This method is used to enroll the beneficiaries in a program. Returns:

bool: True if the beneficiaries were enrolled, False otherwise.

last_cycle()[source]#

Returns the last cycle of the program Returns:

cycle: the last cycle of the program

mark_enroll_eligible_as_done()[source]#

Complete the enrollment of eligible beneficiaries. Base mark_enroll_eligible_as_done(). This is executed when all the jobs are completed. Post a message in the chatter. :return:

new_cycle()[source]#

Create the next cycle of the program Returns:

cycle: the newly created cycle