How to enable image widget save button for users with read access

Asked by James Wyson

Hi,

Is there a way to enable the save button in an image widget for users with read access? The save button is by default disabled for users with read access only. It becomes enabled if the user is given edit access.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello James Wyson,

It is complete binary field with number of buttons. You can not treat this as a field because this is created from client side.
You can do this but this needed much more customization.It will apply all the binary field exist in different objects.

The related following file which contain the binary field code. You can check and trace the code.
client/bin/widget/view/form_gtk/binary.py

Hope this will help you.

Thanks.

Revision history for this message
Bushair (bushairka) said :
#2

Hello VRA,
Thanks for the answer.

But i couldnt see any file name client/bin/widget/view/form_gtk/binary.py in my windows installation.

Can you please tell me the location of this file in the windows installation.

thanks

Revision history for this message
Bushair (bushairka) said :
#3

Hi VRA,

Can you please let me know the location of the file client/bin/widget/view/form_gtk/binary.py in my windows installation.?

thanks

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#4

Hello Bushair,

In windows there is .pyc file available in client code. You can see in c:\program files\openerpallinone\client\library.zip folder of .zip.
So .py file is not available in windows.

Thanks.

Revision history for this message
Bushair (bushairka) said :
#5

Hello VRA
Thank you very much for the answer.

Can you please let me know how can i change the binary.py file in windows?
If i want to change something in this file, how can i do it

After modifying what are the steps that i have to do ,to make this change works?

thanks
Bushair

Revision history for this message
Bushair (bushairka) said :
#6

Hello VRA
Thank you very much for the answer.

Can you please let me know how can i change the binary.py file in windows?
If i want to change something in this file, how can i do it

After modifying what are the steps that i have to do ,to make this change works?

thanks
Bushair

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#7

Hello Bushair,

You can not change .pyo file Directly. Better try to done changes in Ubuntu Linux and after completing the changes replace the .pyo file with changed .py file. But before doing this take backup of old .pyo file.

Hope this will help you.
Thanks.

Can you help with this problem?

Provide an answer of your own, or ask James Wyson for more information if necessary.

To post a message you must log in.