Search 1.9 billion lines of Odoo code on GitHub

account_invoice_merge_auto_pay

Author: Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0-mig-account_invoice_merge_auto_pay
Repository: akretion/account-invoicing
Dependencies: account_invoice_merge_auto, contract_payment_auto, and queue_job
Languages: Python (199, 86.5%), and reStructuredText (31, 13.5%)

<a class="reference external image-reference" href="https://www.gnu.org/licenses/agpl"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a name="account-invoice-merge-auto-pay"></a> <h2>Account invoice merge auto pay</h2> <p>This module completes the <cite>account_invoice_merge_auto</cite> module by paying the customer invoices automatically once all invoice merge candidates have been handled, have they finally been merged or not.</p> <p>It uses the <cite>queue_job_subscribe</cite> module so that payments are performed in their own database transaction: if one payment crashes for any reason, the others are not affected and an administrator can be notified (see Configuration below).</p> <a name="usage"></a> <h3>Usage</h3> <p>First see <cite>account_invoice_merge</cite> and <cite>account_invoice_merge_auto</cite> modules' usage.</p> <p>Now create a customer invoice with a payment mode.</p> <a name="configuration"></a> <h3>Configuration</h3> <p>There is no configuration specific to this module, however following parameters fit usually well together:</p> <ul class="simple"> <li>Configure the <cite>queue_job</cite> module: define a user to be a job manager (in the <cite>Configuration &gt; Users</cite> section) and to be notified in case of a failed job (<cite>Configuration &gt; Users &gt; Connectors</cite>)</li> <li>Also configure Odoo for <cite>queue_job</cite> of course: do not forget to add <cite>queue_job</cite> to the <cite>server_wide_modules</cite> option and to set <cite>workers</cite> to a suitable value (at least &gt;= 1).</li> <li>Adjust the <cite>Automatically merge invoices</cite> cron task execution hour to your liking; for instance, if you use the <cite>contract_auto_merge</cite> module to generate the invoices to be merged and pay, disable the Contract automatic payment cron and set the Generate Recurring Invoices from Contracts cron to be executed before the <cite>account_invoice_merge</cite> one.</li> </ul>