[Erp5-users] Accessing form field values from request
    Chetan Kumar 
    chetankumar at vsnl.net
       
    Mon Jan 25 10:33:39 CET 2010
    
    
  
Hi all
A snippet from Base_edit
------------
# Get the form
form = getattr(context,form_id)
edit_order = form.edit_order
------------
Using this in another python script does not give access to form 
fields/values (like it works in Base_edit).
This is the error seen
------
AttributeError: 'function' object has no attribute 'edit_order'
------
The idea is to set value for a field using values of a few other fields. 
Like a product code which is a combination of values from some other fields.
Also, please comment if this is the right way to proceed for creating 
product code ('reference' in the default product edit form)
TIA
Chetan
    
    
More information about the Erp5-users
mailing list