Browse Source

[14.0][MIG]report_wkhtmltopdf_param

myc-14.0-py3o
Foram 4 years ago
committed by fshah
parent
commit
e91d3c8647
  1. 2
      .travis.yml
  2. 1
      report_wkhtmltopdf_param/README.rst
  3. 2
      report_wkhtmltopdf_param/__manifest__.py
  4. 8
      report_wkhtmltopdf_param/models/report_paperformat_parameter.py
  5. 1
      report_wkhtmltopdf_param/readme/CONTRIBUTORS.rst
  6. 4
      report_wkhtmltopdf_param/tests/test_report_paperformat.py

2
.travis.yml

@ -33,7 +33,7 @@ install:
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git
${HOME}/maintainer-quality-tools ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- export WKHTMLTOPDF_VERSION=0.12.4
- export WKHTMLTOPDF_VERSION=0.12.5
- travis_install_nightly - travis_install_nightly
script: script:

1
report_wkhtmltopdf_param/README.rst

@ -73,6 +73,7 @@ Contributors
* Miku Laitinen <miku@avoin.systems> * Miku Laitinen <miku@avoin.systems>
* Jordi Ballester <jordi.ballester@eficent.com> * Jordi Ballester <jordi.ballester@eficent.com>
* Saran Lim. <saranl@ecosoft.co.th> * Saran Lim. <saranl@ecosoft.co.th>
* Foram Shah <foramshah@initos.com>
Maintainers Maintainers
~~~~~~~~~~~ ~~~~~~~~~~~

2
report_wkhtmltopdf_param/__manifest__.py

@ -4,7 +4,7 @@
# noinspection PyStatementEffect # noinspection PyStatementEffect
{ {
"name": "Report Wkhtmltopdf Param", "name": "Report Wkhtmltopdf Param",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"license": "AGPL-3", "license": "AGPL-3",
"summary": """ "summary": """
Add new parameters for a paper format to be used by wkhtmltopdf Add new parameters for a paper format to be used by wkhtmltopdf

8
report_wkhtmltopdf_param/models/report_paperformat_parameter.py

@ -9,7 +9,9 @@ class ReportPaperformatParameter(models.Model):
_description = "wkhtmltopdf parameters" _description = "wkhtmltopdf parameters"
paperformat_id = fields.Many2one( paperformat_id = fields.Many2one(
"report.paperformat", "Paper Format", required=True,
"report.paperformat",
"Paper Format",
required=True,
) )
name = fields.Char( name = fields.Char(
@ -18,4 +20,6 @@ class ReportPaperformatParameter(models.Model):
help="The command argument name. Remember to add prefix -- or -", help="The command argument name. Remember to add prefix -- or -",
) )
value = fields.Char("Value",)
value = fields.Char(
"Value",
)

1
report_wkhtmltopdf_param/readme/CONTRIBUTORS.rst

@ -1,3 +1,4 @@
* Miku Laitinen <miku@avoin.systems> * Miku Laitinen <miku@avoin.systems>
* Jordi Ballester <jordi.ballester@eficent.com> * Jordi Ballester <jordi.ballester@eficent.com>
* Saran Lim. <saranl@ecosoft.co.th> * Saran Lim. <saranl@ecosoft.co.th>
* Foram Shah <foramshah@initos.com>

4
report_wkhtmltopdf_param/tests/test_report_paperformat.py

@ -4,10 +4,10 @@
import odoo.tests import odoo.tests
from odoo.exceptions import ValidationError from odoo.exceptions import ValidationError
from odoo.tests.common import tagged
@odoo.tests.common.at_install(False)
@odoo.tests.common.post_install(True)
@tagged("post_install", "-at_install")
class TestWkhtmltopdf(odoo.tests.TransactionCase): class TestWkhtmltopdf(odoo.tests.TransactionCase):
def test_wkhtmltopdf_incorrect_parameter(self): def test_wkhtmltopdf_incorrect_parameter(self):
for report_paperformat in self.env["report.paperformat"].search([]): for report_paperformat in self.env["report.paperformat"].search([]):

Loading…
Cancel
Save