Repository
OCA/delivery-carrier · module folder · Try on Runboat
Module version
1.0.2
Category
Generic Modules/Warehouse
Folder size
0.72 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/delivery-carrier
Last tracking update
2026-08-07 07:47:34
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Stefan Rijnhart, Pedro M. Baeza, Weblate, OCA Transbot, OCA-git-bot, oca-travis, kiplangatdan, oca-ci, oca-git-bot
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits delivery.view_delivery_carrier_form
view_picking_out_form_carrier_file stock.picking.form stock.picking form Inherits stock.view_picking_form
view_picking_out_search_carrier_file stock.picking.search stock.picking search Inherits stock.view_picking_internal_search
HTTP endpoints (0)

No HTTP endpoints found for this module.

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

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…