# Account Move Line Purchase Info

This module will add the purchase order line to journal items.

The ultimate goal is to establish the purchase order line as one of the key fields to reconcile the Goods Received Not Invoiced accrual account.

Field oca_purchase_line_id it’s necessary. In Odoo >=16 automatic revaluation for a product with FIFO costing method only works if invoice lines related to a purchase order line do not include stock journal items. To avoid that oca_purchase_line_id includes invoice and stock journal items, and we keep Odoo field invoice_lines just with bill lines.

- Check issue https://github.com/OCA/account-financial-tools/issues/2017

Table of contents

- Usage
- Bug Tracker
- Credits
  - Authors
  - Contributors
  - Maintainers

# Usage

The purchase order line will be automatically copied to the journal items.

- When a supplier invoice is created referencing purchase orders, the purchase order line will be copied to the corresponding journal item.
- When a stock move is validated and generates a journal entry, the purchase order line is copied to the account move line.

# Bug Tracker

Bugs are tracked on GitHub 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.

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

# Credits

## Authors

- ForgeFlow

## Contributors

- Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
- Héctor Villarreal <hector.villarreal@forgeflow.com>
- Pimolnat Suntian <pimolnats@ecosoft.co.th>

## Maintainers

This module is maintained by the OCA.

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.

This module is part of the OCA/account-financial-tools project on GitHub.

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