From 93c386e26e0c797916e5c5f9cb4e8c465243cefd Mon Sep 17 00:00:00 2001 From: sistecem Date: Fri, 28 Apr 2023 09:03:51 -0400 Subject: [PATCH] Update CONFIGURE.rst --- report_qweb_signer/readme/CONFIGURE.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/report_qweb_signer/readme/CONFIGURE.rst b/report_qweb_signer/readme/CONFIGURE.rst index 3a7fdb138..50ef28eb8 100644 --- a/report_qweb_signer/readme/CONFIGURE.rst +++ b/report_qweb_signer/readme/CONFIGURE.rst @@ -9,11 +9,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