Partner Location Auto Create

partner_location_auto_create
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/10.0/partner_location_auto_create
VERSION
VERSION 0.1
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Savoir-faire Linux
COMMITTERS
COMMITTERSPedro M. Baeza, Denis Roussel, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - web_planner
    - procurement
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_company_form Company Form Default Stock Locations res.company group Inherits procurement.mrp_company
view_location_form stock.location.form stock.location field Inherits stock.view_location_form
view_partner_form Partner Form Locations res.partner div Inherits stock.view_partner_property_form
Models touched (3)

New fields (2)
  • default_customer_location Many2one → stock.location
    default=<expr> args: 'stock.location', 'Default Customer Location'
  • default_supplier_location Many2one → stock.location
    default=<expr> args: 'stock.location', 'Default Supplier Location'
Public methods (1)
  • get_default_location(self, usage)
    @api.multi
    Return the company's default location related to a usage type

New fields (2)
  • location_ids One2many → stock.location
    string='Locations' args: 'stock.location', 'partner_id'
  • locations_count Integer
    compute='_compute_locations_count' store=False
Public methods (4)
  • button_locations(self)
    @api.multi
  • create(self, vals)
    @api.model
    The first time a partner is created, a main customer and / or supplier location is created for this partner
  • get_main_location(self, usage)
    @api.multi
  • write(self, vals)
    @api.multi

New fields (1)
  • main_partner_location Boolean
    help="The root location for a partner's location for a specific type." args: 'Main Partner Location'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/9.0/partner_location_auto_create
VERSION
VERSION 0.1
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Savoir-faire Linux
COMMITTERS
COMMITTERSStéphane Bidoul (ACSONE), Cyril Gaudin
WEBSITE
WEBSITEhttp://www.savoirfairelinux.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - web_tip
    - web_planner
    - procurement
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_company_form Company Form Default Stock Locations res.company group Inherits procurement.mrp_company
view_location_form stock.location.form stock.location field Inherits stock.view_location_form
view_partner_form Partner Form Locations res.partner div Inherits stock.view_partner_property_form
Models touched (3)

New fields (2)
  • default_customer_location Many2one → stock.location
    default=<expr> args: 'stock.location', 'Default Customer Location'
  • default_supplier_location Many2one → stock.location
    default=<expr> args: 'stock.location', 'Default Supplier Location'
Public methods (1)
  • get_default_location(self, usage)
    @api.multi
    Return the company's default location related to a usage type

New fields (2)
  • location_ids One2many → stock.location
    string='Locations' args: 'stock.location', 'partner_id'
  • locations_count Integer
    compute='_compute_locations_count' store=False
Public methods (4)
  • button_locations(self)
    @api.multi
  • create(self, vals)
    @api.model
    The first time a partner is created, a main customer and / or supplier location is created for this partner
  • get_main_location(self, usage)
    @api.multi
  • write(self, vals)
    @api.multi

New fields (1)
  • main_partner_location Boolean
    help="The root location for a partner's location for a specific type." args: 'Main Partner Location'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/8.0/partner_location_auto_create
VERSION
VERSION 0.1.0
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Savoir-faire Linux
COMMITTERS
COMMITTERSAlexandre Fayolle, Maxime Chambreuil, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttp://www.savoirfairelinux.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web_kanban
    - web
    - web_kanban_sparkline
    - account_voucher
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - board
    - edi
    - email_template
    - procurement
    - stock_account
    - stock
    - web_kanban_gauge
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_company_form Company Form Default Stock Locations res.company group Inherits procurement.mrp_company
view_location_form stock.location.form stock.location field Inherits stock.view_location_form
view_partner_form Partner Form Locations res.partner div Inherits stock.view_partner_property_form
Models touched (3)

New fields (2)
  • default_customer_location Many2one → stock.location
    default=<expr> args: 'stock.location', 'Default Customer Location'
  • default_supplier_location Many2one → stock.location
    default=<expr> args: 'stock.location', 'Default Supplier Location'
Public methods (1)
  • get_default_location(self, usage)
    @api.multi
    Return the company's default location related to a usage type

New fields (2)
  • location_ids One2many → stock.location
    string='Locations' args: 'stock.location', 'partner_id'
  • locations_count Integer
    compute='_compute_locations_count' store=False
Public methods (4)
  • button_locations(self)
    @api.multi
  • create(self, vals)
    @api.model
    The first time a partner is created, a main customer and / or supplier location is created for this partner
  • get_main_location(self, usage)
    @api.multi
  • write(self, vals)
    @api.multi

New fields (1)
  • main_partner_location Boolean
    help="The root location for a partner's location for a specific type." args: 'Main Partner Location'
Public methods (0)

No public methods.