Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 15 Odoo series since 6.1

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
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_count Integer
    compute='_compute_picking_count' string='Pickings count'
  • picking_ids Many2many → stock.picking
    comodel_name='stock.picking' compute='_compute_picking_ids' help='Related pickings (only when the invoice has been generated from a sale order).' store=True string='Related Pickings'
Public methods (1)
  • 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_ids Many2many → stock.move
    column1='invoice_line_id' column2='move_id' comodel_name='stock.move' copy=False help='Related stock moves (only when the invoice has been generated from a sale order).' readonly=True relation='stock_move_invoice_line_rel' string='Related Stock Moves'
Public methods (3)
  • 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_ids Many2many → account.move.line
    column1='move_id' column2='invoice_line_id' comodel_name='account.move.line' copy=False readonly=True relation='stock_move_invoice_line_rel'
Public methods (2)
  • 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_count Integer
    compute='_compute_invoice_count' string='Number of Invoices'
  • invoice_ids Many2many → account.move
    comodel_name='account.move' copy=False readonly=True string='Invoices'
Public methods (1)
  • 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…