[MIG] report_qweb_signer: Migration to 13.0
[UPD] Update report_qweb_signer.pot [UPD] README.rstpull/534/head
parent
b2b51f0e4c
commit
40dac0db84
|
@ -14,13 +14,13 @@ Qweb PDF reports signer
|
||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
:alt: License: AGPL-3
|
:alt: License: AGPL-3
|
||||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
|
||||||
:target: https://github.com/OCA/reporting-engine/tree/12.0/report_qweb_signer
|
:target: https://github.com/OCA/reporting-engine/tree/13.0/report_qweb_signer
|
||||||
:alt: OCA/reporting-engine
|
:alt: OCA/reporting-engine
|
||||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||||
:target: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_qweb_signer
|
:target: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_qweb_signer
|
||||||
:alt: Translate me on Weblate
|
:alt: Translate me on Weblate
|
||||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||||
:target: https://runbot.odoo-community.org/runbot/143/12.0
|
:target: https://runbot.odoo-community.org/runbot/143/13.0
|
||||||
:alt: Try me on Runbot
|
:alt: Try me on Runbot
|
||||||
|
|
||||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
|
@ -103,7 +103,7 @@ Bug Tracker
|
||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
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
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_signer%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_signer%0Aversion:%2013.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.
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
||||||
|
@ -154,6 +154,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.
|
promote its widespread use.
|
||||||
|
|
||||||
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/12.0/report_qweb_signer>`_ project on GitHub.
|
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/13.0/report_qweb_signer>`_ project on GitHub.
|
||||||
|
|
||||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{
|
{
|
||||||
"name": "Qweb PDF reports signer",
|
"name": "Qweb PDF reports signer",
|
||||||
"summary": "Sign Qweb PDFs usign a PKCS#12 certificate",
|
"summary": "Sign Qweb PDFs usign a PKCS#12 certificate",
|
||||||
"version": "12.0.1.0.1",
|
"version": "13.0.1.0.0",
|
||||||
"category": "Reporting",
|
"category": "Reporting",
|
||||||
"website": "https://github.com/oca/reporting-engine",
|
"website": "https://github.com/oca/reporting-engine",
|
||||||
"author": "Tecnativa, " "Odoo Community Association (OCA)",
|
"author": "Tecnativa, " "Odoo Community Association (OCA)",
|
||||||
|
@ -20,8 +20,5 @@
|
||||||
"views/report_certificate_view.xml",
|
"views/report_certificate_view.xml",
|
||||||
"views/res_company_view.xml",
|
"views/res_company_view.xml",
|
||||||
],
|
],
|
||||||
"demo": [
|
"demo": ["demo/report_partner_demo.xml", "demo/report_certificate_demo.xml"],
|
||||||
"demo/report_partner_demo.xml",
|
|
||||||
"demo/report_certificate_demo.xml",
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
<odoo>
|
<odoo>
|
||||||
<record model="ir.config_parameter" id="report_qweb_signer_java_param">
|
<record model="ir.config_parameter" id="report_qweb_signer_java_param">
|
||||||
<field name="key">report_qweb_signer.java_parameters</field>
|
<field name="key">report_qweb_signer.java_parameters</field>
|
||||||
<field name="value">-Xms4M -Xmx4M</field>
|
<field name="value">-Xms4M -Xmx4M -XX:CompressedClassSpaceSize=256m</field>
|
||||||
</record>
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|
|
@ -11,7 +11,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
<field name="path">test.p12</field>
|
<field name="path">test.p12</field>
|
||||||
<field name="password_file">test.passwd</field>
|
<field name="password_file">test.passwd</field>
|
||||||
<field name="model_id" ref="base.model_res_partner" />
|
<field name="model_id" ref="base.model_res_partner" />
|
||||||
<field name="domain">[('customer', '=', True)]</field>
|
|
||||||
<field name="allow_only_one" eval="True" />
|
<field name="allow_only_one" eval="True" />
|
||||||
<field
|
<field
|
||||||
name="attachment"
|
name="attachment"
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# Translation of Odoo Server.
|
# Translation of Odoo Server.
|
||||||
# This file contains the translation of the following modules:
|
# This file contains the translation of the following modules:
|
||||||
# * report_qweb_signer
|
# * report_qweb_signer
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 12.0\n"
|
"Project-Id-Version: Odoo Server 13.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
@ -75,7 +75,9 @@ msgstr ""
|
||||||
|
|
||||||
#. module: report_qweb_signer
|
#. module: report_qweb_signer
|
||||||
#: model:ir.model.fields,help:report_qweb_signer.field_report_certificate__attachment
|
#: model:ir.model.fields,help:report_qweb_signer.field_report_certificate__attachment
|
||||||
msgid "Filename used to store signed document as attachment. Keep empty to not save signed document."
|
msgid ""
|
||||||
|
"Filename used to store signed document as attachment. Keep empty to not save"
|
||||||
|
" signed document."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: report_qweb_signer
|
#. module: report_qweb_signer
|
||||||
|
@ -85,7 +87,9 @@ msgstr ""
|
||||||
|
|
||||||
#. module: report_qweb_signer
|
#. module: report_qweb_signer
|
||||||
#: model:ir.model.fields,help:report_qweb_signer.field_report_certificate__allow_only_one
|
#: model:ir.model.fields,help:report_qweb_signer.field_report_certificate__allow_only_one
|
||||||
msgid "If True, this certificate can not be useb to sign a PDF from several documents."
|
msgid ""
|
||||||
|
"If True, this certificate can not be useb to sign a PDF from several "
|
||||||
|
"documents."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: report_qweb_signer
|
#. module: report_qweb_signer
|
||||||
|
@ -166,9 +170,11 @@ msgid "Save as attachment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: report_qweb_signer
|
#. module: report_qweb_signer
|
||||||
#: code:addons/report_qweb_signer/models/ir_actions_report.py:104
|
#: code:addons/report_qweb_signer/models/ir_actions_report.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Saving signed report (PDF): You do not have enough access rights to save attachments"
|
msgid ""
|
||||||
|
"Saving signed report (PDF): You do not have enough access rights to save "
|
||||||
|
"attachments"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: report_qweb_signer
|
#. module: report_qweb_signer
|
||||||
|
@ -177,19 +183,20 @@ msgid "Sequence"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: report_qweb_signer
|
#. module: report_qweb_signer
|
||||||
#: code:addons/report_qweb_signer/models/ir_actions_report.py:122
|
#: code:addons/report_qweb_signer/models/ir_actions_report.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Signing report (PDF): Certificate or password file not found"
|
msgid "Signing report (PDF): Certificate or password file not found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: report_qweb_signer
|
#. module: report_qweb_signer
|
||||||
#: code:addons/report_qweb_signer/models/ir_actions_report.py:131
|
#: code:addons/report_qweb_signer/models/ir_actions_report.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Signing report (PDF): jPdfSign failed (error code: %s). Message: %s. Output: %s"
|
msgid ""
|
||||||
|
"Signing report (PDF): jPdfSign failed (error code: %s). Message: %s. Output:"
|
||||||
|
" %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: report_qweb_signer
|
#. module: report_qweb_signer
|
||||||
#: model:ir.actions.report,name:report_qweb_signer.partner_demo_report
|
#: model:ir.actions.report,name:report_qweb_signer.partner_demo_report
|
||||||
msgid "Test PDF certificate"
|
msgid "Test PDF certificate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import tempfile
|
||||||
import time
|
import time
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
|
|
||||||
from odoo import _, api, models
|
from odoo import _, models
|
||||||
from odoo.exceptions import AccessError, UserError
|
from odoo.exceptions import AccessError, UserError
|
||||||
from odoo.tools.safe_eval import safe_eval
|
from odoo.tools.safe_eval import safe_eval
|
||||||
|
|
||||||
|
@ -58,9 +58,7 @@ class IrActionsReport(models.Model):
|
||||||
domain = domain + safe_eval(cert.domain)
|
domain = domain + safe_eval(cert.domain)
|
||||||
docs = self.env[cert.model_id.model].search(domain)
|
docs = self.env[cert.model_id.model].search(domain)
|
||||||
if not docs:
|
if not docs:
|
||||||
_logger.debug(
|
_logger.debug("Certificate '%s' domain not satisfied", cert.name)
|
||||||
"Certificate '%s' domain not satisfied", cert.name
|
|
||||||
)
|
|
||||||
continue
|
continue
|
||||||
# Certificate match!
|
# Certificate match!
|
||||||
return cert
|
return cert
|
||||||
|
@ -80,14 +78,14 @@ class IrActionsReport(models.Model):
|
||||||
return False
|
return False
|
||||||
attachment = self.env["ir.attachment"].search(
|
attachment = self.env["ir.attachment"].search(
|
||||||
[
|
[
|
||||||
("datas_fname", "=", filename),
|
("name", "=", filename),
|
||||||
("res_model", "=", certificate.model_id.model),
|
("res_model", "=", certificate.model_id.model),
|
||||||
("res_id", "=", res_ids[0]),
|
("res_id", "=", res_ids[0]),
|
||||||
],
|
],
|
||||||
limit=1,
|
limit=1,
|
||||||
)
|
)
|
||||||
if attachment:
|
if attachment:
|
||||||
return base64.decodestring(attachment.datas)
|
return base64.b64decode(attachment.datas)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _attach_signed_write(self, res_ids, certificate, signed):
|
def _attach_signed_write(self, res_ids, certificate, signed):
|
||||||
|
@ -100,8 +98,7 @@ class IrActionsReport(models.Model):
|
||||||
attachment = self.env["ir.attachment"].create(
|
attachment = self.env["ir.attachment"].create(
|
||||||
{
|
{
|
||||||
"name": filename,
|
"name": filename,
|
||||||
"datas": base64.encodestring(signed),
|
"datas": base64.b64encode(signed),
|
||||||
"datas_fname": filename,
|
|
||||||
"res_model": certificate.model_id.model,
|
"res_model": certificate.model_id.model,
|
||||||
"res_id": res_ids[0],
|
"res_id": res_ids[0],
|
||||||
}
|
}
|
||||||
|
@ -129,10 +126,7 @@ class IrActionsReport(models.Model):
|
||||||
passwd = _normalize_filepath(certificate.password_file)
|
passwd = _normalize_filepath(certificate.password_file)
|
||||||
if not (p12 and passwd):
|
if not (p12 and passwd):
|
||||||
raise UserError(
|
raise UserError(
|
||||||
_(
|
_("Signing report (PDF): " "Certificate or password file not found")
|
||||||
"Signing report (PDF): "
|
|
||||||
"Certificate or password file not found"
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
signer_opts = '"{}" "{}" "{}" "{}"'.format(p12, pdf, pdfsigned, passwd)
|
signer_opts = '"{}" "{}" "{}" "{}"'.format(p12, pdf, pdfsigned, passwd)
|
||||||
signer = self._signer_bin(signer_opts)
|
signer = self._signer_bin(signer_opts)
|
||||||
|
@ -150,22 +144,18 @@ class IrActionsReport(models.Model):
|
||||||
)
|
)
|
||||||
return pdfsigned
|
return pdfsigned
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def render_qweb_pdf(self, res_ids=None, data=None):
|
def render_qweb_pdf(self, res_ids=None, data=None):
|
||||||
certificate = self._certificate_get(res_ids)
|
certificate = self._certificate_get(res_ids)
|
||||||
if certificate and certificate.attachment:
|
if certificate and certificate.attachment:
|
||||||
signed_content = self._attach_signed_read(res_ids, certificate)
|
signed_content = self._attach_signed_read(res_ids, certificate)
|
||||||
if signed_content:
|
if signed_content:
|
||||||
_logger.debug(
|
_logger.debug(
|
||||||
"The signed PDF document '%s/%s' was loaded from the "
|
"The signed PDF document '%s/%s' was loaded from the " "database",
|
||||||
"database",
|
|
||||||
self.report_name,
|
self.report_name,
|
||||||
res_ids,
|
res_ids,
|
||||||
)
|
)
|
||||||
return signed_content, "pdf"
|
return signed_content, "pdf"
|
||||||
content, ext = super(IrActionsReport, self).render_qweb_pdf(
|
content, ext = super(IrActionsReport, self).render_qweb_pdf(res_ids, data)
|
||||||
res_ids, data
|
|
||||||
)
|
|
||||||
if certificate:
|
if certificate:
|
||||||
# Creating temporary origin PDF
|
# Creating temporary origin PDF
|
||||||
pdf_fd, pdf = tempfile.mkstemp(suffix=".pdf", prefix="report.tmp.")
|
pdf_fd, pdf = tempfile.mkstemp(suffix=".pdf", prefix="report.tmp.")
|
||||||
|
|
|
@ -33,8 +33,7 @@ class ReportCertificate(models.Model):
|
||||||
help="Model where apply this certificate",
|
help="Model where apply this certificate",
|
||||||
)
|
)
|
||||||
domain = fields.Char(
|
domain = fields.Char(
|
||||||
string="Domain",
|
string="Domain", help="Domain for filtering if sign or not the document",
|
||||||
help="Domain for filtering if sign or not the document",
|
|
||||||
)
|
)
|
||||||
allow_only_one = fields.Boolean(
|
allow_only_one = fields.Boolean(
|
||||||
string="Allow only one document",
|
string="Allow only one document",
|
||||||
|
|
|
@ -367,7 +367,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. !!
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||||
<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/reporting-engine/tree/12.0/report_qweb_signer"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_qweb_signer"><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/143/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/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/reporting-engine/tree/13.0/report_qweb_signer"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_qweb_signer"><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/143/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||||
<p>This module extends the functionality of report module to sign
|
<p>This module extends the functionality of report module to sign
|
||||||
PDFs using a PKCS#12 certificate.</p>
|
PDFs using a PKCS#12 certificate.</p>
|
||||||
<p><strong>Table of contents</strong></p>
|
<p><strong>Table of contents</strong></p>
|
||||||
|
@ -459,7 +459,7 @@ saved as attachment.</li>
|
||||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
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
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_signer%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/reporting-engine/issues/new?body=module:%20report_qweb_signer%0Aversion:%2013.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>
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="credits">
|
<div class="section" id="credits">
|
||||||
|
@ -508,7 +508,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.</p>
|
promote its widespread use.</p>
|
||||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/12.0/report_qweb_signer">OCA/reporting-engine</a> project on GitHub.</p>
|
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/13.0/report_qweb_signer">OCA/reporting-engine</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>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,9 +7,7 @@ from odoo.tests.common import HttpCase
|
||||||
class TestReportQwebSigner(HttpCase):
|
class TestReportQwebSigner(HttpCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestReportQwebSigner, self).setUp()
|
super(TestReportQwebSigner, self).setUp()
|
||||||
self.partner = self.env["res.partner"].create(
|
self.partner = self.env["res.partner"].create({"name": "Test partner"})
|
||||||
{"name": "Test partner", "customer": True}
|
|
||||||
)
|
|
||||||
self.report = self.env.ref(
|
self.report = self.env.ref(
|
||||||
"report_qweb_signer.partner_demo_report"
|
"report_qweb_signer.partner_demo_report"
|
||||||
).with_context(force_report_rendering=True)
|
).with_context(force_report_rendering=True)
|
||||||
|
|
|
@ -55,7 +55,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
<record id="action_report_certificate" model="ir.actions.act_window">
|
<record id="action_report_certificate" model="ir.actions.act_window">
|
||||||
<field name="name">PDF certificates</field>
|
<field name="name">PDF certificates</field>
|
||||||
<field name="res_model">report.certificate</field>
|
<field name="res_model">report.certificate</field>
|
||||||
<field name="view_type">form</field>
|
|
||||||
<field name="view_mode">tree,form</field>
|
<field name="view_mode">tree,form</field>
|
||||||
</record>
|
</record>
|
||||||
<menuitem
|
<menuitem
|
||||||
|
|
Loading…
Reference in New Issue