diff --git a/report_qweb_parameter/README.rst b/report_qweb_parameter/README.rst index 899c56f9e..7ced29a67 100644 --- a/report_qweb_parameter/README.rst +++ b/report_qweb_parameter/README.rst @@ -77,6 +77,10 @@ Contributors * Iván Antón +* `Sygel Technology `_: + + * Valentin Vinagre + Maintainers ~~~~~~~~~~~ diff --git a/report_qweb_parameter/demo/test_report_field_length.xml b/report_qweb_parameter/demo/test_report_field_length.xml index d786acce7..9f637234f 100644 --- a/report_qweb_parameter/demo/test_report_field_length.xml +++ b/report_qweb_parameter/demo/test_report_field_length.xml @@ -15,6 +15,11 @@ t-esc="docs[0].street" t-if="docs[0].street" /> +
  • +
  • +
  • + +* `Sygel Technology `_: + + * Valentin Vinagre \ No newline at end of file diff --git a/report_qweb_parameter/static/description/index.html b/report_qweb_parameter/static/description/index.html index c5c8f37ce..4e002abdc 100644 --- a/report_qweb_parameter/static/description/index.html +++ b/report_qweb_parameter/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -428,12 +428,21 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
  • Iván Antón <ozono@ozonomultimedia.com>

  • +
  • Sygel Technology:

    +
    +
      +
    • Valentin Vinagre
    • +
    +
    +
  • Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +Odoo Community Association +

    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.

    diff --git a/report_qweb_parameter/tests/test_report_qweb_parameter.py b/report_qweb_parameter/tests/test_report_qweb_parameter.py index 19dd76c8a..746825200 100644 --- a/report_qweb_parameter/tests/test_report_qweb_parameter.py +++ b/report_qweb_parameter/tests/test_report_qweb_parameter.py @@ -24,9 +24,18 @@ class TestReportQWebParameter(common.TransactionCase): docs.website = "1234567890" # for avoding that Odoo adds http:// rep = report_object._render(report_name, docs.ids, False) root = ET.fromstring(rep[0]) + + # test length self.assertEqual(root[0].text, "1234567890") - self.assertEqual(root[2].text, "1234567890") - self.assertEqual(root[4].text, "1234567890") + self.assertEqual(root[3].text, "1234567890") + self.assertEqual(root[6].text, "1234567890") + + # test condicional length + self.assertEqual(root[1].text, "Tes") + self.assertEqual(root[4].text, "Test") + self.assertEqual(root[7].text, "Test ") + + # test maxlength docs.update({"street": "123456789"}) with self.assertRaises(QWebException): report_object._render(report_name, docs.ids, False)