ovnicraft,
I think that as soon as you try to raise, you loose the opportunity to change
the form values.
Instead of raising, I think you should return a warning popup which can be part
of the regular answer along with the changed values.
Take a look at the other on_change implentation returning a warning. For
instance I did one in trunk extra addons in module fleet_maintenance, see
sale.py file and the few on_change methods.
You'll typically return a hash like
<code>
result = {'value':{'field1':field1_value, 'field2':field2_value},
'warning':{'title':popup_title, 'message':popup_message}}
</code>
Again, look in my fleet_maintenance/sale.py code for instance to see the exact
implementation and ensure it's exactly as I said.
Hope this helps
Raphaël Valyi
------------------------
http://www.smile.fr
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=32879#32879
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users