From bdb2d040bc762e6084fb70d084a21fb8db449e72 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Sun, 2 Jul 2023 19:35:07 +0000
Subject: [PATCH] [UPD] README.rst
---
report_qweb_signer/README.rst | 8 ++++----
report_qweb_signer/static/description/index.html | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/report_qweb_signer/README.rst b/report_qweb_signer/README.rst
index 5be93ca81..bc4b34a10 100644
--- a/report_qweb_signer/README.rst
+++ b/report_qweb_signer/README.rst
@@ -54,11 +54,11 @@ to use in your company.
* Set name, certificate file, password file and model
* Optionally you can set a domain and filename pattern for saving as attachment
-For example, if you want to sign only customer invoices in open or paid state:
+For example, if you want to sign only customer invoices in posted state:
-* Model: ``account.invoice``
-* Domain: ``[('type','=','out_invoice'), ('state', 'in', ('open', 'paid'))]``
-* Save as attachment: ``(object.number or '').replace('/','_') + '.signed.pdf'``
+* Model: ``account.move``
+* Domain: ``[('move_type','=','out_invoice'), ('state', '=', 'posted')]``
+* Save as attachment: ``(object.name or '').replace('/','_') + '.signed.pdf'``
**Note**: Linux user that executes Odoo server process must have
read access to certificate file and password file
diff --git a/report_qweb_signer/static/description/index.html b/report_qweb_signer/static/description/index.html
index cfd537532..e173eeb3a 100644
--- a/report_qweb_signer/static/description/index.html
+++ b/report_qweb_signer/static/description/index.html
@@ -413,11 +413,11 @@ to use in your company.
Set name, certificate file, password file and model
Optionally you can set a domain and filename pattern for saving as attachment
-For example, if you want to sign only customer invoices in open or paid state:
+For example, if you want to sign only customer invoices in posted state:
-- Model: account.invoice
-- Domain: [('type','=','out_invoice'), ('state', 'in', ('open', 'paid'))]
-- Save as attachment: (object.number or '').replace('/','_') + '.signed.pdf'
+- Model: account.move
+- Domain: [('move_type','=','out_invoice'), ('state', '=', 'posted')]
+- Save as attachment: (object.name or '').replace('/','_') + '.signed.pdf'
Note: Linux user that executes Odoo server process must have
read access to certificate file and password file