Lock Product Quick Create
Take Create and Create and edit out of the product dropdown on sales, purchase, invoice and stock lines, and make the server refuse a product created from a typed name.
| Odoo | 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | Products (product). Works with Sales, Purchase, Invoicing and Inventory when they are installed. |
| Licence | LGPL-3, free |
| Tests | 8 automated, run on every version |
| Module | product_ |
The situation
A salesperson types "Zebra Notebook" on a quotation line, nothing matches, and Odoo offers Create "Zebra Notebook". One click later there is a product with no category, no internal reference and a price of 0.00. The same happens on RFQ lines, vendor bill lines and transfer operations, and a month later the catalogue holds three Zebra Notebooks.
The module removes Create and Create and edit from the product field, line by line type, and the typo now ends at "No records". It does not stop at the screen: name_create on products is refused on the server too, so an old browser tab or a script cannot do what the dropdown no longer offers. People in one group keep the shortcut.
What it adds
Getting started
Open Apps, clear the Apps filter, search for Lock Product Quick Create and click Activate. It needs the Products app (product) only.
Apps › product_quick_create_block › Activate
Open Settings and find the Product Quick Create block. All five switches are on after install. Untick the ones you do not want, save, and reload the browser tab so users get the new values. Add the group Allowed to Quick Create Products to the users who may still create products from a typed name.
Settings › General Settings › Product Quick Create
Nothing changes for the user except the dropdown. Type a name that does not exist and the list says No records. To add the product, go to Products and create it with its category and unit. A member of the group sees Create and Create and edit as before.
Fine print
Log
Can you block the shortcut on one more screen?
Tell us which model holds the product field and we will check how it fits the switches.
Email odoo.expert.111@gmail.com
Please log in to comment on this module