Repository
OCA/stock-logistics-orderpoint · module folder · Try on Runboat
Module version
1.0.5
Category
Uncategorized
Folder size
0.16 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-orderpoint
Last tracking update
2026-08-07 08:42:52
Authors
Odoo Community Association (OCA), BCIM, MT Software
Maintainers
Odoo Community Association (OCA), BCIM, MT Software
Committers
Jacques-Etienne Baudoux, Laurent Mignon (ACSONE), Thierry Ducrest, Weblate, OCA-git-bot, oca-ci, Mmequignon
Odoo dependencies
Python dependencies
requests
System dependencies
None
Required by
None
Description
Declare orderpoint on a location allowing to replenish any product with
the same criteria. This is for an internal warehouse replenishment
currently not compatible with the purchase buy route.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
stock_location_orderpoint_form stock.location.orderpoint.form stock.location.orderpoint form New
stock_location_orderpoint_search stock.location.orderpoint.search stock.location.orderpoint search New
view_location_form stock.location.form (in stock_location_orderpoint) stock.location form Inherits stock.view_location_form
view_stock_location_orderpoint_list_editable stock.location.orderpoint.list.editable stock.location.orderpoint list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (2)
  • location_orderpoint_count Integer
    compute='_compute_location_orderpoint_count'
  • location_orderpoint_ids One2many → stock.location.orderpoint
    comodel_name='stock.location.orderpoint' help='Location Orderpoints. Rules that allows this location to be replenished.' inverse_name='location_id' string='Location Orderpoints'
Public methods (1)
  • action_open_location_orderpoints(self)

New fields (12)
  • active Boolean
    default=True
  • company_id Many2one → res.company
    default=<expr> required=True args: 'res.company', 'Company'
  • group_id Many2one → procurement.group
    copy=False help='Moves created through this orderpoint will be put in this procurement group. If none is given, the moves generated by stock rules will be grouped into one big picking.' args: 'procurement.group', 'Procurement Group'
  • last_cron_execution Datetime
    help='Last time this orderpoint was processed by the cron'
  • location_id Many2one → stock.location
    check_company=True ondelete='cascade' required=True args: 'stock.location', 'Location'
  • location_src_id Many2one → stock.location
    compute='_compute_location_src_id' store=True args: 'stock.location'
  • name Char
    copy=False default=<expr> readonly=True required=True
  • priority Selection
    default='0' args: PROCUREMENT_PRIORITIES
  • replenish_method Selection
    default='fill_up' help='Defines how the qty to replenish gets computed\nFill up = The replenishment will be triggered when a move is waiting availability and forecast quantity is negative at the location (i.e. min=0). The replenished quantity will bring back the forecast quantity to 0 (i.e. max=0) but will be limited to what is available at the source location to plan only reservable replenishment moves' required=True args: [('fill_up', 'Fill up')]
  • route_id Many2one → stock.route
    domain="[('rule_ids.location_dest_id', 'in', [location_id])]" string='Preferred Route' args: 'stock.route'
  • sequence Integer
    default=10
  • trigger Selection
    default='auto' help="Auto/realtime orderpoints are triggered on new moves\nManual orderpoints are triggered via the orderpoints' view\nScheduled orderpoints are triggered via scheduled actions per location" required=True args: [('auto', 'Auto/realtime'), ('manual', 'Manual'), ('cron', 'Scheduled')]
Public methods (6)
  • create(self, vals_list)
    @api.model_create_multi
  • run_auto_replenishment(self, products, locations, location_field=False)
    @api.model
    Run the replenishment for all given products Selects the right orderpoints by locations and location_field :param products: browse record list of product.product :param locations: browse record list of stock.location :param location_field: should be location_id or location_src_id
  • run_cron_replenishment(self, location_ids=False)
    @api.model
  • run_replenishment(self, products=False)
    Run the replenishment for all potential products or only a selection
  • unlink(self)
  • write(self, vals)

New fields (1)
  • location_orderpoint_id Many2one → stock.location.orderpoint
    index=True args: 'stock.location.orderpoint', 'Stock location orderpoint'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…