Base Delivery Carrier Files

base_delivery_carrier_files
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/14.0/base_delivery_carrier_files
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYGeneric Modules/Warehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSStefan Rijnhart, Pedro M. Baeza, OCA Transbot, oca-travis, Weblate, OCA-git-bot, kiplangatdan, oca-ci, oca-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/delivery-carrier
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - stock
    - product
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - delivery
    - sale_stock
    - sale
    - sales_team
    - payment
    - account
    - analytic
    - utm
    - stock_account
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_delivery_carrier_file_form delivery.carrier.file.form delivery.carrier.file form New
view_delivery_carrier_file_generate delivery.carrier.file.generate.form delivery.carrier.file.generate form New
view_delivery_carrier_file_tree delivery.carrier.file.tree delivery.carrier.file tree New
view_delivery_carrier_form_inherit delivery.carrier.form.file delivery.carrier data Inherits delivery.view_delivery_carrier_form
view_picking_out_form_carrier_file stock.picking.form stock.picking data Inherits stock.view_picking_form
view_picking_out_search_carrier_file stock.picking.search stock.picking data Inherits stock.view_picking_internal_search
Models touched (5)

New fields (1)
  • carrier_file_id Many2one → delivery.carrier.file
    args: 'delivery.carrier.file', 'Carrier File'
Public methods (0)

No public methods.

New fields (6)
  • auto_export Boolean
    help='The file will be automatically generated when a delivery order is processed. If activated, each delivery order will be exported in a separate file.'
  • export_path Char
    size=256 args: 'Export Path'
  • group_pickings Boolean
    help='All the pickings will be grouped in the same file. Has no effect when the files are automatically exported at the delivery order process.'
  • name Char
    required=True size=64 args: 'Name'
  • type Selection
    required=True selection='get_type_selection' string='Type'
  • write_mode Selection
    required=True selection='get_write_mode_selection' string='Write on'
Public methods (3)
  • generate_files(self, picking_ids)
    @api.model
    Generate one or more files according to carrier_file configuration for all picking_ids One type of carrier file is generated at a time which can generate one or many files. :param int carrier_file_id: id of the carrier file configuration :param list picking_ids: list of ids of pickings for which we have to generate a file :return: True if successful
  • get_type_selection(self)
    @api.model
    Has to be inherited to add carriers
  • get_write_mode_selection(self)
    @api.model
    Selection can be inherited to add more write modes

New fields (2)
  • pickings Many2many → stock.picking
    default=_get_pickings string='Delivery Orders' args: 'stock.picking'
  • recreate Boolean
    help='If this option is used, new files will be generated for selected picking even if they already had one.\nBy default, delivery orders with existing file will be skipped.' args: 'Recreate files'
Public methods (1)
  • action_generate(self)
    Call the creation of the delivery carrier files

New fields (0)

No new fields.

Public methods (1)
  • write(self, values)

New fields (1)
  • carrier_file_generated Boolean
    copy=False help='The file for the delivery carrier has been generated.' readonly=True args: 'Carrier File Generated'
Public methods (1)
  • generate_carrier_files(self, auto=True, recreate=False)
    Generates all the files for a list of pickings according to their configuration carrier file. Does nothing on pickings without carrier or without carrier file configuration. Generate files only for outgoing pickings. :param list ids: list of ids of pickings for which we need a file :param auto: specify if we call the method from an automatic action (on process on picking as instance) or called manually from the wizard. When auto is True, only the carrier files set as "auto_export" are exported :return: True if successful
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/13.0/base_delivery_carrier_files
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Warehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSPedro M. Baeza, Víctor Martínez, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/delivery-carrier
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - stock
    - product
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - delivery
    - sale_stock
    - sale
    - sales_team
    - payment
    - account
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
    - stock_account
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_delivery_carrier_file_form delivery.carrier.file.form delivery.carrier.file form New
view_delivery_carrier_file_generate delivery.carrier.file.generate.form delivery.carrier.file.generate form New
view_delivery_carrier_file_tree delivery.carrier.file.tree delivery.carrier.file tree New
view_delivery_carrier_form_inherit delivery.carrier.form.file delivery.carrier data Inherits delivery.view_delivery_carrier_form
view_picking_out_form_carrier_file stock.picking.form stock.picking data Inherits stock.view_picking_form
view_picking_out_search_carrier_file stock.picking.search stock.picking data Inherits stock.view_picking_internal_search
Models touched (5)

New fields (1)
  • carrier_file_id Many2one → delivery.carrier.file
    comodel_name='delivery.carrier.file' string='Carrier File'
Public methods (0)

No public methods.

New fields (6)
  • auto_export Boolean
    help='The file will be automatically generated when a delivery order is processed. If activated, each delivery order will be exported in a separate file.'
  • export_path Char
    size=256 string='Export Path'
  • group_pickings Boolean
    help='All the pickings will be grouped in the same file. Has no effect when the files are automatically exported at the delivery order process.'
  • name Char
    required=True size=64 string='Name'
  • type Selection
    required=True selection=[('generic', 'Generic')] string='Type'
  • write_mode Selection
    required=True selection=[('disk', 'Disk')] string='Write on'
Public methods (1)
  • generate_files(self, picking_ids)
    @api.model
    Generate one or more files according to carrier_file configuration for all picking_ids One type of carrier file is generated at a time which can generate one or many files. :param int carrier_file_id: id of the carrier file configuration :param list picking_ids: list of ids of pickings for which we have to generate a file :return: True if successful

New fields (2)
  • pickings Many2many → stock.picking
    comodel_name='stock.picking' default=_get_pickings string='Delivery Orders'
  • recreate Boolean
    help='If this option is used, new files will be generated for selected picking even if they already had one.\nBy default, delivery orders with existing file will be skipped.' string='Recreate files'
Public methods (1)
  • action_generate(self)
    Call the creation of the delivery carrier files

New fields (0)

No new fields.

Public methods (1)
  • write(self, values)

New fields (1)
  • carrier_file_generated Boolean
    copy=False help='The file for the delivery carrier has been generated.' readonly=True string='Carrier File Generated'
Public methods (2)
  • action_done(self)
  • generate_carrier_files(self, auto=True, recreate=False)
    Generates all the files for a list of pickings according to their configuration carrier file. Does nothing on pickings without carrier or without carrier file configuration. Generate files only for outgoing pickings. :param list ids: list of ids of pickings for which we need a file :param auto: specify if we call the method from an automatic action (on process on picking as instance) or called manually from the wizard. When auto is True, only the carrier files set as "auto_export" are exported :return: True if successful
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/12.0/base_delivery_carrier_files
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYGeneric Modules/Warehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSoca-travis, Weblate, OCA-git-bot, Marc Poch @PlanetaTIC
WEBSITE
WEBSITEhttps://github.com/OCA/delivery-carrier
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - stock
    - product
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - delivery
    - sale_stock
    - sale
    - sales_team
    - payment
    - account
    - analytic
    - portal
    - http_routing
    - digest
    - stock_account
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_delivery_carrier_file_form delivery.carrier.file.form delivery.carrier.file form New
view_delivery_carrier_file_generate delivery.carrier.file.generate.form delivery.carrier.file.generate form New
view_delivery_carrier_file_tree delivery.carrier.file.tree delivery.carrier.file tree New
view_delivery_carrier_form_inherit delivery.carrier.form.file delivery.carrier data Inherits delivery.view_delivery_carrier_form
view_picking_out_form_carrier_file stock.picking.form stock.picking data Inherits stock.view_picking_form
view_picking_out_search_carrier_file stock.picking.search stock.picking data Inherits stock.view_picking_internal_search
Models touched (5)

New fields (1)
  • carrier_file_id Many2one → delivery.carrier.file
    args: 'delivery.carrier.file', 'Carrier File'
Public methods (0)

No public methods.

New fields (6)
  • auto_export Boolean
    help='The file will be automatically generated when a delivery order is processed. If activated, each delivery order will be exported in a separate file.'
  • export_path Char
    size=256 args: 'Export Path'
  • group_pickings Boolean
    help='All the pickings will be grouped in the same file. Has no effect when the files are automatically exported at the delivery order process.'
  • name Char
    required=True size=64 args: 'Name'
  • type Selection
    required=True selection='get_type_selection' string='Type'
  • write_mode Selection
    required=True selection='get_write_mode_selection' string='Write on'
Public methods (3)
  • generate_files(self, picking_ids)
    @api.model
    Generate one or more files according to carrier_file configuration for all picking_ids One type of carrier file is generated at a time which can generate one or many files. :param int carrier_file_id: id of the carrier file configuration :param list picking_ids: list of ids of pickings for which we have to generate a file :return: True if successful
  • get_type_selection(self)
    @api.model
    Has to be inherited to add carriers
  • get_write_mode_selection(self)
    @api.model
    Selection can be inherited to add more write modes

New fields (2)
  • pickings Many2many → stock.picking
    default=_get_pickings oldname='picking_ids' string='Delivery Orders' args: 'stock.picking'
  • recreate Boolean
    help='If this option is used, new files will be generated for selected picking even if they already had one.\nBy default, delivery orders with existing file will be skipped.' args: 'Recreate files'
Public methods (1)
  • action_generate(self)
    @api.multi
    Call the creation of the delivery carrier files

New fields (0)

No new fields.

Public methods (1)
  • write(self, values)
    @api.multi

New fields (1)
  • carrier_file_generated Boolean
    copy=False help='The file for the delivery carrier has been generated.' readonly=True args: 'Carrier File Generated'
Public methods (2)
  • action_done(self)
    @api.multi
  • generate_carrier_files(self, auto=True, recreate=False)
    @api.multi
    Generates all the files for a list of pickings according to their configuration carrier file. Does nothing on pickings without carrier or without carrier file configuration. Generate files only for outgoing pickings. :param list ids: list of ids of pickings for which we need a file :param auto: specify if we call the method from an automatic action (on process on picking as instance) or called manually from the wizard. When auto is True, only the carrier files set as "auto_export" are exported :return: True if successful
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/10.0/base_delivery_carrier_files
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYGeneric Modules/Warehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE), oca-travis, Weblate, OCA-git-bot, Tom Blauwendraat
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - stock
    - product
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - procurement
    - barcodes
    - web_planner
    - delivery
    - sale_stock
    - sale
    - sales_team
    - account
    - analytic
    - stock_account
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_delivery_carrier_file_form delivery.carrier.file.form delivery.carrier.file form New
view_delivery_carrier_file_generate delivery.carrier.file.generate.form delivery.carrier.file.generate form New
view_delivery_carrier_file_tree delivery.carrier.file.tree delivery.carrier.file tree New
view_delivery_carrier_form_inherit delivery.carrier.form.file delivery.carrier data Inherits delivery.view_delivery_carrier_form
view_picking_out_form_carrier_file stock.picking.form stock.picking data Inherits stock.view_picking_form
view_picking_out_search_carrier_file stock.picking.search stock.picking data Inherits stock.view_picking_internal_search
Models touched (5)

New fields (1)
  • carrier_file_id Many2one → delivery.carrier.file
    args: 'delivery.carrier.file', 'Carrier File'
Public methods (0)

No public methods.

New fields (6)
  • auto_export Boolean
    help='The file will be automatically generated when a delivery order is processed. If activated, each delivery order will be exported in a separate file.'
  • export_path Char
    size=256 args: 'Export Path'
  • group_pickings Boolean
    help='All the pickings will be grouped in the same file. Has no effect when the files are automatically exported at the delivery order process.'
  • name Char
    required=True size=64 args: 'Name'
  • type Selection
    required=True selection='get_type_selection' string='Type'
  • write_mode Selection
    required=True selection='get_write_mode_selection' string='Write on'
Public methods (3)
  • generate_files(self, picking_ids)
    @api.model
    Generate one or more files according to carrier_file configuration for all picking_ids One type of carrier file is generated at a time which can generate one or many files. :param int carrier_file_id: id of the carrier file configuration :param list picking_ids: list of ids of pickings for which we have to generate a file :return: True if successful
  • get_type_selection(self)
    @api.model
    Has to be inherited to add carriers
  • get_write_mode_selection(self)
    @api.model
    Selection can be inherited to add more write modes

New fields (2)
  • pickings Many2many → stock.picking
    default=_get_pickings oldname='picking_ids' string='Delivery Orders' args: 'stock.picking'
  • recreate Boolean
    help='If this option is used, new files will be generated for selected picking even if they already had one.\nBy default, delivery orders with existing file will be skipped.' args: 'Recreate files'
Public methods (1)
  • action_generate(self)
    @api.multi
    Call the creation of the delivery carrier files

New fields (0)

No new fields.

Public methods (1)
  • write(self, values)
    @api.multi

New fields (1)
  • carrier_file_generated Boolean
    copy=False help='The file for the delivery carrier has been generated.' readonly=True args: 'Carrier File Generated'
Public methods (2)
  • action_done(self)
    @api.multi
  • generate_carrier_files(self, auto=True, recreate=False)
    @api.multi
    Generates all the files for a list of pickings according to their configuration carrier file. Does nothing on pickings without carrier or without carrier file configuration. Generate files only for outgoing pickings. :param list ids: list of ids of pickings for which we need a file :param auto: specify if we call the method from an automatic action (on process on picking as instance) or called manually from the wizard. When auto is True, only the carrier files set as "auto_export" are exported :return: True if successful
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/9.0/base_delivery_carrier_files
VERSION
VERSION 1.2.3
CATEGORY
CATEGORYGeneric Modules/Warehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSStéphane Bidoul (ACSONE)
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - stock
    - product
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - report
    - procurement
    - barcodes
    - web_planner
    - delivery
    - sale_stock
    - sale
    - sales_team
    - account
    - analytic
    - web_tip
    - stock_account
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Base module for creation of carrier files (La Poste, TNT Express Shipper, ...).
Files are exported as text (csv, ...).
It contains :
- the base structure to handle the export of files on Delivery Orders
- an API to ease the generation of the files for the developers in sub-modules.

The delivery orders can be grouped in one files
or be exported each one in a separate file.
The files can be generated automatically
on the shipment of a Delivery Order or from a manual action.
They are exported to a defined path or
in a document directory of your choice if the "document" module is installed.

A generic carrier file is included in the module.
It can also be used as a basis to create your own sub-module.

Sub-modules already exist to generate file according to specs of :
 - La Poste (France) : delivery_carrier_file_laposte
 - TNT Express Shipper (France) : delivery_carrier_file_tnt
 - Make your own ! Look at the code of the modules above,
   it's trivial to create a sub-module for a carrier.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_delivery_carrier_file_form delivery.carrier.file.form delivery.carrier.file form New
view_delivery_carrier_file_generate delivery.carrier.file.generate delivery.carrier.file.generate form New
view_delivery_carrier_file_tree delivery.carrier.file.tree delivery.carrier.file tree New
view_delivery_carrier_form_inherit delivery.carrier.form.file delivery.carrier data Inherits delivery.view_delivery_carrier_form
view_picking_out_form_carrier_file stock.picking.out.form stock.picking.out data Inherits stock.view_picking_out_form
view_picking_out_search_carrier_file stock.picking.out.search stock.picking.out data Inherits stock.view_picking_out_search
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • generate_files(self, cr, uid, carrier_file_id, picking_ids, context=None)
    Generate one or more files according to carrier_file configuration for all picking_ids One type of carrier file is generated at a time which can generate one or many files. :param int carrier_file_id: id of the carrier file configuration :param list picking_ids: list of ids of pickings for which we have to generate a file :return: True if successful
  • get_type_selection(self, cr, uid, context=None)
    Has to be inherited to add carriers
  • get_write_mode_selection(self, cr, uid, context=None)
    Selection can be inherited to add more write modes

New fields (0)

No new fields.

Public methods (1)
  • action_generate(self, cr, uid, ids, context=None)
    Call the creation of the delivery carrier files

New fields (0)

No new fields.

Public methods (2)
  • action_done(self, cr, uid, ids, context=None)
  • generate_carrier_files(self, cr, uid, ids, auto=True, recreate=False, context=None)
    Generates all the files for a list of pickings according to their configuration carrier file. Does nothing on pickings without carrier or without carrier file configuration. Generate files only for outgoing pickings. :param list ids: list of ids of pickings for which we need a file :param auto: specify if we call the method from an automatic action (on process on picking as instance) or called manually from the wizard. When auto is True, only the carrier files set as "auto_export" are exported :return: True if successful

New fields (0)

No new fields.

Public methods (1)
  • copy(self, cr, uid, rec_id, default=None, context=None)
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/8.0/base_delivery_carrier_files
VERSION
VERSION 1.2.5
CATEGORY
CATEGORYGeneric Modules/Warehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSStéphane Bidoul, Yannick Vaucher, Thomas Rehn, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate, OCA-git-bot, Tom Blauwendraat, Kalantojus Karolis
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:25
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - stock
    - product
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
    - procurement
    - board
    - web_kanban_gauge
    - web_kanban_sparkline
    - delivery
    - sale_stock
    - sale
    - sales_team
    - account_voucher
    - account
    - analytic
    - edi
    - email_template
    - stock_account
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_delivery_carrier_file_form delivery.carrier.file.form delivery.carrier.file form New
view_delivery_carrier_file_generate delivery.carrier.file.generate.form delivery.carrier.file.generate form New
view_delivery_carrier_file_tree delivery.carrier.file.tree delivery.carrier.file tree New
view_delivery_carrier_form_inherit delivery.carrier.form.file delivery.carrier data Inherits delivery.view_delivery_carrier_form
view_picking_out_form_carrier_file stock.picking.form stock.picking data Inherits stock.view_picking_form
view_picking_out_search_carrier_file stock.picking.search stock.picking data Inherits sale_stock.view_picking_internal_search_inherit
Models touched (5)

New fields (1)
  • carrier_file_id Many2one → delivery.carrier.file
    args: 'delivery.carrier.file', 'Carrier File'
Public methods (0)

No public methods.

New fields (6)
  • auto_export Boolean
    help='The file will be automatically generated when a delivery order is processed. If activated, each delivery order will be exported in a separate file.' args: 'Export at delivery order process'
  • export_path Char
    size=256 args: 'Export Path'
  • group_pickings Boolean
    help='All the pickings will be grouped in the same file. Has no effect when the files are automatically exported at the delivery order process.' args: 'Group all pickings in one file'
  • name Char
    required=True size=64 args: 'Name'
  • type Selection
    required=True selection='get_type_selection' string='Type'
  • write_mode Selection
    required=True selection='get_write_mode_selection' string='Write on'
Public methods (3)
  • generate_files(self, picking_ids)
    @api.multi
    Generate one or more files according to carrier_file configuration for all picking_ids One type of carrier file is generated at a time which can generate one or many files. :param int carrier_file_id: id of the carrier file configuration :param list picking_ids: list of ids of pickings for which we have to generate a file :return: True if successful
  • get_type_selection(self)
    @api.model
    Has to be inherited to add carriers
  • get_write_mode_selection(self)
    @api.model
    Selection can be inherited to add more write modes

New fields (2)
  • pickings Many2many → stock.picking
    default=_get_pickings oldname='picking_ids' string='Delivery Orders' args: 'stock.picking'
  • recreate Boolean
    help='If this option is used, new files will be generated for selected picking even if they already had one.\nBy default, delivery orders with existing file will be skipped.' args: 'Recreate files'
Public methods (1)
  • action_generate(self)
    @api.multi
    Call the creation of the delivery carrier files

New fields (0)

No new fields.

Public methods (1)
  • write(self, values)
    @api.multi

New fields (1)
  • carrier_file_generated Boolean
    copy=False help='The file for the delivery carrier has been generated.' readonly=True args: 'Carrier File Generated'
Public methods (2)
  • action_done(self)
    @api.multi
  • generate_carrier_files(self, auto=True, recreate=False)
    @api.multi
    Generates all the files for a list of pickings according to their configuration carrier file. Does nothing on pickings without carrier or without carrier file configuration. Generate files only for outgoing pickings. :param list ids: list of ids of pickings for which we need a file :param auto: specify if we call the method from an automatic action (on process on picking as instance) or called manually from the wizard. When auto is True, only the carrier files set as "auto_export" are exported :return: True if successful
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/7.0/base_delivery_carrier_files
VERSION
VERSION 1.2.3
CATEGORY
CATEGORYGeneric Modules/Warehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSYannick Vaucher, Romain Deheele, Guewen Baconnier, Alexandre Fayolle, Sandy Carter, Pedro M. Baeza, Launchpad Translations on behalf of stock-logistic-core-editors, Rudolf Schnapka, Alberto Garcia, moylop260
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - stock
    - product
    - process
    - web
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - account
    - analytic
    - board
    - edi
    - email_template
    - delivery
    - sale
    - account_voucher
    - purchase
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Base module for creation of carrier files (La Poste, TNT Express Shipper, ...).
Files are exported as text (csv, ...).
It contains :
- the base structure to handle the export of files on Delivery Orders
- an API to ease the generation of the files for the developers in sub-modules.

The delivery orders can be grouped in one files
or be exported each one in a separate file.
The files can be generated automatically
on the shipment of a Delivery Order or from a manual action.
They are exported to a defined path or
in a document directory of your choice if the "document" module is installed.

A generic carrier file is included in the module.
It can also be used as a basis to create your own sub-module.

Sub-modules already exist to generate file according to specs of :
 - La Poste (France) : delivery_carrier_file_laposte
 - TNT Express Shipper (France) : delivery_carrier_file_tnt
 - Make your own ! Look at the code of the modules above,
   it's trivial to create a sub-module for a carrier.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_delivery_carrier_file_form delivery.carrier.file.form delivery.carrier.file form New
view_delivery_carrier_file_generate delivery.carrier.file.generate delivery.carrier.file.generate form New
view_delivery_carrier_file_tree delivery.carrier.file.tree delivery.carrier.file tree New
view_delivery_carrier_form_inherit delivery.carrier.form.file delivery.carrier data Inherits delivery.view_delivery_carrier_form
view_picking_out_form_carrier_file stock.picking.out.form stock.picking.out data Inherits stock.view_picking_out_form
view_picking_out_search_carrier_file stock.picking.out.search stock.picking.out data Inherits stock.view_picking_out_search
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • generate_files(self, cr, uid, carrier_file_id, picking_ids, context=None)
    Generate one or more files according to carrier_file configuration for all picking_ids One type of carrier file is generated at a time which can generate one or many files. :param int carrier_file_id: id of the carrier file configuration :param list picking_ids: list of ids of pickings for which we have to generate a file :return: True if successful
  • get_type_selection(self, cr, uid, context=None)
    Has to be inherited to add carriers
  • get_write_mode_selection(self, cr, uid, context=None)
    Selection can be inherited to add more write modes

New fields (0)

No new fields.

Public methods (1)
  • action_generate(self, cr, uid, ids, context=None)
    Call the creation of the delivery carrier files

New fields (0)

No new fields.

Public methods (2)
  • action_done(self, cr, uid, ids, context=None)
  • generate_carrier_files(self, cr, uid, ids, auto=True, recreate=False, context=None)
    Generates all the files for a list of pickings according to their configuration carrier file. Does nothing on pickings without carrier or without carrier file configuration. Generate files only for outgoing pickings. :param list ids: list of ids of pickings for which we need a file :param auto: specify if we call the method from an automatic action (on process on picking as instance) or called manually from the wizard. When auto is True, only the carrier files set as "auto_export" are exported :return: True if successful

New fields (0)

No new fields.

Public methods (1)
  • copy(self, cr, uid, rec_id, default=None, context=None)
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/6.1/base_delivery_carrier_files
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYGeneric Modules/Warehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSYannick Vaucher, Romain Deheele, Alexandre Fayolle, unknown, Guewen Baconnier @ Camptocamp
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:04:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - stock
    - product
    - process
    - decimal_precision
    - account
    - base_setup
    - analytic
    - board
    - edi
    - email_template
    - mail
    - base_tools
    - delivery
    - sale
    - procurement
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Base module for creation of carrier files  (La Poste, TNT Express Shipper, ...). exported as text (csv, ...).
It contains the base structure to handle the export of files on Delivery Orders and an API to ease the generation of the files for the developers in sub-modules.

The delivery orders can be grouped in one files or be exported each one in a separate file.
The files can be generated automatically on the shipment of a Delivery Order or from a manual action.
They are exported to a defined path or in a document directory of your choice if the "document" module is installed.

A generic carrier file is included in the module. It can also be used as a basis to create your own sub-module.

Sub-modules already exist to generate file according to specs of :
 - La Poste (France) : delivery_carrier_file_laposte
 - TNT Express Shipper (France) : delivery_carrier_file_tnt
 - Make your own ! Look at the code of the modules above, it's trivial to create a sub-module for a carrier.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_delivery_carrier_file_form delivery.carrier.file.form delivery.carrier.file form New
view_delivery_carrier_file_generate delivery.carrier.file.generate delivery.carrier.file.generate form New
view_delivery_carrier_file_tree delivery.carrier.file.tree delivery.carrier.file tree New
view_delivery_carrier_form_inherit delivery.carrier.form.file delivery.carrier data Inherits delivery.view_delivery_carrier_form
view_picking_out_form_carrier_file stock.picking.out.form stock.picking data Inherits stock.view_picking_out_form
view_picking_out_search_carrier_file stock.picking.out.search stock.picking data Inherits stock.view_picking_out_search
Models touched (0)

No models found for this module.