fix(addon): bot presence — fix network isolation, computed field write, and timer gap
- docker-compose.odoo.yml: add activeblue-net so Odoo can reach activeblue-agent by hostname; fix addons volume mount (was odoo_module) - ab_ai_bot.py: bus.presence.status is computed — write only last_poll and last_presence; set last_poll 90s ahead when online so the bot stays green across the 60s cron cycle (DISCONNECTION_TIMER=30s) - ir_cron.xml: reduce ping interval to 20s (uses Odoo 18 seconds type) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
<field name="model_id" ref="model_ab_ai_bot"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">model.cron_ping_all()</field>
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">minutes</field>
|
||||
<field name="interval_number">20</field>
|
||||
<field name="interval_type">seconds</field>
|
||||
<field name="active">True</field>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user