mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[UPD] README.rst
This commit is contained in:
@@ -54,11 +54,11 @@ to use in your company.
|
|||||||
* Set name, certificate file, password file and model
|
* Set name, certificate file, password file and model
|
||||||
* Optionally you can set a domain and filename pattern for saving as attachment
|
* 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``
|
* Model: ``account.move``
|
||||||
* Domain: ``[('type','=','out_invoice'), ('state', 'in', ('open', 'paid'))]``
|
* Domain: ``[('move_type','=','out_invoice'), ('state', '=', 'posted')]``
|
||||||
* Save as attachment: ``(object.number or '').replace('/','_') + '.signed.pdf'``
|
* Save as attachment: ``(object.name or '').replace('/','_') + '.signed.pdf'``
|
||||||
|
|
||||||
**Note**: Linux user that executes Odoo server process must have
|
**Note**: Linux user that executes Odoo server process must have
|
||||||
read access to certificate file and password file
|
read access to certificate file and password file
|
||||||
|
|||||||
@@ -413,11 +413,11 @@ to use in your company.</p>
|
|||||||
<li>Set name, certificate file, password file and model</li>
|
<li>Set name, certificate file, password file and model</li>
|
||||||
<li>Optionally you can set a domain and filename pattern for saving as attachment</li>
|
<li>Optionally you can set a domain and filename pattern for saving as attachment</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>For example, if you want to sign only customer invoices in open or paid state:</p>
|
<p>For example, if you want to sign only customer invoices in posted state:</p>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li>Model: <tt class="docutils literal">account.invoice</tt></li>
|
<li>Model: <tt class="docutils literal">account.move</tt></li>
|
||||||
<li>Domain: <tt class="docutils literal"><span class="pre">[('type','=','out_invoice'),</span> ('state', 'in', ('open', <span class="pre">'paid'))]</span></tt></li>
|
<li>Domain: <tt class="docutils literal"><span class="pre">[('move_type','=','out_invoice'),</span> ('state', <span class="pre">'=',</span> <span class="pre">'posted')]</span></tt></li>
|
||||||
<li>Save as attachment: <tt class="docutils literal">(object.number or <span class="pre">'').replace('/','_')</span> + '.signed.pdf'</tt></li>
|
<li>Save as attachment: <tt class="docutils literal">(object.name or <span class="pre">'').replace('/','_')</span> + '.signed.pdf'</tt></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p><strong>Note</strong>: Linux user that executes Odoo server process must have
|
<p><strong>Note</strong>: Linux user that executes Odoo server process must have
|
||||||
read access to certificate file and password file</p>
|
read access to certificate file and password file</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user