B2B Customer Portal
Company accounts on the B2B website
A portal for company customers on the Odoo website: companies ask for an account from a public page, a salesperson approves it in one click, and every contact of the company then sees in the portal what matters to a business buyer — the balance, the overdue invoices, the credit available and their sales representative.
It is the base of the Terrabit B2B family. Quick order by product code, saved order lists and price tiers by quantity are separate modules built on top of it.
Features:
- Public /b2b page with the account request form: company name, VAT number, company registry, address, contact person — with a spam trap and, optionally, the acceptance of your B2B terms
- Optional confirmation e-mail to the person who sent the form, with a fixed text (nothing typed in the form but the tax code), and a limit of 5 requests per hour from the same address
- The request is the customer itselfthe form creates the company in the Requested state, with the contact under it, and gives the salesperson an activity. There is no separate request record duplicating the contact data
- Matched by VAT number(
RO 1234 5678and12345678are the same company): on a customer that already exists only the contact is added — data typed by an anonymous visitor never overwrites what is on file - Approval in one clickthe account becomes active and the contacts who asked for access get the standard portal invitation. Rejection asks for the reason and can archive a request that is not a real company
- B2B account stateon the company — requested, active, suspended, rejected — and a role per contact: can order, or view only (prices and documents)
- Company dashboard on /mybalance, overdue amount, credit available with the share of the limit used, quotations waiting for an answer, the invoices to pay with their days late, and the sales representative
- Order guarda view-only contact or a suspended account cannot check out the cart or sign a quotation in the portal, and the portal says why. The credit limit and the overdue invoices stay with
terrabit_partner_credit_limitandterrabit_partner_credit_limit_website, with their tolerance and exceptions - Prices for company customers only(per website): the catalogue stays public, but a visitor, or a company without an active B2B account, sees no price, no stock, no price filter and no add to cart. The server leaves the prices out of the page and of the product data, and refuses an add to cart sent by hand
- Uses the standard salesperson, credit limit, pricelist, payment terms, portal invitation and eCommerce access of Odoo: nothing is duplicated
Not included:
- Approval of orders placed by colleagues (planned)
- Automatic filling of the company data from a public register (planned, as a separate bridge)
Watch the presentation (in Romanian)
A short video that walks through the module, step by step.
Watch on YouTubeIn Website ▸ Configuration ▸ Settings ▸ B2B Portal:
- Account requests: the salesperson of the companies that ask for an account, who also gets the activity to handle the request. Empty: the website salesperson.
-
B2B terms: the address of your terms for company customers. When set, the request form asks the company to accept them, and the date is kept on the customer.
-
Prices for company customers only: the catalogue stays public (searchable, indexed), but the prices, the stock and the add to cart are shown only to the contacts of a company with an active B2B account and to your employees.
To keep the whole shop away from visitors who are not logged in, use the standard eCommerce Access ▸ Logged in users setting of the shop instead: the /b2b page stays public.
Online payment is standard as well: the Pay button on invoices follows the Invoice Online Payment setting of accounting, and on a quotation it follows Online Payment of the order.
Give the salespeople who handle the requests the B2B Portal ▸ User access right (approve, reject, suspend). B2B Portal ▸ Administrator also activates existing customers and sets the roles of their people; it includes the standard contact management right.
The portal shows the credit available from the standard credit limit of the customer. To enforce
the limit and the overdue invoices on the website, install terrabit_partner_credit_limit_website.
Before you start, see Configuration: set the salesperson for account requests, the optional B2B terms, whether the prices are for company customers only, and the access rights of your team. The flow has two halves: the company, on the website and in the portal, and the salesperson, in the back office.
Step 1 — A company asks for an account
The visitor opens /b2b. The page has a presentation area you can edit with the website editor and the request form: company name, VAT number, trade register number, address, city, state, contact person, phone, e-mail and a free message. If B2B terms are set, the form also asks to accept them.
Fields marked with * are required. An invalid e-mail, a missing field, terms not accepted or a VAT number that fails the check (when VAT validation is active) send the visitor back to the form with a clear message. Spam bots that fill in the hidden trap field get the confirmation, but nothing is created.
Step 2 — Confirmation
After sending, the page confirms that a sales representative will contact the company.
What happens in the background:
- New company: the customer is created in the Requested B2B state, with the contact person under it, marked "Asked for access".
- Existing company (same VAT number, with or without the country prefix): only the contact person is added. The company data, the salesperson and the agreement are not changed.
- The same person sends twice: neither the company nor the contact is duplicated.
- The request, with its message, is written in the company's history under the sender's name, and the company and the person get the language the form was filled in (the portal invitation goes out in it). The salesperson receives a to-do activity "B2B account request".
An account that is already active does not go back to Requested: a new colleague of an active company just shows up as a person who asked for access. A rejected and archived request that comes back is unarchived, together with its contact, instead of creating a new company.
Step 3 — The list of requests
Go to Sales ▸ Orders ▸ B2B Account Requests. The list shows the companies in the Requested state (default filter) and, on demand, the rejected ones: date received, VAT number, city, phone, salesperson and the open activity.
Step 4 — Review the request on the company
Open the company. The B2B tab only shows on customers with a B2B state (requested, active, suspended, rejected). The Account group shows the state, the date the terms were accepted, the salesperson, the pricelist, the payment terms and the agreement with the customer. The To collect group shows the balance, the number and amount of overdue invoices and, if a limit exists, the credit available. The Approve request and Reject request buttons are at the top, and the request itself is in the history on the right.
Before approving, check that the VAT number belongs to a real company and that the pricelist, the payment terms and the salesperson are the negotiated ones. The person who asked for access is in the Contacts tab, with the tag "Asked for access".
Step 5 — Approve
Click Approve request and confirm. The account becomes Active and the people marked "Asked for access" receive the standard portal invitation (the e-mail with the link to set a password). The other contacts of the company do not get access. The "B2B account request" activity is closed and the history reads "The B2B account request was approved."
Step 6 — Reject
Click Reject request. A window asks for the Reason (required) and offers Archive the company. The option is proposed only when the company has no orders or invoices, that is, for spam or a private person; you can also tick it by hand. The reason is written in the history, for the colleague who calls the customer.
A rejected company that sends the form again goes back to Requested.
Step 7 — The role of each person
On the company, open the Contacts tab and then the person. The B2B role field decides what they can do: Can order or View only (prices and documents). The field shows only when the company has a B2B account and is changed by the B2B Portal ▸ Administrator.
Step 8 — What the customer sees in the portal
The person opens My Account (/my). Above the usual portal cards is the company dashboard: the company with its VAT number and the sales representative card (name, e-mail, phone). Below are four cards:
- Balance, with the number of open invoices.
- Overdue, in red, with the number of invoices past due.
- Credit available, with a usage bar (green, yellow from 70%, red from 90% of the limit).
- Quotations waiting for an answer.
At the bottom, the Invoices to pay table shows the invoice, the date, the due date labelled "N days late" or "on time", and the amount left to pay. The Balance and Overdue cards and the All invoices link open the standard invoice list, where the customer downloads the PDFs; the Quotations card opens the quotations.
Step 9 — A view-only person tries to order
A "View only" person always sees a message in My Account: they can see prices and documents but cannot place orders. They can add products to the cart, but at Checkout they are sent back there. While logged in, they also cannot sign or pay a quotation online from the portal. The same applies to any person of a suspended company. A quotation opened from an e-mail, without logging in, is signed and paid as usual.
The View only role does not hide the prices: the person sees them but cannot order. To keep the prices away from visitors, use the setting of the last step, not the role.
Step 10 — B2B customers and overdue invoices
Sales ▸ Orders ▸ B2B Customers lists the active and suspended accounts with their salesperson, balance, number and amount of overdue invoices, credit available and account state. The contact search has the filters B2B Customers, B2B account requests and B2B with overdue invoices.
On an active customer, Suspend (B2B tab) stops the orders from the portal without removing the access to the documents; Reactivate turns them back on, with no new invitation. On a rejected company, a B2B administrator also has the Activate B2B account button.
An existing customer
A customer who did not ask for an account on the website is activated by a B2B administrator with Action ▸ Activate B2B account on the customer (form or list). The account becomes active and the standard portal access wizard opens on the people of the company, where you choose who gets access.
Prices for company customers only
To show your products to everyone but the prices only to approved company customers, go to Website ▸ Configuration ▸ Settings, B2B Portal block, tick Prices for company customers only and Save. It is off by default.
- A visitor who is not logged in, and a person of a company without an active B2B account (requested, rejected, suspended, or a regular customer), see the catalogue without prices.
- A person of a company with an active B2B account (view only included) and your employees see the prices as usual.
In /shop, the product cards show the name without a price; the price range filter, if enabled in the shop, is not shown, and the sort menu offers no sort by price (one asked in the address is not applied either).
On the product page there is no price, no option surcharge, no stock, no quantity and no Add to cart; the standard Contact Us block shows instead.
The prices are left out by the server (the value sent is zero), not only hidden on the page: they are not in the page source nor in the search suggestions. A price range typed in the address is ignored, and an add to cart sent by hand is refused. The visitor who wants the prices asks for an account on /b2b.
The difference with the standard eCommerce Access ▸ Logged in users setting: that one closes the whole shop (login page, nothing indexed); this one keeps the catalogue public and indexed by search engines, and gives the prices only after approval.
With the setting on, the standard Google Merchant Center feed gets no price either (Google reads the catalogue as a visitor, and a product without price is left out of the feed), and the automatic Out of stock ribbon of a product card is not shown to those who may not see the stock.
20.0.1.1.0 (2026-11-27)
Port of the 19.0 changes up to 19.0.1.4.5:
- New website setting Prices for company customers only: the catalogue stays public, but a visitor who is not logged in, or a contact of a company without an active B2B account, sees no price, no stock, no option surcharge and no add to cart. The prices are left out by the server, the price range filter and the sort by price are not shown nor applied, an add to cart sent by hand is refused, the Google Merchant Center feed gets no price and the automatic "Out of stock" ribbon is not shown. Off by default: nothing changes on update.
- Optional confirmation e-mail to the person who sends the account request form, with a fixed text, and at most 5 account requests per hour from the same address (IP).
- On a Romanian website, a personal numeric code (CNP) typed as the tax code is refused.
- Grant portal access button on an active company, for the colleagues who asked for access from the website.
- A refused request shows the form again with everything the visitor typed, the fields to fix in
red and the first one focused; the tax code is ready for
l10n_ro_website_anaf_prefill. - The Apps Store page shows the presentation video on YouTube (in Romanian) at the end of the Overview tab.
- Helpers for the modules built on this one (
_b2b_inactive_redirect,_b2b_add_to_cart,_b2b_render_page,_b2b_request_limited), used bydeltatech_b2b_quick_orderanddeltatech_b2b_order_list.
20.0.1.0.8 (2026-11-15)
- Screenshots: the whole flow (settings, request form, approval, rejection, contact role, portal
summary) is now also captured in English, in
static/description/en/, from the same seeded data. Port of 19.0.1.4.4 (terrabit-solutions/bitshop#3893).
20.0.1.0.7 (2026-11-10)
- Apps Store: price aligned with 19.0 (200 -> 124 EUR, full price 250 -> 155 EUR), with the -20% campaign banner and band, as in the store.
20.0.1.0.6 (2026-11-09)
- Apps Store page: the euro sign in the -20% campaign band is written as an HTML entity, so it no longer shows as garbled characters.
20.0.1.0.5 (2026-10-09)
- Apps Store banner (banner.json).
20.0.1.0.4 (2026-10-04)
- Security (B2B-001): Approve, Suspend and Reactivate run as superuser and are public methods, so any
authenticated user (an employee without the B2B role, or a portal customer reactivating their own
suspended company) could call them by RPC. They now require the B2B User role and read access to the
partners, checked as the caller before the superuser takes over; anyone else gets an access error.
Port of 19.0.1.0.5 (terrabit-solutions/bitshop#2970). On 20.0 the test companies get a VAT number,
since
is_companyis computed from it.
20.0.1.0.2 (2026-09-30)
- Set the Apps Store price to 250 EUR (the manifest had none).
20.0.1.0.1 (2026-09-30)
- New module icon in the flat style of the other modules; it replaces the old green gradient one.
20.0.1.0.0 (2026-09-28)
- Migration to Odoo 20.0. The checkout guard moved from
WebsiteSale._check_cart(removed) towebsite.checkout.step._check_shop_cart_completion.res.partner.company_registryleft the partner: the registry number from the form goes tonrcwhen the Romanian localisation is installed, and stays in the request message otherwise. Access rights converted toir.access.csv, icons to Material Symbols,request.websitetorequest.env.website.
19.0.1.0.0 (2026-09-27)
- First version, generalised from
agroamat_b2b(AGROAMAT COM SRL): account requests from the /b2b page recorded on the customer itself and matched by VAT number, approval with the standard portal invitation, B2B account state and contact roles, company summary on /my, checkout guard for view-only contacts and suspended accounts. The request is posted as the requesting contact, company and contact get the language of the form, and a VAT number refused bybase_vatreturns the visitor to the form instead of a server error. The B2B tab only shows on customers with a B2B state; the others are activated from Action ▸ Activate B2B account. The portal home shows a company dashboard (key figure cards, credit usage bar, invoices with days late). A view-only contact cannot sign or pay a quotation online either. A suspended account is reactivated by the salesperson; activating an existing customer and the roles are for the B2B administrator. The request has its own activity type, so handling it closes only that activity; an archived request coming back is unarchived. Menus under Sales ▸ Orders. Consultant sheet with screenshots generated bytests/test_screenshots.py. - Compared with
agroamat_b2b: no separate request model (it duplicated the contact data), the standard salesperson, credit limit, portal invitation and eCommerce access are used instead of dedicated fields or a custom closing of the website, the credit limit is left toterrabit_partner_credit_limitinstead of a second, simpler check, and nothing is specific to a customer (no fixed e-mail address, county list or pricelist name).
✓ Included in the Terrabit support subscription
If Terrabit is your Odoo implementation partner, your support subscription includes the right to use this module and every other Terrabit module, with no separate purchase. The modules are kept up to date with each new Odoo version and supported by the developers who build them.
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
More apps by Terrabit
Other modules from the same publisher, built to work together. All apps →
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Sales (sale_management)
• eCommerce (website_sale) • Discuss (mail) • Invoicing (account) • Website (website) |
| Lines of code | 1313 |
| Technical Name |
deltatech_b2b_portal |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Please log in to comment on this module