Stock Picking Invoice Link
stock_picking_invoice_link · OCA/stock-logistics-workflow
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 15 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis
0 migration notes
5 models
3 views
0 HTTP endpoints
Description
The base module used by sale_stock_picking_invoice_link and purchase_stock_picking_invoice_link to adds a link between pickings and invoices as well as on the lines.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
invoice_form |
related.pickings.account.invoice.form | account.move | form | Inherits account.view_move_form |
view_move_form |
stock_picking_invoice_link.stock.move.form | stock.move | form | Inherits stock.view_move_form |
view_picking_form |
stock_picking_invoice_link.stock.picking.form | stock.picking | form | Inherits stock.view_picking_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (2)
-
picking_countIntegercompute='_compute_picking_count'string='Pickings count' -
picking_idsMany2many → stock.pickingcomodel_name='stock.picking'compute='_compute_picking_ids'help='Related pickings (only when the invoice has been generated from a sale order).'store=Truestring='Related Pickings'
-
action_show_picking(self)This function returns an action that display existing pickings of given invoice. It can either be a in a list or in a form view, if there is only one picking to show.
New fields (1)
-
move_line_idsMany2many → stock.movecolumn1='invoice_line_id'column2='move_id'comodel_name='stock.move'copy=Falsehelp='Related stock moves (only when the invoice has been generated from a sale order).'readonly=Truerelation='stock_move_invoice_line_rel'string='Related Stock Moves'
-
copy_data(self, default=None)Copy the move_line_ids in case of refund invoice creating new invoices (refund_method="modify") for multiple records. -
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (0)
No new fields.
Public methods (1)-
reverse_moves(self, is_modify=False)Link return moves to the lines of refund invoice
New fields (1)
-
invoice_line_idsMany2many → account.move.linecolumn1='move_id'column2='invoice_line_id'comodel_name='account.move.line'copy=Falsereadonly=Truerelation='stock_move_invoice_line_rel'
-
get_moves_delivery_link_invoice(self) -
write(self, vals)User can update any picking in done state, but if this picking already invoiced the stock move done quantities can be different to invoice line quantities. So to avoid this inconsistency you can not update any stock move line in done state and have invoice lines linked.
New fields (2)
-
invoice_countIntegercompute='_compute_invoice_count'string='Number of Invoices' -
invoice_idsMany2many → account.movecomodel_name='account.move'copy=Falsereadonly=Truestring='Invoices'
-
action_view_invoice(self)This function returns an action that display existing invoices of given stock pickings. It can either be a in a list or in a form view, if there is only one invoice to show.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…