Skip to main content

Automatically sets the brand on a Stock Picking based on the selected partner's brand.

Project description

Odoo Community Association

Stock Picking Partner Brand Sync

Alpha License: AGPL-3 OCA/brand Translate me on Weblate Try me on Runboat

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.

Table of contents

Use Cases / Context

This module was developed because it is a common use case for (sub)contractors and other types of businesses to sell products under different brands.

Installation

To install this module, you need to:

  1. Place the sale_brand module in your Odoo addons path.

  2. Install the partner_brand module in Odoo.

It will auto install if all the dependencies are available.

Configuration

  1. Configure Brands on Partners: Navigate to Contacts. Open the customer records for which you want to assign a brand.

  2. On the customer form, locate the “Brand” field (provided by partner_brand) and select the appropriate brand.

  3. Save the changes.

Usage

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.

Known issues / Roadmap

Changelog

18.0.1.0.0 (2025-05-20)

  • [ADD] First Release of module.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • O.B.S. Solutions

Contributors

Other credits

The development of this module has been financially supported by:

  • OBS Solutions B.V.

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

bosd

This module is part of the OCA/brand project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_stock_picking_partner_brand-18.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_stock_picking_partner_brand-18.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28d72b9c3ae25040fed347b24ef3e39b5b6345c789c946a7ef4d9da1a4c0daa6
MD5 efb3b657352d072376992e4ef8ec1623
BLAKE2b-256 9c2e3766646a4fe827a00ace7a47e8e235725f856464ab308e1b8a789c571d9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page