Restrict Contact Creation and Product Creation - Disable Quick Create, Many2one Limit, No Create Edit
by Modvanta https://modvantaapps.tech/odoo-apps/restrict-quick-create/$ 7.98

Stop duplicate contacts and products at the source
Only the users you choose can create contacts and products. Everybody else no longer sees New, Create "..." or Create and edit... for them - on quotations, purchase orders, invoices or anywhere else - and the server refuses the creation by any other path.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Duplicate customers and half-filled products usually come from a quick Create on a quotation line or a customer field. Odoo has a Contact Creation group, but salespeople, the administrators of Sales, Purchase, Inventory or Manufacturing and others can still create contacts through the rights of their own app.
This module makes the Contact Creation group (and the Product Create right) the single gate. Internal users outside it cannot create contacts or products by any path: the form, quick create, Create and edit, import, duplicate, a contact added inside a company, or a direct RPC call. Odoo then removes the create buttons and options for them by itself.
At installation every user who can create today is added to the group, so nothing changes until you remove the group from somebody.
Who it is for
Companies with a master data owner One team keeps customers, vendors and products clean; everybody else picks existing records. | Sales and purchasing teams Salespeople and buyers select from the existing customers, vendors and products only. | Businesses fighting duplicates No more Acme Corp, ACME Corporation and Acme created from three quotations. |
Key features
All screenshots were taken on Odoo 19 with this module installed on a clean demo database (company Northwind Trading Co). Riley Chen is a sample salesperson created on the bench (Sales: User - All Documents) without the Contact and Product creation rights.
Feature 1
No New button in Contacts
Signed in as Riley Chen, the Contacts list had no New button.

Feature 2
No quick create of customers
On a new quotation, typing a customer that does not exist showed No records - no Create "..." and no Create and edit...

Feature 3
No quick create of products
On a quotation line, typing a product that does not exist also offered nothing to create.

Feature 4
No contact added inside a company
On a company, the Contacts tab lists its people but offers no way to add a new one.

Feature 5
Controlled with the standard rights
The gate is Odoo's own Contact creation and Product creation rights on the user. Riley Chen has Contact: No and Products: View, so he selects existing records only.

Feature 6
Members keep creating as usual
Signed in as the administrator, who has the creation rights, the same customer field offered Create "Harbor Supplies" as in standard Odoo.

Feature 7
Many2one options in General Settings
Settings -> General Settings -> Many2one Options: the dropdown limit (how many records a many2one dropdown shows) and the Search More limit, no quick create and no create and edit for every many2one field, no open link or open records in a popup or a new browser tab, and the groups that keep every option.

Feature 8
Rules per model and per field
A rule changes the options of every field that points to a model (for example Product Category) or of one field (here Customer of the sales order): its own limits, Disable or Allow for quick create, create and edit and the open link, and exempt groups and users. A field rule wins over a rule on its target model.

Feature 9
The result for a salesperson
Signed in as Jamie Rivera, a salesperson outside the exempt Sales Administrator group, typing Lake in the customer field of a quotation showed 4 customers and Search More, with no Create and no Create and edit lines.

How it works, step by step
| 1 | Install the module It depends on Product. Every user who can create contacts or products today is added to the creation groups, so nothing changes yet. |
| 2 | Remove the right from users Settings -> Users -> the user: set Contact (Master Data) to no creation, and Products to View. |
| 3 | Let them work They pick existing customers, vendors and products; the create options are gone. |
| 4 | Keep the owners Users with the rights create contacts and products as usual. |
Settings
Contact and product creation use the standard user rights; the many2one options live in General Settings.
| Contact Creation (base.group_partner_manager) | Required to create contacts, by any path. |
| Product Create (product.group_product_manager) | Required to create products and product variants. |
| At installation | Users who can create today are added to these groups, so nothing changes until you remove them. |
| Many2one Options (General Settings) | Dropdown limit (Odoo shows 8), Search More limit (Odoo finds 320), No Quick Create, No Create and Edit, No Open Link, Open Records (Odoo default, popup, new tab) and Exempt Groups. |
| Many2one Field Rules (Settings -> Users & Companies) | One rule per model or per field, with its own limits, Disable / Allow choices and exempt groups and users. |
| Many2one: Bypass Field Restrictions | Members keep Create, Create and edit and the open link everywhere; the limits still apply. |
Frequently asked questions
Do the many2one options also block creation on the server?
No: they shape the many2one fields in the browser (dropdown size, Create lines, open link). Creating contacts and products is refused on the server by the creation rights described above. Users reload the page to get a changed option.
Is it only hidden in the interface?
No. The server refuses the creation too. On the bench, creating a contact as Riley Chen through the API was refused: you are not allowed to create Contact records.
What about salespeople whose app rights allow creating contacts?
That is exactly the gap the module closes: the Contact Creation group becomes the only way to create contacts, whatever rights other apps give.
Can restricted users still edit existing contacts?
The module only gates creation. Reading and editing follow the normal Odoo access rights.
Does it change anything at installation?
No. Everyone who can create today keeps the right; you remove it from the users you want to restrict.
Does it affect portal users or website sign-ups?
No. Only internal users are gated, so customer sign-ups and portal flows keep working.
Compatibility
Odoo 19 Community and Enterprise | Depends on Product | Tested 14 automated tests |
Keep your contacts and products clean
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by email |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 509 |
| Technical Name |
mdv_restrict_quick_create |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/restrict-quick-create/ |
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