bemade-addons/bemade_sports_clinic/data/cron_actions.xml
Denis Durepos ca57ec8f16 [IMP] bemade_sports_clinic: Refactor portal views and enhance treatment notes
- Refactor portal templates to eliminate intra-module template inheritance
- Integrate emergency contacts section into player injuries template
- Add full internal admin views for treatment notes with chatter support
- Fix ORM warning in test_rights by using proper ORM commands
- Update manifest to reflect new functionality (v18.0.1.9.0)

This refactoring improves template stability by removing XPath errors and
provides treatment professionals with better access to emergency contacts
and treatment notes both in portal and backend interfaces.
2025-07-11 21:47:50 -04:00

30 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Scheduled action to handle pending player removals -->
<record id="ir_cron_handle_pending_removals" model="ir.cron">
<field name="name">Handle Pending Player Removals</field>
<field name="model_id" ref="model_sports_patient"/>
<field name="state">code</field>
<field name="code">model._cron_handle_pending_removals()</field>
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
<field name="nextcall">2025-06-27 00:00:00</field>
<field name="active" eval="True"/>
<field name="user_id" ref="base.user_root"/>
<field name="priority">90</field>
</record>
<!-- Scheduled action to archive players with no teams -->
<record id="ir_cron_archive_players_without_teams" model="ir.cron">
<field name="name">Archive Players Without Teams</field>
<field name="model_id" ref="model_sports_patient"/>
<field name="state">code</field>
<field name="code">model._cron_archive_players_without_teams()</field>
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
<field name="nextcall">2025-06-27 00:05:00</field>
<field name="active" eval="True"/>
<field name="user_id" ref="base.user_root"/>
<field name="priority">100</field>
</record>
</odoo>