OdooWiki OCA HUB

Stock Picking Partner Brand Sync

stock_picking_partner_brand folder_open OCA/brand open_in_new
Inventory License: AGPL-3

This module is a glue module between sale_brand and partner_brand.

If the customer has a brand assigned, it will set that brand on the Sales Order. If the customer has no brand, or if the customer is cleared from the SO, the brand on the SO will also be cleared.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Automatically fills the brand on a stock transfer (delivery, receipt, internal transfer) from the selected customer or vendor's brand, and clears it when the contact is removed.

This module links stock transfers to the brand of the contact chosen on them. When you pick a customer or vendor on a stock picking, Odoo looks at that contact's brand — or, if the contact belongs to a company, the brand of the parent company — and copies it onto the transfer.

  • If the contact has a brand, that brand is set on the picking.
  • If neither the contact nor its parent company has a brand, the brand field is emptied.
  • If you remove the contact from the picking, the brand is also cleared.

The same rule applies when a stock picking is created directly with a contact already filled in: the brand is taken from that contact (or its parent company) unless a brand was already specified.

It works on the stock.picking model, so it affects all transfer types that use a contact (deliveries, receipts, returns, internal transfers). It relies on the brand fields provided by the partner brand and stock brand modules, and it is installed automatically when those modules are present. No new menus, buttons or reports are added; the change is visible directly in the brand field on the transfer form.

Models and fields (1)
  • stock.picking · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

To install this module, you need to:

  • Place the sale_brand module in your Odoo addons path.
  • Install the partner_brand module in Odoo.

It will auto install if all the dependencies are available.

  • Configure Brands on Partners:

Navigate to Contacts. Open the customer records for which you want to assign a brand.

  • On the customer form, locate the "Brand" field (provided by partner_brand) and select the appropriate brand.
  • Save the changes.

Automatic Brand Setting When you are on a Stock Picking form:

Selecting a Customer with a Brand:

If you select a customer in the "Customer" (partner_id) field, and that customer has a brand assigned to them (via the brand_id field on their contact record), the "Brand" field on the Stock picking will automatically be populated with the customer's brand.

Selecting a Customer without a Brand:

If you select a customer who does not have a brand assigned to them, the "Brand" field on the Stock Picking will be automatically cleared (set to empty/None).

Changing Customer:

If you change the customer on an existing picking, the brand on the picking will update according to the newly selected customer's brand (or be cleared if the new customer has no brand).

Clearing Customer:

If you clear the "Customer" field on the stock picking (remove the selected customer), the "Brand" field on the stock picking will also be automatically cleared.

This behavior is triggered by an onchange mechanism on the partner_id field of the stock.picking model.

Manual Override The automatic setting of the brand based on the customer is a default behavior. After the brand is automatically populated (or cleared), you can still manually change or set the brand on the Stock Picking directly if needed. The onchange mechanism only triggers when the partner_id field itself is modified.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.