Hi, Am Dienstag, den 12.01.2010, 17:07 +0100 schrieb Cédric Krier: > On 12/01/10 16:58 +0100, Udo Spallek wrote: > > Hi, > > I have a form with an many2many list. > > The lines of the many2many are forms with a one2many field and some > > functional fields. > > The functional fields should update on_change with the one2many > field. > > When I delete a line in the one2many list, the on_change does his > job, > > but the old line is evaluated in the function fields as long as I > close > > the form of the one2many. After reopen the new values without the > line > > are shown. > > Is there a way to immediately evaluate the changes of a one2many > field > > for function fields in the same form? > I don't understand. Could you give an example ? (code) It works now without problems. I re-analysed the code of module account_invoice. The definition of field lines (one2many: account.invoice.lines) and the definition of the field total_amount (function) gives a good hint how to use on_change of a one2many in combination with function fields.
-- [email protected] mailing list
