[16.0][MIG] purchase_container: backport from 18.0#2928
Draft
[16.0][MIG] purchase_container: backport from 18.0#2928
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of purchase_container module from 18.0 to 16.0.
Key backport changes:
Features: