""" TITLE: "Broadcast Promo Message" DB_TRIGGERS: - name: ON_SYNC_ORDER_CONFIRMED model: sync.order trigger: on_write trigger_fields: state filter_domain: "[('sync_task_id', '=', {TASK_ID}), ('state', '=', 'open')]" """ def handle_db(records): for sync_order in records: LIB.AI.notify(sync_order.partner_ids, sync_order.body) sync_order.action_done()