Eventhough the quotation is confirmed by admin my user can edit the quotation now.so i need to remove the permission for my user for editing the quotation after confirming it by admin.how can i do that?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Hi, In my opinion,2 ways solved it: 1. change the field's attribute of the order object, exmpale:
'shop_id': fields.many2one('sale.shop', 'Shop', required=True, readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}),
only the draft and sent state the fields can be edited
2. add access rule for the object
Settings >> Technical >> Security >> Record Rules
remove Apply for Write..
then set the domain filtter example:
[('state', '=', 'Quotation')]...
Hope it wil help you
HI,
Go in Settings >> Technical >> Security >> Access Controls List
Search Purchase you file find access control list for purchase order remove write access as show in screen shot.
To see screen shot click here
Hi,Jack,The way you did is not good, remove access control list for object,you will not change the order even it just on draft state
@Roc cheng : Then which way we do that ?
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
lut 23
|
1976 | ||
|
0
kwi 25
|
2622 | ||
|
0
lip 24
|
1843 | ||
|
1
cze 21
|
4622 | ||
|
1
sie 19
|
6034 |