Metadata-Version: 2.1
Name: odoo-addon-purchase_order_accrual_accounting_date
Version: 18.0.1.0.0.2
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Use the bill accounting date when computing purchase accruals
Home-page: https://github.com/OCA/purchase-workflow
License: LGPL-3
Author: Moduon, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

======================================
Purchase Order Accrual Accounting Date
======================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:0d58bb938614d1f2edcfa8790d91a44905eadf2e8134054ea24ae7c6ab5a0e7f
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github
    :target: https://github.com/OCA/purchase-workflow/tree/18.0/purchase_order_accrual_accounting_date
    :alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_order_accrual_accounting_date
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=18.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds a company setting to compute purchase accruals (the
*Accrued Expense Entry* wizard) using the accounting date of the vendor
bills instead of their bill date.

When enabled, a purchase order line counts as billed at the accrual date
only the bills whose accounting date is on or before that date.

**Table of contents**

.. contents::
   :local:

Use Cases / Context
===================

Odoo computes the quantity to accrue as *received at date − billed at
date*. Received quantities use the effective date of the stock moves,
but billed quantities use the bill date, not the accounting date.

When a bill has a bill date inside the period but is posted with an
accounting date in the next period, and the goods are also received in
the next period, the accrual is negative: it credits the expense
account. When that entry is reversed in the next period, together with
the real bill, the expense is counted twice.

Using the accounting date for both sides keeps the accrual consistent
with what is really booked in the ledger at the closing date.

Configuration
=============

1. Go to *Purchase > Configuration > Settings*.
2. In the *Invoicing* section, enable *Accrued Expenses by Accounting
   Date*.

The setting is per company. It is disabled by default, which keeps the
standard Odoo behavior.

Usage
=====

Before creating an accrual entry, you need:

- A user with the *Accountant* rights (*Invoicing > Show Full Accounting
  Features*), required to see the *Accrued Expense Entry* action.
- A journal of type *Miscellaneous*, where the accrual entry and its
  reversal are posted.
- An account of type *Current Liabilities* to use as the accrual
  account.
- Confirmed purchase orders whose products have an expense account,
  either on the product, on its category or as the company default.

To create the accrual entry:

1. Go to *Purchase > Orders > Purchase Orders* and select the orders to
   accrue.
2. Click *Actions > Accrued Expense Entry*.
3. Set the accrual date, the reversal date, the journal and the accrual
   account.
4. Check the preview and click *Create Entry*.

With *Accrued Expenses by Accounting Date* enabled, only bills with an
accounting date on or before the accrual date reduce the amount to
accrue.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_order_accrual_accounting_date%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Moduon

Contributors
------------

- Emilio Pascual (`Moduon <https://www.moduon.team/>`__)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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.

.. |maintainer-EmilioPascual| image:: https://github.com/EmilioPascual.png?size=40px
    :target: https://github.com/EmilioPascual
    :alt: EmilioPascual
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
    :target: https://github.com/rafaelbn
    :alt: rafaelbn

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-EmilioPascual| |maintainer-rafaelbn| 

This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/18.0/purchase_order_accrual_accounting_date>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
