mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] report_qweb_signer: allowed reports on certificate
Add a new 'Allowed reports' field on the certificate. Only reports listed in this field can be signed. No report means all reports are allowed.
This commit is contained in:
@@ -37,6 +37,16 @@ class ReportCertificate(models.Model):
|
||||
string="Domain",
|
||||
help="Domain for filtering if sign or not the document",
|
||||
)
|
||||
action_report_ids = fields.Many2many(
|
||||
string="Allowed reports",
|
||||
help="Reports to sign for the selected model."
|
||||
"No report selected means all reports are allowed.",
|
||||
comodel_name="ir.actions.report",
|
||||
relation="report_certificate_action_report",
|
||||
column1="report_certificate_id",
|
||||
column2="action_report_id",
|
||||
domain="[('model_id', '=', model_id)]",
|
||||
)
|
||||
allow_only_one = fields.Boolean(
|
||||
string="Allow only one document",
|
||||
default=True,
|
||||
|
||||
Reference in New Issue
Block a user