All-in-One Record Restrictions: Journal Restriction, Warehouse Restriction, Location Restriction, Product Restriction, Customer Restriction per User
by Viyug Infotech https://viyuginfotech.com$ 31.78
Journal restriction, warehouse restriction, location restriction, product restriction and customer restriction per user
One profile per user or group decides which journals, payment methods, warehouses, locations, operation types, points of sale, product categories, analytic accounts and customers they may see and use. Enforced as record rules on the server, with a test-as-user preview and an audit log.
Journals Warehouses Locations Products Customers Point of Sale
Free setup call with every purchase
After you buy, book a free 30-minute online call: we install the app with you and set it up for your company. Questions are answered within 24 hours, Monday to Saturday, at support@viyuginfotech.com or on WhatsApp (QR code at the end of this page).
Before and after
For companies where not everybody should see or use every journal, warehouse, shop, product or customer.
Before
- Every invoicing user sees and posts to every journal, bank included
- Depot staff see and validate transfers of every warehouse
- Sales reps browse all customers and the full catalogue
- Cashiers can open any shop's register
- Restricting means writing record rules by hand, per model, per user
After
- One profile per team: journals, warehouses, shops, categories, customers
- Forbidden records cannot be read, searched, selected or posted to
- Profiles for groups, merged per area, limited to some companies if needed
- Test as User shows what a user will see before they log in
- Every change logged; administrators never locked out
What you get
Journal restriction
Allowed journals per profile. Entries, journal items, payments and bank statements of other journals are hidden and cannot be created, edited or posted.
Payment methods and analytic accounts
Only the allowed payment methods can be picked on payments; only the allowed analytic accounts in distributions, reports and analytic items.
Warehouse restriction
Allowed warehouses give their locations and operation types. Transfers, stock moves, on-hand quantities and reordering rules of other warehouses disappear.
Location and operation type restriction
Narrow a user to single locations (sub-locations included) or single operations such as receipts only. Vendor, customer and virtual locations stay usable.
Product restriction
Allowed product categories, sub-categories included, plus single products. New sub-categories are covered at once.
Customer restriction
Own customers only, or the customers of the own sales team, with or without contacts that have no salesperson. Internal users and your companies stay visible.
Point of sale restriction
Each cashier sees only their own shop: other points of sale, sessions, orders and POS payments are hidden.
Users or groups
A profile applies to chosen users, to every member of chosen groups, or both. Several profiles merge per area.
Real record rules
Every restriction is a record rule on the server: lists, search, many2one selection, import, export, API and direct links all respect it.
Multi-company
Limit a profile to some companies: records of the other companies are left alone, so one user can be restricted in one company only.
Test as user
Pick a user and see what they would see, area by area: visible against total records, the allowed names and the applied domain.
Audit log
Every profile created, changed, archived or deleted is logged with who, when and exactly what changed.
Safe by default
Installing changes nothing. Administrators, the superuser and a "Bypass Record Restrictions" group are never restricted.
Fast on large databases
Restrictions are plain indexed SQL conditions, computed once per user and cached. No Python runs per record.
How it works
1. Profile
Name a profile and pick the users and groups it applies to.
2. Allowed records
Switch on the areas and pick what may be used; leave the rest alone.
3. Record rules
The rules compute each user's allowed records once and cache them; the server filters every query.
4. Check
Test as User and the audit log show what each user sees and who changed what.
How it compares
| Feature | This app | Typical alternatives |
|---|---|---|
| Journals, payment methods, analytic accounts, warehouses, locations, operation types, POS, products, customers | All in one app | One paid app per area |
| Restrict groups as well as single users | Yes | Usually users only |
| Enforced on the server (search, many2one, import, API) | Yes, as record rules | Often domain on the field only |
| Journal entries, payments and statements of other journals hidden | Yes | Journal list only |
| Transfers, moves, on-hand and reordering rules of other warehouses hidden | Yes | Partly |
| Own sales team as customer scope | Yes | Own customers only |
| Company scope per profile | Yes | No |
| Test as user preview | Yes | No |
| Audit log of restriction changes | Yes | No |
| Nothing restricted until configured; admin and bypass group never restricted | Yes | Varies |
Setup in 5 steps
Install
Install Record Restrictions. The free Accounting, Inventory and Point of Sale bridges install themselves when those apps are present. Nothing is restricted yet.
Create a profile
Settings, Users & Companies, Record Restrictions: name the profile and pick users or groups.
Pick what they may use
Switch on the areas you need and select the allowed journals, warehouses, shops, categories or customer scope.
Test as user
Open Test as User and check the counts and names before telling the team.
Review
Use the users overview and the audit log to keep restrictions tidy over time.
Workflow walkthrough
Fictional company and users: a cashier, a depot team, a field sales rep and shop staff.
Restriction profiles
Settings, Users & Companies, Record Restrictions. One line per profile: who it applies to and what it restricts, in plain words.

Journal restriction
The front desk cashier may use the Sales journal and the Front Desk Cash journal, one payment method and two analytic accounts. Everything else in accounting is out of reach.

Warehouse and location restriction
The Riverside Depot team gets one warehouse: its locations and operation types come with it. Add single locations or operation types when you need finer control.

Product restriction
The furniture catalogue profile limits a sales rep to the Furniture category and its sub-categories.

Customer restriction
Field sales see their own customers only. Choose Own sales team to include the customers of the colleagues in the same sales team.

Point of sale restriction
Shop staff see one point of sale. Sessions, orders and payments of the other shops are hidden.

Test as user: the cashier
Test as User shows, per area, how many records the cashier sees against the total, with the allowed names. Restricted areas come first.

What the cashier sees
Logged in as the cashier: the accounting dashboard shows the two allowed journals only. The bank and the other journals cannot be opened, searched or selected.

Test as user: the depot team
One warehouse of two, and only its locations and operation types, checked before the user ever logs in.

What the depot team sees
The inventory overview of the depot user lists the Riverside Depot operations only. Transfers of the main warehouse cannot be opened or validated.

Own customers only
The field sales rep sees the four customers she looks after and your own companies. Other customers do not show up in lists, search or quotations.

One shop per cashier
The shop user sees one of the three points of sale and can open only that register.

Users and their restrictions
Every internal user with the profiles that apply and a one-line summary. Administrators are marked as never restricted.

Audit log
Who created or changed which profile, when, and exactly what: users added, journals removed, switches turned on or off.

Real record rules
Each restricted area is a record rule you can see in Settings, Technical, Record Rules. The domain is computed per user and cached, so it costs nothing per record.

Questions
Is this just hiding menus?
No. Every restriction is a record rule enforced by the Odoo server. A restricted user cannot read, search, select in a many2one field, import, export or post to a forbidden journal, warehouse or shop, also not through the API or a direct link.
Does installing it change anything for my users?
No. Until you create a profile nobody is restricted. Administrators, the superuser and members of the "Bypass Record Restrictions" group are never restricted, even when a profile names them.
What happens when two profiles apply to one user?
They merge per area: the allowed journals (or warehouses, shops, categories) of all profiles that restrict that area are added together. A profile that does not restrict an area leaves it to the others.
What if I switch an area on and select nothing?
Then the user sees nothing in that area. This is on purpose, so a profile never opens everything by mistake.
How does the company scope work?
A profile limited to some companies restricts only the records of those companies (and records shared by all companies). In the other companies the user works as before.
Will it slow down a large database?
No. The restriction is a plain SQL condition on indexed columns, computed once per user and cached. On a test database with 6,000 stock moves the first page of a restricted user's move list took about 2 ms.
Which apps do I need?
Product and customer restrictions work with the base app. Journal, payment method and analytic restrictions need Invoicing or Accounting, warehouse restrictions need Inventory, shop restrictions need Point of Sale. The matching free bridge installs itself automatically.
How is it different from Access Management?
Access Management hides menus, buttons, fields and tabs, makes users read-only and filters the records of any model by a domain. Record Restrictions gives ready-made restrictions for journals, warehouses, locations, shops, products and customers. They work side by side: hide the Bank menu with one, and keep bank entries out of reach with the other.
Free bridges
Installed automatically when the matching Odoo app is present. Add them to your purchase at no extra cost.
Accounting bridge (free)
Journal restriction, payment methods and analytic accounts. Installs itself with Invoicing or Accounting.
View in the storeInventory bridge (free)
Warehouse, location and operation type restriction. Installs itself with Inventory.
View in the storePoint of Sale bridge (free)
One shop per cashier: points of sale, sessions, orders and payments. Installs itself with Point of Sale.
View in the storeWorks well with
Other Viyug Infotech apps for access control. Access Management is the companion for menus, buttons, fields and read-only users.
Access Management
The companion app: access rights per user or group to hide menus, fields, buttons and tabs, read-only users, record access and sign-in rules, with preview as user and an audit log.
View in the storeAccess Guard: Segregation of Duties
Conflicting functions, a user risk matrix, firefighter access and access reviews.
View in the storeAccess Role Templates
Named roles that bundle groups, temporary access and bulk assignment.
View in the storeNeed a hand?
Questions about your teams, warehouses or journals, or a special case? Write to us and Viyug Infotech will get back to you.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 804 |
| Technical Name |
viyug_record_restrict |
| License | OPL-1 |
| Website | https://viyuginfotech.com |
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