Skip to content

Commit

Permalink
[IMP] web_widget_numeric_step: Add demo data to test the module
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosRoca13 committed Aug 7, 2024
1 parent 8ea58d8 commit f2dc559
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
6 changes: 6 additions & 0 deletions web_widget_numeric_step/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion web_widget_numeric_step/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/*",
Expand Down
13 changes: 13 additions & 0 deletions web_widget_numeric_step/demo/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="ir_cron_view_form" model="ir.ui.view">
<field name="model">ir.cron</field>
<field name="inherit_id" ref="base.ir_cron_view_form" />
<field name="arch" type="xml">
<field name="interval_number" position="attributes">
<attribute name="widget">numeric_step</attribute>
<attribute name="options">{'step': 2, 'min': 0, 'max': 40}</attribute>
</field>
</field>
</record>
</odoo>
6 changes: 6 additions & 0 deletions web_widget_numeric_step/readme/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ mouse.
Iteration with 10 step, max limit 15, placeholder with onchange

![](../static/description/step10_limit15_placeholder117_with_onchange.gif)

**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.
4 changes: 4 additions & 0 deletions web_widget_numeric_step/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p><img alt="image2" src="https://raw.githubusercontent.com/OCA/web/17.0/web_widget_numeric_step/static/description/step0,25andlimits.gif" /></p>
<p>Iteration with 10 step, max limit 15, placeholder with onchange</p>
<p><img alt="image3" src="https://raw.githubusercontent.com/OCA/web/17.0/web_widget_numeric_step/static/description/step10_limit15_placeholder117_with_onchange.gif" /></p>
<p><strong>Demo</strong></p>
<p>You can test the feature by going to Settings &gt; Technical &gt; Scheduled
Actions. The field “Execute Every” is configured to use the widget with
2 step, min to 0 and max to 40.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
Expand Down

0 comments on commit f2dc559

Please sign in to comment.