Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

editing confirmed quotation

By
shafeequemonp
on 4/21/14, 7:46 AM 1,568 views

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?

4
Roc cheng
On 4/22/14, 4:43 AM

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

0

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 4/22/14, 2:46 AM

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
on 4/22/14, 4:20 AM

@Roc cheng : Then which way we do that ?

Jagdish Panchal
on 4/22/14, 4:24 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/21/14, 7:46 AM
Seen: 1568 times
Last updated: 3/16/15, 8:10 AM