Author: |
Akretion,Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
16.0 |
Repository: |
brain-tec/account-closing |
Dependencies: |
account_cutoff_base,
purchase_stock,
and
sale_stock |
Languages: |
HTML (359, 27.6%),
PO File (333, 25.6%),
Python (503, 38.7%),
XML (38, 2.9%),
and
reStructuredText (67, 5.2%) |
Other repositories: |
Gabinete-Digital/account-closing,
OCA/account-closing,
and
akretion/account-closing |
<h1 class="title">Account Cut-off Picking</h1>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-closing/tree/16.0/account_cutoff_picking"><img alt="OCA/account-closing" src="https://img.shields.io/badge/github-OCA%2Faccount--closing-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_cutoff_picking"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/89/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module generates expense/revenue accruals and prepaid expense/revenue based on the status of orders, pickings and invoices. The module is named <em>account_cutoff_accrual_picking</em> because it initially only supported accruals ; support for prepaid expense/revenue was added later (it should be renamed in later versions).</p>
<p>To understand the behavior of this module, let's take the example of an expense accrual. When you click on the button <em>Re-Generate Lines</em> of an <em>Expense Accrual</em>:</p>
<ol class="arabic simple">
<li>Odoo will look for all incoming picking in Done state with a <em>Transfer Date</em> <= <em>Cut-off Date</em>. For performance reasons, by default, the incoming picking dated before <em>Cut-off Date</em> minus 90 days will not be taken into account (this limit is configurable via the field <em>Picking Analysis</em>). It will go to the stock moves of those pickings and see if they are linked to a purchase order line.</li>
<li>Once this analysis is completed, Odoo has a list of purchase order lines to analyse for potential expense accrual.</li>
<li>For each of these purchase order lines, Odoo will:<ul>
<li>scan the related stock moves in <em>done</em> state and check their transfer date,</li>
<li>scan the related invoices lines and check their invoice date.</li>
</ul>
</li>
<li>If, for a particular purchase order line, the quantity of products received before the cutoff-date (or on the same day) minus the quantity of products invoiced before the cut-off date (or on the same day) is positive, Odoo will generate a cut-off line.</li>
</ol>
<p>Now, let's take the example of a prepaid expense. When you click on the button <em>Re-Generate Lines</em> of a <em>Prepaid Expense</em>:</p>
<ol class="arabic simple">
<li>Odoo will look for all vendor bills dated before (or equal to) <em>Cut-off Date</em>. For performance reasons, by default, the vendor bills dated before <em>Cut-off Date</em> minus 90 days will not be taken into account (this limit is configurable via the field <em>Picking Analysis</em>). It will go to the invoice lines of those vendor bills and see if they are linked to a purchase order line.</li>
<li>Once this analysis is completed, Odoo has a list of purchase order lines to analyse for potential prepaid expense.</li>
<li>For each of these purchase order lines, Odoo will:<ul>
<li>scan the related stock moves in <em>done</em> state and check their transfer date,</li>
<li>scan the related invoices lines and check their invoice date.</li>
</ul>
</li>
<li>If, for a particular purchase order line, the quantity of products invoiced before the cutoff-date (or on the same day) minus the quantity of products received before the cut-off date (or on the same day) is positive, Odoo will generate a cut-off line.</li>
</ol>
<p>This module should work well with multiple units of measure (including products purchased and invoiced in different units of measure) and in multi-currency.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<a name="configuration"></a>
<h2><a class="toc-backref" href="#id1">Configuration</a></h2>
<p>For configuration instructions, refer to the README of the module <em>account_cutoff_base</em>.</p>
<a name="bug-tracker"></a>
<h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-closing/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/account-closing/issues/new?body=module:%20account_cutoff_picking%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
<a name="credits"></a>
<h2><a class="toc-backref" href="#id3">Credits</a></h2>
<a name="authors"></a>
<h3><a class="toc-backref" href="#id4">Authors</a></h3>
<ul class="simple">
<li>Akretion</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id5">Contributors</a></h3>
<ul class="simple">
<li>Alexis de Lattre <<a class="reference external" href="mailto:alexis.delattre@akretion.com">alexis.delattre@akretion.com</a>></li>
</ul>
<a name="maintainers"></a>
<h3><a class="toc-backref" href="#id6">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/alexis-via"><img alt="alexis-via" src="https://github.com/alexis-via.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-closing/tree/16.0/account_cutoff_picking">OCA/account-closing</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>