PostLogistics Labels WebService
delivery_carrier_label_postlogistics · OCA/delivery-carrier
-
Security10/251 grave, 0 minor
-
Activity0/25Last human commit 65 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Security warnings
res.company— Adds credential fields (postlogistics_password) with no `groups=` to 'res.company', which every user (portal/public included) can read under core's access rights: they can read them over RPC. Restrict the fields with `groups=` (e.g. base.group_system). CWE-200. acl-public-read-secret
Found by automated static analysis: these patterns are usually risky, but only a manual review of the module can confirm a real issue. Methodology
Migration considerations
DeliveryCarrier— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (4 methods) migration-api-multi-one · sourcePostlogisticsAuth— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourceStockPicking— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceStockQuantPackage— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourcepostlogistics_license_view_list— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_delivery_carrier_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 · sourceview_picking_withcarrier_out_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 · sourceview_postlogistics_auth_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 · 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 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
delivery_carrier_option_view_form |
delivery_base.delivery_carrier_option.view_form | delivery.carrier.option | form | Inherits base_delivery_carrier_label.delivery_carrier_option_view_form |
postlogistics_license_view_list |
postlogistics.license.view_list | postlogistics.license | tree | New |
view_delivery_carrier_form |
delivery_base.delivery.carrier.view_form | delivery.carrier | form | Inherits base_delivery_carrier_label.view_delivery_carrier_form |
view_picking_withcarrier_out_form |
delivery.stock.picking.out.form | stock.picking | form | Inherits base_delivery_carrier_label.view_picking_withcarrier_out_form |
view_postlogistics_auth_form |
postlogistics.auth.form | postlogistics.auth | form | New |
view_postlogistics_config_settings |
postlogistics settings | res.config.settings | form | Inherits base.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 10
-
allowed_tmpl_options_idsMany2many → delivery.carrier.template.optioncompute='_compute_allowed_options_ids'store=False args: 'delivery.carrier.template.option' -
delivery_typeSelectionselection_add=[('postlogistics', 'Post logistics')] -
postlogistics_basic_service_idsOne2many → delivery.carrier.template.optioncomodel_name='delivery.carrier.template.option'compute='_compute_basic_service_ids'help='Basic Service defines the available additional options for this delivery method'string='PostLogistics Service Group' -
postlogistics_license_idMany2one → postlogistics.licensecomodel_name='postlogistics.license'string='PostLogistics Franking License'
-
postlogistics_cancel_shipment(self, pickings)@api.multi -
postlogistics_get_tracking_link(self, picking)@api.multi -
postlogistics_rate_shipment(self, order)@api.multi -
postlogistics_send_shipping(self, pickings)@api.multi
-
allowed_tmpl_options_idsMany2many → delivery.carrier.template.optioncompute='_compute_allowed_tmpl_options_ids'store=False args: 'delivery.carrier.template.option' -
nameChartranslate=True
No public methods.
-
nameChartranslate=True -
postlogistics_additonial_service_idsMany2many → delivery.carrier.template.optioncolumn1='basic_service_id'column2='service_id'comodel_name='delivery.carrier.template.option'domain=[('postlogistics_type', '=', 'additional')]relation='postlogistics_compatibility_service_rel'string='Compatible Additional Services' -
postlogistics_basic_service_idsMany2many → delivery.carrier.template.optioncolumn1='service_id'column2='basic_service_id'comodel_name='delivery.carrier.template.option'domain=[('postlogistics_type', '=', 'basic')]help='List of basic service for which this service is compatible'relation='postlogistics_compatibility_service_rel'string='Basic Services' -
postlogistics_delivery_instruction_idsMany2many → delivery.carrier.template.optioncolumn1='basic_service_id'column2='service_id'comodel_name='delivery.carrier.template.option'domain=[('postlogistics_type', '=', 'delivery')]relation='postlogistics_compatibility_service_rel'string='Compatible Delivery Instructions' -
postlogistics_typeSelectionselection=POSTLOGISTIC_TYPESstring='PostLogistics option type'
No public methods.
-
authentication_urlChardefault='https://wedecint.post.ch/WEDECOAuth/token'required=Truestring='Authentication url' -
client_idCharstring='Client ID' -
client_secretCharstring='Client Secret' -
generate_label_urlChardefault='https://wedecint.post.ch/api/barcode/v1/generateAddressLabel'required=Truestring='Generate label url' -
stateSelectiondefault='todo'required=True args: [('todo', 'OAuth Config'), ('done', 'Complete')]
-
default_get(self, field_list)@api.model -
generate_access_token(self)@api.multi -
reset_access_token(self)@api.multi
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>required=Truestring='Company' -
nameCharrequired=Truestring='Description'translate=True -
numberCharrequired=Truestring='Number' -
sequenceIntegerhelp='Gives the sequence on company to define priority on license when multiple licenses are available for the same group of service.'string='Sequence'
No public methods.
-
postlogistics_label_layoutMany2one → delivery.carrier.template.optioncomodel_name='delivery.carrier.template.option'domain=[('postlogistics_type', '=', 'label_layout')]string='Default label layout' -
postlogistics_license_idsOne2many → postlogistics.licensecomodel_name='postlogistics.license'inverse_name='company_id'string='PostLogistics Franking License' -
postlogistics_logoBinaryhelp='Optional company logo to show on label.\nIf using an image / logo, please note the following:\n– Image width: 47 mm\n– Image height: 25 mm\n– File size: max. 30 kb\n– File format: GIF or PNG\n– Colour table: indexed colours, max. 200 colours\n– The logo will be printed rotated counter-clockwise by 90°\nWe recommend using a black and white logo for printing in the ZPL2 format.'string='Company Logo on Post labels' -
postlogistics_officeCharhelp='Post office which will receive the shipped goods'string='Domicile Post office' -
postlogistics_output_formatMany2one → delivery.carrier.template.optioncomodel_name='delivery.carrier.template.option'domain=[('postlogistics_type', '=', 'output_format')]string='Default output format' -
postlogistics_passwordCharargs: 'Password' -
postlogistics_proclima_logoBooleanargs: 'Print ProClima logo' -
postlogistics_resolutionMany2one → delivery.carrier.template.optioncomodel_name='delivery.carrier.template.option'domain=[('postlogistics_type', '=', 'resolution')]string='Default resolution' -
postlogistics_tracking_formatSelectiondefault='postlogistics'string='Tracking number format' args: [('postlogistics', 'Use default postlogistics tracking numbers'), ('picking_num', 'Use picking number with pack counter')] -
postlogistics_usernameCharargs: 'Username' -
postlogistics_wsdl_urlCharcompute='_compute_wsdl_url'string='WSDL URL'
No public methods.
-
proclima_logoBooleanhelp='The “pro clima” logo indicates an item for which the surcharge for carbon-neutral shipping has been paid and a contract to that effect has been signed. For Letters with barcode (BMB) domestic, the ProClima logo is printed automatically (at no additional charge)'related='company_id.postlogistics_proclima_logo' -
tracking_formatSelectionhelp='Allows you to define how the ItemNumber (the last 8 digits) of the tracking number will be generated:\n- Default postlogistics numbers: The webservice generates it for you.\n- Picking number with pack counter: Generate it using the digits of picking name and add the pack number. 2 digits forpack number and 6 digits for picking number. (eg. 07000042 for picking 42 and 7th pack'related='company_id.postlogistics_tracking_format'selection=[('postlogistics', 'Use default postlogistics tracking numbers'), ('picking_num', 'Use picking number with pack counter')]string='Tracking number format'type='selection'
No public methods.
No new fields.
Public methods (0)No public methods.
-
delivery_fixed_dateDatehelp='Specific delivery date (ZAW3217)' args: 'Fixed delivery date' -
delivery_mobileCharhelp='For notify delivery by telephone (ZAW3213)' args: 'Mobile' -
delivery_phoneCharhelp='For notify delivery by telephone (ZAW3213)' args: 'Phone' -
delivery_placeCharhelp='For Deposit item service (ZAW3219)' args: 'Delivery Place'
-
generate_shipping_labels(self)@api.multiAdd label generation for Postlogistics -
postlogistics_cod_amount(self)@api.multiReturn the Postlogistic Cash on Delivery amount of a picking If the picking delivers the whole sales order, we use the total amount of the sales order. Otherwise, we don't know the value of each picking so we raise an error. The user has to create packages with the cash on delivery price on each package.
-
postlogistics_manual_cod_amountFloathelp='If the cash on delivery amount for this package is different than the total of the sales order, write the amount there.'string='Postlogistics Cash On Delivery Amount'
-
postlogistics_cod_amount(self)@api.multiReturn the Postlogistic Cash on Delivery amount of a package If we have only 1 package which delivers the whole sales order we use the total amount of the sales order. Otherwise we don't know the value of each package so we raise an error and the user has to write the prices on the packages. When a price is manually set on a package, it's always used as the cash on delivery amount.
Loading…
Loading…
Loading…
Loading…
Loading…