Sale Order Warehouse Location

sale_order_warehouse_location
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/16.0/sale_order_warehouse_location
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYStock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sygel
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sygel
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Manuel Regidor
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:11:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account_payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to set countries and states in warehouses, so they can automatically be set in a sale order when its shipping address matches the countries and states selected in a given warehouse.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_order_warehouse_location_view_warehouse sale.order.warehouse.location.view.warehouse stock.warehouse xpath Inherits stock.view_warehouse
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • sale_country_ids Many2many → res.country
    comodel_name='res.country' relation='warehouse_sale_country_rel' string='Sale Order Countries'
  • sale_state_ids Many2many → res.country.state
    comodel_name='res.country.state' compute='_compute_sale_state_ids' domain="[('country_id', 'in', sale_country_ids)]" readonly=False relation='warehouse_sale_state_rel' store=True string='Sale Order States'
Public methods (1)
  • warehouses_by_country_state(self, partner)