Skip to content

Commit

Permalink
[MIG] web_widget_plotly_chart: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robyf70 committed Jun 7, 2023
1 parent 2bc689d commit 87294b5
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 29 deletions.
14 changes: 7 additions & 7 deletions web_widget_plotly_chart/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ Web Widget Plotly
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/12.0/web_widget_plotly_chart
:target: https://github.com/OCA/web/tree/14.0/web_widget_plotly_chart
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_plotly_chart
:target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_widget_plotly_chart
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/162/12.0
:target: https://runbot.odoo-community.org/runbot/162/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module add the possibility to insert Plotly charts into Odoo standard views.

.. image:: https://raw.githubusercontent.com/OCA/web/12.0/web_widget_plotly_chart/static/description/example.png
.. image:: https://raw.githubusercontent.com/OCA/web/14.0/web_widget_plotly_chart/static/description/example.png
:alt: Plotly Chart inserted into an Odoo view
:width: 600 px

Expand All @@ -50,7 +50,7 @@ Installation

You need to install the python plotly library::

pip3 install plotly==4.1.0
pip3 install plotly==5.4.0

Usage
=====
Expand Down Expand Up @@ -86,7 +86,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_plotly_chart%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_plotly_chart%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand Down Expand Up @@ -125,6 +125,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/web <https://github.com/OCA/web/tree/12.0/web_widget_plotly_chart>`_ project on GitHub.
This module is part of the `OCA/web <https://github.com/OCA/web/tree/14.0/web_widget_plotly_chart>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 3 additions & 3 deletions web_widget_plotly_chart/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "Web Widget Plotly",
"summary": """Allow to draw plotly charts.""",
"author": "LevelPrime srl, " "Odoo Community Association (OCA)",
"author": "LevelPrime srl, Odoo Community Association (OCA)",
"maintainers": ["robyf70"],
"website": "https://github.com/OCA/web",
"category": "Web",
"version": "14.0.1.0.0",
Expand All @@ -10,8 +11,7 @@
"views/web_widget_plotly_chart.xml",
],
"external_dependencies": {
"python": ["plotly"],
"python": ["plotly==5.4.0"],
},
"auto_install": False,
"license": "LGPL-3",
}
2 changes: 1 addition & 1 deletion web_widget_plotly_chart/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
You need to install the python plotly library::

pip3 install plotly==4.1.0
pip3 install plotly==5.4.0
12 changes: 6 additions & 6 deletions web_widget_plotly_chart/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
<title>Web Widget Plotly</title>
<style type="text/css">

Expand Down Expand Up @@ -367,9 +367,9 @@ <h1 class="title">Web Widget Plotly</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/web/tree/12.0/web_widget_plotly_chart"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_plotly_chart"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/162/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/web/tree/14.0/web_widget_plotly_chart"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_widget_plotly_chart"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/162/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module add the possibility to insert Plotly charts into Odoo standard views.</p>
<img alt="Plotly Chart inserted into an Odoo view" src="https://raw.githubusercontent.com/OCA/web/12.0/web_widget_plotly_chart/static/description/example.png" style="width: 600px;" />
<img alt="Plotly Chart inserted into an Odoo view" src="https://raw.githubusercontent.com/OCA/web/14.0/web_widget_plotly_chart/static/description/example.png" style="width: 600px;" />
<p><a class="reference external" href="https://plot.ly/">Plotly</a> is a Python interactive visualization
library built on top of d3.js and stack.gl, plotly.js is a high-level,
declarative charting library. plotly.js ships with over 40 chart types,
Expand All @@ -395,7 +395,7 @@ <h1 class="title">Web Widget Plotly</h1>
<h1><a class="toc-backref" href="#id1">Installation</a></h1>
<p>You need to install the python plotly library:</p>
<pre class="literal-block">
pip3 install plotly==4.1.0
pip3 install plotly==5.4.0
</pre>
</div>
<div class="section" id="usage">
Expand Down Expand Up @@ -435,7 +435,7 @@ <h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_widget_plotly_chart%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_widget_plotly_chart%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -469,7 +469,7 @@ <h2><a class="toc-backref" href="#id8">Maintainers</a></h2>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/12.0/web_widget_plotly_chart">OCA/web</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/14.0/web_widget_plotly_chart">OCA/web</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down

This file was deleted.

65 changes: 65 additions & 0 deletions web_widget_plotly_chart/static/src/lib/plotly/plotly-2.7.0.min.js

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions web_widget_plotly_chart/views/web_widget_plotly_chart.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="assets_backend" inherit_id="web.assets_backend">
<xpath expr="//script[last()]" position="after">

<template
id="assets_backend"
name="web_widget_plotly_chart assets"
inherit_id="web.assets_backend"
>
<xpath expr="." position="inside">
<!-- Library -->
<script
type="text/javascript"
src="/web_widget_plotly_chart/static/lib/plotly/plotly-latest.min.js"
src="/web_widget_plotly_chart/static/src/lib/plotly/plotly-2.7.0.min.js"
/>

<!-- Widget -->
<script
type="text/javascript"
src="/web_widget_plotly_chart/static/src/js/widget_plotly.js"
/>

</xpath>
</template>
</odoo>

0 comments on commit 87294b5

Please sign in to comment.