Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
7309 Vizualizări

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?

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează

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 ?

Related Posts Răspunsuri Vizualizări Activitate
0
feb. 23
2018
0
apr. 25
2663
0
iul. 24
1869
1
iun. 21
4658
1
aug. 19
6046