Skip to content

[16.0][MIG] purchase_container: backport from 18.0#2928

Draft
dnplkndll wants to merge 7 commits intoOCA:16.0from
kencove:16.0-add-purchase_container
Draft

[16.0][MIG] purchase_container: backport from 18.0#2928
dnplkndll wants to merge 7 commits intoOCA:16.0from
kencove:16.0-add-purchase_container

Conversation

@dnplkndll
Copy link

Backport of purchase_container module from 18.0 to 16.0.

Key backport changes:

  • Updated manifest version to 16.0.1.0.0
  • Converted views to (16.0 syntax)
  • Converted to full chatter div structure
  • Converted Python expression attrs (invisible/readonly) to domain-based attrs syntax
  • Removed pyproject.toml (not used in 16.0)

Features:

  • Add containers to purchase orders and stock pickings
  • Track container details (bill of lading, shipping agent, etc.)
  • Container state management (waiting, transit, arrived, locked)
  • Link containers to pickings and purchase orders
  • Incoterm tracking per container

dnplkndll and others added 7 commits January 6, 2026 21:30
   Backport of purchase_container module from 18.0 to 16.0.

   Key backport changes:
   - Updated manifest version to 16.0.1.0.0
   - Converted <list> views to <tree> (16.0 syntax)
   - Converted <chatter /> to full chatter div structure
   - Converted Python expression attrs (invisible/readonly) to
     domain-based attrs syntax
   - Removed pyproject.toml (not used in 16.0)

   Features:
   - Add containers to purchase orders and stock pickings
   - Track container details (bill of lading, shipping agent, etc.)
   - Container state management (waiting, transit, arrived, locked)
   - Link containers to pickings and purchase orders
   - Incoterm tracking per container
In Odoo 16.0, you need to set quantity_done on moves before calling button_validate().
Added fields from Kencove container tracking spreadsheet:
- seal_number: Container seal number
- warehouse_id: Destination warehouse (PA, ID, GA)
- date_warehouse_eta: Warehouse ETA (separate from port ETA)
- date_delivered: Delivery date to warehouse
- date_received: Date inventory received into system
- drayage_company_id: Local drayage/trucking company
- per_diem_fees: Per diem and additional fees
- per_diem_reason: Reason for additional fees
- notes: Internal notes field

Extended workflow states to match spreadsheet process:
- in_progress, pos_confirmed, freight_notified, on_water
- arrival_notice, drayage_confirmed, awaiting_gate_out
- customs_hold, released, delivered, received
- on_hold, ready_to_process, processed

Updated views:
- Reorganized form into notebook tabs
- Added search filters by state
- Added group by options for warehouse, state, etc.
- Badge decorations for state display in list view

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…field

Create product via product.template to properly set base_unit_count
field that has a non-null constraint in Kencove's database.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…e_unit_count field

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… tracking URLs

- Add container.document model for tracking shipping documents (BOL, invoice, etc.)
- Add container.document.type for configurable document types with required flag
- Add container.line model for tracking products/quantities in containers
- Add shipment tracking fields: carrier_id, vessel_name, voyage_number, tracking_number
- Add tracking URL computation for major carriers (Maersk, MSC, Evergreen, etc.)
- Add freight_forwarder_ref field for RL Swearer booking IDs
- Add has_additional_fees boolean and per_diem fields
- Add landed cost integration (many2many to stock.landed.cost)
- Add comprehensive test coverage (27 tests)
- Add default document types data (Commercial Invoice, Packing List, BOL, etc.)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…TS code

Kim's feedback implementation:

- Add invoice tracking for landed cost readiness:
  - freight_invoice_id: Link to freight forwarder bill
  - drayage_invoice_id: Link to drayage bill
  - ready_for_landed_cost: Computed when both invoices posted

- Add container.cost.line model for detailed cost breakdown:
  - Cost types: Ocean Freight, Drayage, Customs Hold, Tariffs,
    Per Diem, Storage, Documentation, Inspection, Other
  - Links to vendor and invoice line

- Add HTS code display on container lines (from product.hs_code)

- Update views with new cost tracking section and filters

- Add delivery module dependency for hs_code field

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant