Repository
OCA/account-financial-tools · module folder · Try on Runboat
Module version
2.1.0
Category
Generic
Folder size
0.19 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-financial-tools
Last tracking update
2026-08-07 08:42:53
Authors
Odoo Community Association (OCA), ForgeFlow
Maintainers
Odoo Community Association (OCA), ForgeFlow
Committers
JordiMForgeFlow, Weblate, OCA-git-bot, oca-ci, IsabelAForgeFlow
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
purchase_unreconciled
Description
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

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
view_account_move_line_filter Journal Items account.move.line Inherits account.view_account_move_line_filter
view_move_form account.move.form account.move form Inherits account.view_move_form
view_move_line_form account.move.line.form account.move.line form Inherits account.view_move_line_form
view_move_line_journal_entries_form purchase.order.form.journal.entry purchase.order form Inherits purchase.purchase_order_form
view_move_line_tree account.move.line.tree account.move.line tree Inherits account.view_move_line_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • oca_purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line' compute='_compute_oca_purchase_line_id' index=True store=True string='OCA Purchase Line'
  • purchase_order_id Many2one → purchase.order
    comodel_name='purchase.order' compute='_compute_purchase_id' index=True related=None store=True
Public methods (0)

No public methods.

New fields (2)
  • journal_entries_count Integer
    compute='_compute_journal_entries'
  • journal_entry_ids Many2many → account.move
    comodel_name='account.move' compute='_compute_journal_entries' relation='journal_entries_ids_purchase_order' string='Journal Entries'
Public methods (1)
  • action_view_journal_entries(self, invoices=False)
    This function returns an action that display existing journal entries of given purchase order ids. When only one found, show the journal entry immediately.

New fields (1)
  • stock_invoice_lines One2many → account.move.line
    copy=False readonly=True args: 'account.move.line', 'oca_purchase_line_id'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
254 days ago
Last activity
88 days ago
Repository
OCA/account-financial-tools
Pull request
[19.0][MIG] account_move_line_purchase_info (#2187)