mirror of https://github.com/OCA/web.git
[FIX] web_timeline: Wrap fields_get arg into a list
By contract the first argument of the `fields_get` method is supposed to be a list. Before this fix, `web_timeline` would call `fields_get` with a string instead of a list. Fortunately in case only 1 field is being grouped, this worked as Odoo does an `x in y` comparison in its `fields_get` implementation, which does pass in a simple `"project_id" in "project_id"` case. But that call remains invalid and can break when `fields_get` has been tweaked by other modules.pull/2969/head
parent
099f14ccc6
commit
210f9229bf
|
@ -7,7 +7,7 @@ Web timeline
|
||||||
!! This file is generated by oca-gen-addon-readme !!
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
!! changes will be overwritten. !!
|
!! changes will be overwritten. !!
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
!! source digest: sha256:83336483b07a21cb0d427e4961bc70735ff1f8d7200f4faf488c3b509e683d6c
|
!! source digest: sha256:c98349a3ecce77055de31e35bcfed7720875dda935b668df3538607d27786f16
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
||||||
|
@ -224,10 +224,16 @@ Contributors
|
||||||
* Pedro M. Baeza
|
* Pedro M. Baeza
|
||||||
* Alexandre Díaz
|
* Alexandre Díaz
|
||||||
* César A. Sánchez
|
* César A. Sánchez
|
||||||
|
|
||||||
* `Onestein <https://www.onestein.nl>`_:
|
* `Onestein <https://www.onestein.nl>`_:
|
||||||
|
|
||||||
* Dennis Sluijk <d.sluijk@onestein.nl>
|
* Dennis Sluijk <d.sluijk@onestein.nl>
|
||||||
* Anjeel Haria
|
* Anjeel Haria
|
||||||
|
|
||||||
|
* `XCG Consulting <https://xcg-consulting.fr>`_:
|
||||||
|
|
||||||
|
* Houzéfa Abbasbhay
|
||||||
|
|
||||||
Maintainers
|
Maintainers
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
"name": "Web timeline",
|
"name": "Web timeline",
|
||||||
"summary": "Interactive visualization chart to show events in time",
|
"summary": "Interactive visualization chart to show events in time",
|
||||||
"version": "16.0.1.0.3",
|
"version": "16.0.1.0.4",
|
||||||
"development_status": "Production/Stable",
|
"development_status": "Production/Stable",
|
||||||
"author": "ACSONE SA/NV, "
|
"author": "ACSONE SA/NV, "
|
||||||
"Tecnativa, "
|
"Tecnativa, "
|
||||||
|
|
|
@ -10,6 +10,12 @@
|
||||||
* Pedro M. Baeza
|
* Pedro M. Baeza
|
||||||
* Alexandre Díaz
|
* Alexandre Díaz
|
||||||
* César A. Sánchez
|
* César A. Sánchez
|
||||||
|
|
||||||
* `Onestein <https://www.onestein.nl>`_:
|
* `Onestein <https://www.onestein.nl>`_:
|
||||||
|
|
||||||
* Dennis Sluijk <d.sluijk@onestein.nl>
|
* Dennis Sluijk <d.sluijk@onestein.nl>
|
||||||
* Anjeel Haria
|
* Anjeel Haria
|
||||||
|
|
||||||
|
* `XCG Consulting <https://xcg-consulting.fr>`_:
|
||||||
|
|
||||||
|
* Houzéfa Abbasbhay
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
@ -367,7 +366,7 @@ ul.auto-toc {
|
||||||
!! This file is generated by oca-gen-addon-readme !!
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
!! changes will be overwritten. !!
|
!! changes will be overwritten. !!
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
!! source digest: sha256:83336483b07a21cb0d427e4961bc70735ff1f8d7200f4faf488c3b509e683d6c
|
!! source digest: sha256:c98349a3ecce77055de31e35bcfed7720875dda935b668df3538607d27786f16
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" 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 image-reference" href="https://github.com/OCA/web/tree/16.0/web_timeline"><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_timeline"><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&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" 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 image-reference" href="https://github.com/OCA/web/tree/16.0/web_timeline"><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_timeline"><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&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||||
<p>Define a new view displaying events in an interactive visualization chart.</p>
|
<p>Define a new view displaying events in an interactive visualization chart.</p>
|
||||||
|
@ -597,14 +596,14 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||||
<li>César A. Sánchez</li>
|
<li>César A. Sánchez</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><dl class="first docutils">
|
<li><a class="reference external" href="https://www.onestein.nl">Onestein</a>:<ul>
|
||||||
<dt><a class="reference external" href="https://www.onestein.nl">Onestein</a>:</dt>
|
|
||||||
<dd><ul class="first last">
|
|
||||||
<li>Dennis Sluijk <<a class="reference external" href="mailto:d.sluijk@onestein.nl">d.sluijk@onestein.nl</a>></li>
|
<li>Dennis Sluijk <<a class="reference external" href="mailto:d.sluijk@onestein.nl">d.sluijk@onestein.nl</a>></li>
|
||||||
<li>Anjeel Haria</li>
|
<li>Anjeel Haria</li>
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</li>
|
||||||
</dl>
|
<li><a class="reference external" href="https://xcg-consulting.fr">XCG Consulting</a>:<ul>
|
||||||
|
<li>Houzéfa Abbasbhay</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -399,7 +399,7 @@ odoo.define("web_timeline.TimelineRenderer", function (require) {
|
||||||
await this._rpc({
|
await this._rpc({
|
||||||
model: this.modelName,
|
model: this.modelName,
|
||||||
method: "fields_get",
|
method: "fields_get",
|
||||||
args: [grouped_field],
|
args: [[grouped_field]],
|
||||||
context: this.getSession().user_context,
|
context: this.getSession().user_context,
|
||||||
}).then(async (fields) => {
|
}).then(async (fields) => {
|
||||||
if (fields[grouped_field].type === "many2many") {
|
if (fields[grouped_field].type === "many2many") {
|
||||||
|
|
Loading…
Reference in New Issue