Hello I'm trying to restrict the users to see only his own invoices
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
Hi,
You can set the domain for account.move model
['|',('create_uid','=',user.id),('message_partner_ids', 'in', [user.partner_id.id])]
you can apply record rules. Record rules allow you to define domain filters to limit the records visible to specific users or user groups. Here's how you can implement this:
Go to the Odoo user interface and navigate to Settings > Technical > Security > Record Rules.
Create a new record rule by clicking on the "Create" button.
In the record rule form, provide a name and optionally a description for the rule.
Set the Object field to "Invoices" or the appropriate model you are working with.
In the Domain field, define the domain filter to restrict the invoices. The domain should ensure that only the invoices belonging to the current user are visible. For example, you can use the user_id field to filter invoices based on the current user. The domain expression would look like:
[('user_id', '=', user.id)]
Replace user_id with the appropriate field name in your invoice model.
Save the record rule.
Assign the record rule to the appropriate user group(s) by adding the group(s) to the Groups field in the record rule form.
Save the record rule.
Now, when users belonging to the assigned group(s) access the invoices, they will only see their own invoices based on the record rule's domain filter.
Hi,
To restrict users to see only his own invoice here is a related forum which satisfies your requirements:https://www.odoo.com/sl_SI/forum/help-1/updated-make-users-see-only-their-own-invoices-and-bills-198372
Hope it helps
Hello,
You can set the domain or record rule for account.move model.
[('create_uid', '=', user.id)]
its not work sorry
Hello,
Please describe me what you done exactly.
model : account.model_account_move ,
force domain : [('create_uid', '=', user.id)]
its not work
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
PrijaviRelated Posts | Odgovori | Prikazi | Aktivnost | |
---|---|---|---|---|
|
3
feb. 25
|
2494 | ||
|
0
maj 24
|
46 | ||
|
1
apr. 24
|
2642 | ||
|
2
sep. 23
|
6370 | ||
|
1
avg. 23
|
1860 |