Purchase - Transport Addresses

purchase_transport_multi_address
REPOSITORY
REPOSITORYOCA/stock-logistics-transport
GIT
GIThttps://github.com/OCA/stock-logistics-transport.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-transport/tree/10.0/purchase_transport_multi_address
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWarehouse
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)
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/stock-logistics-transport:
    - stock_transport_multi_address
    - sale_transport_multi_address
odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - procurement
    - barcodes
    - web_planner
    - account
    - analytic
    - sale_stock
    - sale
    - sales_team
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
purchase_order_form purchase_order_form purchase.order field Inherits purchase.purchase_order_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • create_procurement_purchase_order(self, procurement, po_vals, line_vals)
    @api.model

New fields (2)
  • consignee_id Many2one → res.partner
    domain=[('is_consignee', '=', True)] help='The person to whom the shipment is to be delivered.' args: 'res.partner', 'Consignee'
  • origin_address_id Many2one → res.partner
    args: 'res.partner', 'Origin Address'
Public methods (4)
  • action_picking_create(self)
    @api.multi
  • new_onchange_dest_address_id(self)
    @api.onchange('dest_address_id')
    Find a picking type from the address If the address can be an internal warehouse or a customer, the picking type is changed accordingly. This intentionally overrides the original without super, and should be consistent with the module purchase_requisition_transport_multi_address. A similar logic to choose the picking type is used in the module framework_agreement_sourcing in github.com/OCA/vertical-ngo.
  • onchange_partner_id(self, partner_id)
    @api.multi
  • onchange_picking_type_id(self)
    @api.onchange('picking_type_id')
    If the picking type has an address, use it. Do not empty the address none is found, because that gives a short circuit with the onchange of the address.
REPOSITORY
REPOSITORYOCA/stock-logistics-transport
GIT
GIThttps://github.com/OCA/stock-logistics-transport.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-transport/tree/9.0/purchase_transport_multi_address
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWarehouse
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)
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:24
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/stock-logistics-transport:
    - stock_transport_multi_address
    - sale_transport_multi_address
odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - report
    - procurement
    - barcodes
    - web_planner
    - account
    - analytic
    - web_tip
    - sale_stock
    - sale
    - sales_team
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
purchase_order_form purchase_order_form purchase.order field Inherits purchase.purchase_order_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • create_procurement_purchase_order(self, procurement, po_vals, line_vals)
    @api.model

New fields (2)
  • consignee_id Many2one → res.partner
    domain=[('is_consignee', '=', True)] help='The person to whom the shipment is to be delivered.' args: 'res.partner', 'Consignee'
  • origin_address_id Many2one → res.partner
    args: 'res.partner', 'Origin Address'
Public methods (4)
  • action_picking_create(self)
    @api.multi
  • new_onchange_dest_address_id(self)
    @api.onchange('dest_address_id')
    Find a picking type from the address If the address can be an internal warehouse or a customer, the picking type is changed accordingly. This intentionally overrides the original without super, and should be consistent with the module purchase_requisition_transport_multi_address. A similar logic to choose the picking type is used in the module framework_agreement_sourcing in github.com/OCA/vertical-ngo.
  • onchange_partner_id(self, partner_id)
    @api.multi
  • onchange_picking_type_id(self)
    @api.onchange('picking_type_id')
    If the picking type has an address, use it. Do not empty the address none is found, because that gives a short circuit with the onchange of the address.
REPOSITORY
REPOSITORYOCA/stock-logistics-transport
GIT
GIThttps://github.com/OCA/stock-logistics-transport.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-transport/tree/8.0/purchase_transport_multi_address
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWarehouse
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, Alexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:26
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/stock-logistics-transport:
    - stock_transport_multi_address
    - sale_transport_multi_address
odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
    - procurement
    - board
    - web_kanban_gauge
    - web_kanban_sparkline
    - account
    - analytic
    - edi
    - email_template
    - sale_stock
    - sale
    - sales_team
    - account_voucher
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
purchase_order_form purchase_order_form purchase.order field Inherits purchase.purchase_order_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • create_procurement_purchase_order(self, procurement, po_vals, line_vals)
    @api.model

New fields (2)
  • consignee_id Many2one → res.partner
    domain=[('is_consignee', '=', True)] help='The person to whom the shipment is to be delivered.' args: 'res.partner', 'Consignee'
  • origin_address_id Many2one → res.partner
    args: 'res.partner', 'Origin Address'
Public methods (4)
  • action_picking_create(self)
    @api.multi
  • new_onchange_dest_address_id(self)
    @api.onchange('dest_address_id')
    Find a picking type from the address If the address can be an internal warehouse or a customer, the picking type is changed accordingly. This intentionally overrides the original without super, and should be consistent with the module purchase_requisition_transport_multi_address. A similar logic to choose the picking type is used in the module framework_agreement_sourcing in github.com/OCA/vertical-ngo.
  • onchange_partner_id(self, partner_id)
    @api.multi
  • onchange_picking_type_id(self)
    @api.onchange('picking_type_id')
    If the picking type has an address, use it. Do not empty the address none is found, because that gives a short circuit with the onchange of the address.