Hi,

Just a quick note about the new API for on_change that I pushed.
http://hg.tryton.org/trytond/rev/8e8f1a801098

So on_change methods should no more return dictionnary with changed
values, they must change the directly the record.
There is an assert that is appended on all on_change method to ensure
they don't return anything (which will mean they are not upgraded).

This allows to chain on_change calls or to re-use on_change methods for
different purposes.

I think the decoration of on_change could be removed once proteus is
upgraded to use the grouped call. I think it will be better to remove it
for at least 3.8, to get the assert on one series to help migration.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgp1VPKku3CAT.pgp
Description: PGP signature

Reply via email to