allow buttons on form that link to same action

Registered by David Janssens

Allow buttons that link to same action on one form.
(currently impossible otherwise name is identical)
It can be accomplished by allowing names like this: name="1234.xxx"
Where xxx is some unique identifier of the button.
The following small patch implements this:

=== modified file 'openerp/controllers/form.py'
--- openerp/controllers/form.py 2010-01-14 08:50:13 +0000
+++ openerp/controllers/form.py 2010-01-18 11:05:24 +0000
@@ -524,7 +524,7 @@
         elif btype == 'action':
             from openerp.controllers import actions

- action_id = int(name)
+ action_id = int(name.split(".")[0])
             action_type = actions.get_action_type(action_id)

             if action_type == 'ir.actions.wizard':

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.