How to change values of a one2many field in an on_change event?
Asked by
Christophe Hanon (www.adins.be)
I am trying to write an on_change handler for a one2many field.
basically, what I want to do is checking when a line is added to sale.order and in some case add an extra line.
I catch the event (this is is my simplest handler for the time being:
def product_
return {'value': {'order_line': order_line }}
order_line is a list of list...
So I am just sending back the value I received (not very useful, but just for test...).
On the gtk client side, the dialog does not close, in the console of the gtk
I see : AttributeError: 'list' object has no attribute 'keys'
So what am I supposed to send back for a one2many field ?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Christophe Hanon (www.adins.be)
- Solved:
- Last query:
- Last reply:
To post a message you must log in.