Picking dispatch
picking_dispatch · OCA/stock-logistics-workflow
Health
63/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 101 months ago
-
Required by20/252 modules depend on it
-
Maturity18/25In 3 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
1.34 MB
Module directory on disk
Code analysis
25 migration notes
10 models
15 views
0 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
CheckAssignAll— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcePickingDispatch— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (9 methods) migration-api-multi-one · sourceProduct— Class 'Product' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceProduct— Class 'Product' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceStockMove— Class 'StockMove' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourceStockMove— Class 'StockMove' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourcedispatch_assign_picker— Class 'dispatch_assign_picker' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcedispatch_assign_picker— Class 'dispatch_assign_picker' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceir_cron_dispatch_check_assign_all— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · sourcepicking_dispatch_creator— Class 'picking_dispatch_creator' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourcepicking_dispatch_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcepicking_dispatch_start— Class 'picking_dispatch_start' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcepicking_dispatch_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceres_company— Class 'res_company' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceres_company— Class 'res_company' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.report`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv.orm`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 15
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
picking_dispatch_form |
picking.dispatch.form | picking.dispatch | form | New |
picking_dispatch_search |
picking.dispatch.search | picking.dispatch | search | New |
picking_dispatch_tree |
picking.dispatch.tree | picking.dispatch | tree | New |
product_normal_form_view |
product.normal.form | product.product | form | Inherits product.product_normal_form_view |
report_picking_dispatch |
report_picking_dispatch | ir.ui.view | qweb | New |
view_company_form_inherit |
res.company.form.inherit | res.company | form | Inherits base.view_company_form |
view_create_picking_dispatch |
picking_dispatch_create_form | picking.dispatch.creator | form | New |
view_dispatch_check_assign_all |
picking.dispatch.check.assign.all.form | picking.dispatch.check.assign.all | form | New |
view_move_form |
stock.move.form | stock.move | form | Inherits stock.view_move_form |
view_move_search |
stock.move.search | stock.move | search | Inherits stock.view_move_search |
view_move_tree_receipt_picking |
stock.move.tree2 | stock.move | tree | Inherits stock.view_move_tree_receipt_picking |
view_picking_dispatch_assign_picker |
picking.dispatch.assign.picker.form | picking.dispatch.assign.picker | form | New |
view_picking_dispatch_start |
picking.dispatch.start.form | picking.dispatch.start | form | New |
view_picking_form |
stock.picking.form.dispatch | stock.picking | form | Inherits stock.view_picking_form |
view_picking_internal_search |
stock.picking.search.related_dispatch_ids | stock.picking | search | Inherits stock.view_picking_internal_search |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 10
New fields (9)
-
backorder_idMany2one → picking.dispatchhelp='if this dispatch was split, this links to the dispatch order containing the other part which was processed'select=True args: 'picking.dispatch', 'Back Order of' -
company_idMany2one → res.companydefault=_default_companyrequired=True args: 'res.company', 'Company' -
dateDatedefault=fields.Date.context_todayhelp='date on which the picking dispatched is to be processed'readonly=Truerequired=Trueselect=Truestates={'draft': [('readonly', False)], 'assigned': [('readonly', False)]} args: 'Date' -
move_idsOne2many → stock.movecopy=Falsehelp='the list of moves to be processed'readonly=Truestates={'draft': [('readonly', False)]} args: 'stock.move', 'dispatch_id', 'Moves' -
nameCharcopy=Falsedefault=<expr>help='Name of the picking dispatch'required=Trueselect=Truestates={'draft': [('readonly', False)]}unique=True args: 'Name' -
notesTexthelp='free form remarks' args: 'Notes' -
picker_idMany2one → res.usershelp='the user to which the pickings are assigned'readonly=Trueselect=Truestates={'draft': [('readonly', False)], 'assigned': [('readonly', False), ('required', True)]} args: 'res.users', 'Picker' -
related_picking_idsOne2many → stock.pickingcompute='_get_related_picking'readonly=Truestring='Related Dispatch Picking' args: 'stock.picking' -
stateSelectioncopy=Falsedefault='draft'help='the state of the picking. Workflow is draft -> assigned -> progress -> done or cancel'readonly=Trueselect=True args: [('draft', 'Draft'), ('assigned', 'Assigned'), ('progress', 'In Progress'), ('done', 'Done'), ('cancel', 'Cancelled')], 'Dispatch State'
-
action_assign(self)@api.multi -
action_assign_moves(self, cr, uid, ids, context=None) -
action_cancel(self)@api.multi -
action_done(self)@api.multi -
action_progress(self)@api.multi -
assert_start_ok(self)@api.multi -
check_assign_all(self, domain=None)@api.multiTry to assign moves of a selection of dispatches Called from a cron -
check_finished(self)@api.multiset the dispatch to finished if all the moves are finished
New fields (0)
No new fields.
Public methods (1)-
assign_picker(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (1)-
check(self)@api.multi
New fields (0)
No new fields.
Public methods (1)-
action_create_dispatch(self, cr, uid, ids, context=None)Open the historical margin view
New fields (0)
No new fields.
Public methods (1)-
start(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (4)-
action_cancel(self, cr, uid, ids, context=None)in addition to what the method in the parent class does, cancel the dispatches for which all moves where cancelled -
action_done(self, cr, uid, ids, context=None)in addition to the parent method does, set the dispatch done if all moves are done or canceled -
copy_data(self, cr, uid, id, default=None, context=None) -
do_partial(self, cr, uid, ids, partial_datas, context=None)in addition to what the original method does, create backorder picking.dispatches and set the state of picing.dispatch according to the state of moves state
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…