From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/survey/data/ir_actions_data.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 addons/survey/data/ir_actions_data.xml (limited to 'addons/survey/data/ir_actions_data.xml') diff --git a/addons/survey/data/ir_actions_data.xml b/addons/survey/data/ir_actions_data.xml new file mode 100644 index 00000000..7e0473fd --- /dev/null +++ b/addons/survey/data/ir_actions_data.xml @@ -0,0 +1,16 @@ + + + + + Survey: Clean test answers + ir.actions.server + + + code + +if records: + env['survey.user_input'].search([('survey_id', 'in', records.ids), ('test_entry', '=', 'True')]).unlink() + + + + \ No newline at end of file -- cgit v1.2.3