From d2ef14d209b4e9c8286b7c4916f58100089b2c5c Mon Sep 17 00:00:00 2001
From: Carlos Roca
Date: Wed, 7 Aug 2024 07:09:21 +0200
Subject: [PATCH] [IMP] web_widget_numeric_step: Add demo data to test the
module
---
web_widget_numeric_step/README.rst | 6 ++++++
web_widget_numeric_step/__manifest__.py | 3 ++-
web_widget_numeric_step/demo/ir_cron.xml | 13 +++++++++++++
web_widget_numeric_step/readme/USAGE.md | 6 ++++++
.../static/description/index.html | 4 ++++
5 files changed, 31 insertions(+), 1 deletion(-)
create mode 100644 web_widget_numeric_step/demo/ir_cron.xml
diff --git a/web_widget_numeric_step/README.rst b/web_widget_numeric_step/README.rst
index 97c1bf160..8541f11c0 100644
--- a/web_widget_numeric_step/README.rst
+++ b/web_widget_numeric_step/README.rst
@@ -83,6 +83,12 @@ Iteration with 10 step, max limit 15, placeholder with onchange
|image3|
+**Demo**
+
+You can test the feature by going to Settings > Technical > Scheduled
+Actions. The field "Execute Every" is configured to use the widget with
+2 step, min to 0 and max to 40.
+
.. |image1| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_widget_numeric_step/static/description/add_two_buttons.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_widget_numeric_step/static/description/step0,25andlimits.gif
.. |image3| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_widget_numeric_step/static/description/step10_limit15_placeholder117_with_onchange.gif
diff --git a/web_widget_numeric_step/__manifest__.py b/web_widget_numeric_step/__manifest__.py
index 950d3e718..63555bc54 100644
--- a/web_widget_numeric_step/__manifest__.py
+++ b/web_widget_numeric_step/__manifest__.py
@@ -6,10 +6,11 @@
"name": "Web Widget Numeric Step",
"category": "web",
"version": "17.0.1.0.0",
- "author": "GRAP, Tecnativa, " "Odoo Community Association (OCA)",
+ "author": "GRAP, Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/web",
"depends": ["web"],
+ "demo": ["demo/ir_cron.xml"],
"assets": {
"web.assets_backend": [
"web_widget_numeric_step/static/src/*",
diff --git a/web_widget_numeric_step/demo/ir_cron.xml b/web_widget_numeric_step/demo/ir_cron.xml
new file mode 100644
index 000000000..1a4f7bdc4
--- /dev/null
+++ b/web_widget_numeric_step/demo/ir_cron.xml
@@ -0,0 +1,13 @@
+
+
+
+ ir.cron
+
+
+
+ numeric_step
+ {'step': 2, 'min': 0, 'max': 40}
+
+
+
+
diff --git a/web_widget_numeric_step/readme/USAGE.md b/web_widget_numeric_step/readme/USAGE.md
index 67b4bfab2..e95f2e4dc 100644
--- a/web_widget_numeric_step/readme/USAGE.md
+++ b/web_widget_numeric_step/readme/USAGE.md
@@ -36,3 +36,9 @@ mouse.
Iteration with 10 step, max limit 15, placeholder with onchange

+
+**Demo**
+
+You can test the feature by going to Settings > Technical > Scheduled Actions. The
+field "Execute Every" is configured to use the widget with 2 step, min to 0 and max
+to 40.
\ No newline at end of file
diff --git a/web_widget_numeric_step/static/description/index.html b/web_widget_numeric_step/static/description/index.html
index d2fd91539..11aa54e48 100644
--- a/web_widget_numeric_step/static/description/index.html
+++ b/web_widget_numeric_step/static/description/index.html
@@ -418,6 +418,10 @@ mouse.

Iteration with 10 step, max limit 15, placeholder with onchange

+Demo
+You can test the feature by going to Settings > Technical > Scheduled
+Actions. The field “Execute Every” is configured to use the widget with
+2 step, min to 0 and max to 40.