TIP: You can type at any time to perform a new search.
Delivery CTT Express
delivery_cttexpress · OCA/delivery-carrier
- Repository
- OCA/delivery-carrier · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Delivery
- Folder size
- 0.15 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/delivery-carrier
- Last tracking update
- 2026-08-07 08:42:52
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- OCA-git-bot, oca-ci, Angel Rivas, eugenio
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
CTT Express Iberic Web Services API intration with Odoo. Valid for Portugal and Spain.
Code Analysis ⓘ
Views touched (4)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
delivery_manifest_wizard_form |
cttexpress.manifest.wizard | form | New | |
delivery_pickup_wizard_form |
cttexpress.pickup.wizard | form | New | |
view_delivery_carrier_form |
delivery.carrier | form | Inherits delivery.view_delivery_carrier_form | |
view_picking_withcarrier_out_form |
stock.picking | form | Inherits stock_delivery.view_picking_withcarrier_out_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (4)
New fields (6)
-
attachment_idsMany2many → ir.attachmentcomodel_name='ir.attachment'readonly=Truestring='Manifests' -
carrier_idsMany2many → delivery.carriercomodel_name='delivery.carrier'domain=[('delivery_type', '=', 'cttexpress')]help='Leave empty to gather all the CTT account manifests'string='Filter accounts' -
document_typeSelectiondefault='XLSX'required=Trueselection=[('XLSX', 'Excel'), ('PDF', 'PDF')]string='Format' -
from_dateDatedefault=fields.Date.context_todayrequired=True -
stateSelectiondefault='new'readonly=Trueselection=[('new', 'new'), ('done', 'done')] -
to_dateDatedefault=fields.Date.context_todayrequired=True
-
get_manifest(self)List of shippings for the given dates as CTT provides them
New fields (6)
-
carrier_idMany2one → delivery.carriercomodel_name='delivery.carrier'domain=[('delivery_type', '=', 'cttexpress')] -
codeCharreadonly=True -
delivery_dateDatedefault=fields.Date.context_todayrequired=True -
max_hourFloatdefault=23.99required=True -
min_hourFloatrequired=True -
stateSelectiondefault='new'readonly=Trueselection=[('new', 'new'), ('done', 'done')]
-
create_pickup_request(self)Get the pickup code
New fields (10)
-
cttexpress_agencyCharstring='Agency code' -
cttexpress_contractCharstring='Contract code' -
cttexpress_customerCharstring='Customer code' -
cttexpress_document_formatSelectiondefault='PDF'selection=[('PDF', 'PDF'), ('PNG', 'PNG'), ('BMP', 'BMP')]string='Document format' -
cttexpress_document_model_codeSelectiondefault='SINGLE'selection=[('SINGLE', 'Single'), ('MULTI1', 'Multi 1'), ('MULTI3', 'Multi 3'), ('MULTI4', 'Multi 4')]string='Document model' -
cttexpress_document_offsetIntegerstring='Document Offset' -
cttexpress_passwordCharstring='Password' -
cttexpress_shipping_typeSelectionselection=CTTEXPRESS_SERVICESstring='Shipping type' -
cttexpress_userCharstring='CTT Express User' -
delivery_typeSelectionondelete={'cttexpress': 'set default'}selection_add=[('cttexpress', 'CTT Express')]
-
action_ctt_validate_user(self)Maps to API's ValidateUser method :raises UserError: If the user credentials aren't valid -
cttexpress_cancel_shipment(self, pickings)Cancel the expedition :param recordset: pickings `stock.picking` recordset :returns boolean: True if success -
cttexpress_get_label(self, reference)Generate label for picking :param str reference: shipping reference :returns tuple: (file_content, file_name) -
cttexpress_get_tracking_link(self, picking)Wildcard method for CTT Express tracking link. :param record picking: `stock.picking` record :return str: tracking url -
cttexpress_send_shipping(self, pickings)CTT Express wildcard method called when a picking is confirmed :param record pickings: `stock.picking` recordset :raises UserError: On any API error :return dict: With tracking number and delivery price (always 0) -
cttexpress_tracking_state_update(self, picking)Wildcard method for CTT Express tracking followup :param recod picking: `stock.picking` record
New fields (0)
No new fields.
Public methods (1)-
cttexpress_get_label(self)Get label for current picking :return tuple: (filename, filecontent)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 136 days ago
- Last activity
- 4 days ago
- Repository
- OCA/delivery-carrier
- Pull request
- [19.0][MIG] delivery_cttexpress: Migration to 19.0 (#1157)