Hi all, in a view (like sale order, but could be any view) there is two ways to add lines (products in sale order) - we can create a view form for the line and when the user click on "add an item" link show the form (like a sale order) or - we can add a line in row, directly in the tree (like customer or supplier invoice)
but I need a way to add a line when the user click on a buttom (or in on_chage attribute of a field)
in OpenERP 6.0 I can add an item with the "create" function in the server side, but in OpenERP 7.0 this not work because the line is added in the client view an the "create" function is called when the user save the form
I hope you can help me. thanks in advance.
I check a lot of the code and I found an example of this on account.voucher form. for a Saler order