Skip to content

Commit e6e2093

Browse files
committed
[IMP] web_widget_dropdown_dynamic: Change license
Change license to LGPL-3 in order to be able to use this module with other modules with non-AGPL-3 licenses.
1 parent 2bcb2bf commit e6e2093

File tree

4 files changed

+49
-47
lines changed

4 files changed

+49
-47
lines changed

web_widget_dropdown_dynamic/README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Dynamic Dropdown Widget
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1414
:target: https://odoo-community.org/page/development-status
1515
:alt: Beta
16-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17-
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18-
:alt: License: AGPL-3
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18+
:alt: License: LGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
2020
:target: https://github.com/OCA/web/tree/16.0/web_widget_dropdown_dynamic
2121
:alt: OCA/web
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
1+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/LGPL.html).

web_widget_dropdown_dynamic/__manifest__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
22
# Copyright 2020 CorporateHub (https://corporatehub.eu)
3-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
3+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/LGPL.html).
44
{
55
"name": "Dynamic Dropdown Widget",
66
"summary": "This module adds support for dynamic dropdown widget",
77
"category": "Web",
88
"version": "16.0.1.0.0",
9-
"license": "AGPL-3",
9+
"license": "LGPL-3",
1010
"author": "CorporateHub, Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/web",
1212
"depends": ["web"],

web_widget_dropdown_dynamic/static/description/index.html

+43-41
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
54
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
5+
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
76
<title>Dynamic Dropdown Widget</title>
87
<style type="text/css">
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
17-
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
17+
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
1919
*/
2020

@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -369,7 +369,7 @@ <h1 class="title">Dynamic Dropdown Widget</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:e2b8eb236b4dc206f3a4ab9b5932f86c2e46c33bdac31c385725384f3fe970e3
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/web/tree/16.0/web_widget_dropdown_dynamic"><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-16-0/web-16-0-web_widget_dropdown_dynamic"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/OCA/web/tree/16.0/web_widget_dropdown_dynamic"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_dropdown_dynamic"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>Dynamic dropdown widget that supports resolving options from backend of:</p>
374374
<blockquote>
375375
<ul class="simple">
@@ -384,61 +384,61 @@ <h1 class="title">Dynamic Dropdown Widget</h1>
384384
<p><strong>Table of contents</strong></p>
385385
<div class="contents local topic" id="contents">
386386
<ul class="simple">
387-
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
388-
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
389-
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
390-
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
391-
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
392-
<li><a class="reference internal" href="#other-credits" id="id6">Other credits</a></li>
393-
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li>
387+
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
388+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
389+
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
390+
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
391+
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
392+
<li><a class="reference internal" href="#other-credits" id="toc-entry-6">Other credits</a></li>
393+
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
394394
</ul>
395395
</li>
396396
</ul>
397397
</div>
398398
<div class="section" id="usage">
399-
<h1><a class="toc-backref" href="#id1">Usage</a></h1>
399+
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
400400
<pre class="code python literal-block">
401-
<span class="nd">&#64;api</span><span class="o">.</span><span class="n">model</span>
402-
<span class="k">def</span> <span class="nf">method_name</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
403-
<span class="n">values</span> <span class="o">=</span> <span class="p">[</span>
404-
<span class="p">(</span><span class="s1">'value_a'</span><span class="p">,</span> <span class="s1">'Title A'</span><span class="p">),</span>
405-
<span class="p">]</span>
406-
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">env</span><span class="o">.</span><span class="n">context</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">'depending_on'</span><span class="p">)</span> <span class="o">==</span> <span class="kc">True</span><span class="p">:</span>
407-
<span class="n">values</span> <span class="o">+=</span> <span class="p">[</span>
408-
<span class="p">(</span><span class="s1">'value_b'</span><span class="p">,</span> <span class="s1">'Title B'</span><span class="p">),</span>
409-
<span class="p">]</span>
410-
<span class="k">return</span> <span class="n">values</span>
401+
<span class="nd">&#64;api</span><span class="o">.</span><span class="n">model</span><span class="w">
402+
</span><span class="k">def</span> <span class="nf">method_name</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span><span class="w">
403+
</span> <span class="n">values</span> <span class="o">=</span> <span class="p">[</span><span class="w">
404+
</span> <span class="p">(</span><span class="s1">'value_a'</span><span class="p">,</span> <span class="s1">'Title A'</span><span class="p">),</span><span class="w">
405+
</span> <span class="p">]</span><span class="w">
406+
</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">env</span><span class="o">.</span><span class="n">context</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">'depending_on'</span><span class="p">)</span> <span class="o">==</span> <span class="kc">True</span><span class="p">:</span><span class="w">
407+
</span> <span class="n">values</span> <span class="o">+=</span> <span class="p">[</span><span class="w">
408+
</span> <span class="p">(</span><span class="s1">'value_b'</span><span class="p">,</span> <span class="s1">'Title B'</span><span class="p">),</span><span class="w">
409+
</span> <span class="p">]</span><span class="w">
410+
</span> <span class="k">return</span> <span class="n">values</span>
411411
</pre>
412412
<pre class="code xml literal-block">
413-
<span class="nt">&lt;field</span>
414-
<span class="na">name=</span><span class="s">&quot;other_field&quot;</span>
415-
<span class="nt">/&gt;</span>
416-
<span class="nt">&lt;field</span>
417-
<span class="na">name=</span><span class="s">&quot;char_field&quot;</span>
418-
<span class="na">widget=</span><span class="s">&quot;dynamic_dropdown&quot;</span>
419-
<span class="na">options=</span><span class="s">&quot;{'values':'method_name'}&quot;</span>
420-
<span class="na">context=</span><span class="s">&quot;{'depending_on': other_field}&quot;</span>
421-
<span class="nt">/&gt;</span>
413+
<span class="nt">&lt;field</span><span class="w">
414+
</span><span class="na">name=</span><span class="s">&quot;other_field&quot;</span><span class="w">
415+
</span><span class="nt">/&gt;</span><span class="w">
416+
</span><span class="nt">&lt;field</span><span class="w">
417+
</span><span class="na">name=</span><span class="s">&quot;char_field&quot;</span><span class="w">
418+
</span><span class="na">widget=</span><span class="s">&quot;dynamic_dropdown&quot;</span><span class="w">
419+
</span><span class="na">options=</span><span class="s">&quot;{'values':'method_name'}&quot;</span><span class="w">
420+
</span><span class="na">context=</span><span class="s">&quot;{'depending_on': other_field}&quot;</span><span class="w">
421+
</span><span class="nt">/&gt;</span>
422422
</pre>
423423
</div>
424424
<div class="section" id="bug-tracker">
425-
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
425+
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
426426
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>.
427427
In case of trouble, please check there if your issue has already been reported.
428428
If you spotted it first, help us to smash it by providing a detailed and welcomed
429429
<a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_widget_dropdown_dynamic%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
430430
<p>Do not contact contributors directly about support or help with technical issues.</p>
431431
</div>
432432
<div class="section" id="credits">
433-
<h1><a class="toc-backref" href="#id3">Credits</a></h1>
433+
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
434434
<div class="section" id="authors">
435-
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
435+
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
436436
<ul class="simple">
437437
<li>CorporateHub</li>
438438
</ul>
439439
</div>
440440
<div class="section" id="contributors">
441-
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
441+
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
442442
<ul>
443443
<li><p class="first"><a class="reference external" href="https://corporatehub.eu/">CorporateHub</a></p>
444444
<ul class="simple">
@@ -462,13 +462,15 @@ <h2><a class="toc-backref" href="#id5">Contributors</a></h2>
462462
</ul>
463463
</div>
464464
<div class="section" id="other-credits">
465-
<h2><a class="toc-backref" href="#id6">Other credits</a></h2>
465+
<h2><a class="toc-backref" href="#toc-entry-6">Other credits</a></h2>
466466
<p>The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp</p>
467467
</div>
468468
<div class="section" id="maintainers">
469-
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
469+
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
470470
<p>This module is maintained by the OCA.</p>
471-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
471+
<a class="reference external image-reference" href="https://odoo-community.org">
472+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
473+
</a>
472474
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
473475
mission is to support the collaborative development of Odoo features and
474476
promote its widespread use.</p>

0 commit comments

Comments
 (0)