Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.1.0
Category
Uncategorized
Folder size
0.21 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 08:42:58
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
David Beal, Weblate, OCA-git-bot, oca-ci, Mathieu
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Add containers to purchase orders and stock pickings.

![Purchase container image](../static/description/img.png)

Code Analysis

Views touched (10)
XML IDNameModelTypeStatus
container_type_view_form container.type form New
container_type_view_list container.type list New
container_type_view_search container.type search New
purchase_container_view_form purchase.container form New
purchase_container_view_list purchase.container list New
purchase_container_view_search purchase.container search New
purchase_order_view_form_container purchase.order form Inherits purchase.purchase_order_form
purchase_order_view_tree purchase.order tree Inherits purchase.purchase_order_view_tree
view_picking_with_container stock.picking form Inherits stock.view_picking_form
vpicktree stock.picking Inherits stock.vpicktree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (2)
  • description Char
  • name Char
Public methods (0)

No public methods.

New fields (29)
  • arrival_location_id Many2one → res.partner
    args: 'res.partner'
  • bill_of_lading_ref Char
    copy=False args: 'Bill Of Lading No.'
  • code Char
    compute='_compute_code' copy=False inverse='_inverse_code' required=True store=True string='Container Reference'
  • cost Float
    copy=False digits='Product Price'
  • cost_currency_id Many2one → res.currency
    copy=False args: 'res.currency', 'Cost Currency'
  • date_ata Date
    help='Actual Time Of Arrival' string='ATA Date' tracking=True
  • date_atd Date
    help='Actual Time Of Departure' string='ATD Date' tracking=True
  • date_eta Date
    help='Estimated Time Of Arrival' string='ETA Date' tracking=True
  • date_etd Date
    help='Estimated Time Of Departure' string='ETD Date' tracking=True
  • date_ett Char
    compute='_compute_date_ett' help='Estimated Time Of Travel' store=False string='ETT Date' tracking=True
  • departure_location_id Many2one → res.partner
    args: 'res.partner'
  • displayed_incoterm_id Many2one → account.incoterms
    compute='_compute_displayed_incoterm_id' inverse='_inverse_displayed_incoterm_id' store=True tracking=True args: 'account.incoterms'
  • incoterm_id Many2one → account.incoterms
    compute='_compute_incoterm_id' readonly=True store=False args: 'account.incoterms'
  • is_locked Boolean
  • manual_incoterm_id Many2one → account.incoterms
    args: 'account.incoterms'
  • name Char
    compute='_compute_name' index=True readonly=True store=True
  • package_qty Integer
    copy=False
  • picking_count Integer
    compute='_compute_picking_count' string='Receipts'
  • picking_ids One2many → stock.picking
    comodel_name='stock.picking' inverse_name='container_id' string='Related Pickings'
  • purchase_order_count Integer
    compute='_compute_purchase_order_count' string='Purchases'
  • purchase_order_ids Many2many → purchase.order
    copy=False string='Related Purchases' args: 'purchase.order'
  • purchase_order_rfq_count Integer
    compute='_compute_purchase_order_rfq_count' string='RFQ'
  • shipping_agent_id Many2one → res.partner
    comodel_name='res.partner' string='Shipping Agent'
  • state Selection
    compute='_compute_state' store=True tracking=True args: [('waiting', 'Waiting'), ('transit', 'Transit'), ('arrived', 'Arrived'), ('locked', 'Locked')]
  • type_id Many2one → container.type
    comodel_name='container.type'
  • volume Float
    copy=False digits='Volume'
  • volume_uom_id Many2one → uom.uom
    default=<expr> domain=<expr> string='Volume Units of Measure' args: 'uom.uom'
  • weight Float
    copy=False digits='Stock Weight' string='Bruto Weight'
  • weight_uom_id Many2one → uom.uom
    default=<expr> domain=<expr> help='Weight Unit of Measure' string='Weight Units of Measure' args: 'uom.uom'
Public methods (6)
  • action_view_order(self)
  • action_view_picking(self)
  • action_view_rfq(self)
  • button_lock(self)
  • button_unlock(self)
  • create(self, vals_list)
    @api.model_create_multi

New fields (1)
  • container_ids Many2many → purchase.container
    compute='_compute_container_ids' copy=False index=True inverse='_inverse_container_ids' store=True string='Containers' args: 'purchase.container'
Public methods (0)

No public methods.

New fields (1)
  • container_id Many2one → purchase.container
    copy=False index=True string='Container' args: 'purchase.container'
Public methods (0)

No public methods.

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
106 days ago
Last activity
78 days ago
Repository
OCA/purchase-workflow
Pull request
[19.0][MIG] purchase_container (#3055)