Carrier labels - Picking dispatch (link)
delivery_carrier_label_dispatch · OCA/delivery-carrier
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
DeliveryCarrierLabelGenerate— Class 'DeliveryCarrierLabelGenerate' 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 · sourceDeliveryCarrierLabelGenerate— Class 'DeliveryCarrierLabelGenerate' 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 · sourcePickingDispatch— Class 'PickingDispatch' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcepicking_dispatch_apply_carrier— Class 'picking_dispatch_apply_carrier' 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_apply_carrier— Class 'picking_dispatch_apply_carrier' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Since 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
- Since 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
- Since 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
[Link module] Carrier labels - Picking dispatch
This module adds a wizard on picking dispatch to generate the labels of the packs. The labels are merged in one PDF file.
If you want multiple labels for one picking, all the moves should have been put in a pack before the labels can be printed.
If you don't define your pack it will be considered a picking is a single pack.
Contributors
- Yannick Vaucher yannick.vaucher@camptocamp.com
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 |
|---|---|---|---|---|
picking_dispatch_form |
picking.dispatch.form | picking.dispatch | form | Inherits picking_dispatch.picking_dispatch_form |
view_delivery_carrier_label_generate |
Generate Carriers Labels | delivery.carrier.label.generate | form | New |
view_picking_dispatch_apply_carrier |
picking.dispatch.apply.carrier.form | picking.dispatch.apply.carrier | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (1)-
action_generate_labels(self, cr, uid, ids, context=None)Call the creation of the delivery carrier label of the missing labels and get the existing ones Then merge all of them in a single PDF
No new fields.
Public methods (5)-
action_set_options(self, cr, uid, ids, context=None)Apply options to picking of the dispatch This will replace all carrier options in picking -
carrier_id_change(self, cr, uid, ids, carrier_id, context=None)Inherit this method in your module -
create(self, cr, uid, values, context=None)Set the default options when the delivery method is set on creation So we are sure that the options are always in line with the current delivery method. -
option_ids_change(self, cr, uid, ids, option_ids, carrier_id, context=None) -
write(self, cr, uid, ids, values, context=None)Set the default options when the delivery method is changed. So we are sure that the options are always in line with the current delivery method.
No new fields.
Public methods (1)-
apply(self, cr, uid, ids, context=None)
Loading…
Loading…