Account Move Line Purchase Info
account_move_line_purchase_info · OCA/account-financial-tools
-
Security25/25No findings
-
Activity25/25Last human commit 4 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 10 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
No new fields.
Public methods (0)No public methods.
-
oca_purchase_line_idMany2one → purchase.order.linecomodel_name='purchase.order.line'compute='_compute_oca_purchase_line_id'index=Truestore=Truestring='OCA Purchase Line' -
purchase_order_idMany2one → purchase.ordercomodel_name='purchase.order'compute='_compute_purchase_id'index=Truerelated=Nonestore=True
No public methods.
-
journal_entries_countIntegercompute='_compute_journal_entries' -
journal_entry_idsMany2many → account.movecomodel_name='account.move'compute='_compute_journal_entries'relation='journal_entries_ids_purchase_order'string='Journal Entries'
-
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.
-
stock_invoice_linesOne2many → account.move.linecopy=Falsereadonly=True args: 'account.move.line', 'oca_purchase_line_id'
No public methods.
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…