Code for Save As button in Document Management system

Asked by Bushair

Hi,
Can you please let me know the Code corresponding to the Save As button in Document management system.

ie Navigate to Document Management system ->Directories Structure ->Open any Attached Docs
In the Attachement tab i could see a Save As button.

Where is the code Corresponding to the action/function while pressing this button.

Also if i want to rename this button which file i have to modify?and which line of code?

thanks

Question information

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

Hello Bushair,

This is generalize field used as a binary type so you can not change the behavior of this.
The code is managed by client side.

Thanks.

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

Hi
Thanks for the information.

Can you please tell me whether i can Rename the Save As button to Save button?
If yes , how to do that?

thanks

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

Hello Bushair,

The current Tool Tip is correct because the one copy of attachment is already saved in ir.attachment model and now if you want save another copy then 'Save As' option is perfect.

Thanks.

Revision history for this message
Best Husen Daudi (husendaudi) said :
#4

Hello,

here is the patch to change save as button to save.

=== modified file 'bin/widget/view/form_gtk/binary.py'
--- bin/widget/view/form_gtk/binary.py 2009-02-03 21:58:37 +0000
+++ bin/widget/view/form_gtk/binary.py 2010-04-07 09:26:48 +0000
@@ -82,7 +82,7 @@
         self.but_exec.connect('clicked', self.sig_execute)
         self.widget.pack_start(self.but_exec, expand=False, fill=False)

- self.but_save_as = binButton('gtk-save-as', _('Save As'), False)
+ self.but_save_as = binButton('gtk-save-as', _('Save'), False)
         self.but_save_as.connect('clicked', self.sig_save_as)
         self.widget.pack_start(self.but_save_as, expand=False, fill=False)

Regards,
HDA

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

Hi,
Thank you very much...

This solved my Problem

Revision history for this message
Justin De Chavez (justinedechavez) said :
#6

Hi, is there a possibility to disable this button to specific group? if this is possible how can I do that? Thanks in advance!

Revision history for this message
xrg (xrg) said :
#7

On Wednesday 29 February 2012, you wrote:
> Question #106685 on OpenERP Server changed:
> https://answers.launchpad.net/openobject-server/+question/106685
>
> Justin De Chavez posted a new comment:
> Hi, is there a possibility to disable this button to specific group? if
> this is possible how can I do that? Thanks in advance!

Frankly, I think you can't . There are just too many ways to circumvent your
restriction.

--
Say NO to spam and viruses. Stop using Microsoft Windows!