Odoo Community Association

Sale Partner Sale Contact - Website Sale

Beta License: LGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

This module is the glue between Sale Partner Sale Contact and the eCommerce (website_sale).

When a portal user who is a contact person of a company places an order on the website, the order is created with the contact person as customer (partner_id). The auto-switch logic of Sale Partner Sale Contact is implemented as an onchange and therefore never runs for website orders.

This module applies the switch when the website order is confirmed:

The switch is deliberately not applied while the order is still a cart: website_sale resets the cart customer to the logged-in user’s partner on every request and looks up abandoned carts by that partner, so an earlier switch would be reverted and would break cart recovery.

Table of contents

Usage

No specific configuration is needed; the module is installed automatically when both Sale Partner Sale Contact and eCommerce are installed.

  1. As a portal user that is a contact person of a company, place an order on the website and complete the checkout.
  2. Once the order is confirmed, open it in the backend: the Customer is the company and the Sale Contact is the person who placed the order.

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

  • ForgeFlow

Contributors

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.

This module is part of the OCA/sale-workflow project on GitHub.

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