Add a decorator for on_change* method to fill depends
We could implement a decorator for on_change* methods which will contain the
list of fields used in the method. The decorator will be in charge of updating
the depends list of every Function fields of the class.
This will allow to keep the usage and the definition close in the code.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Cédric Krier added type::behavior + 1 deleted label
added type::behavior + 1 deleted label
- Cédric Krier assigned to @ced
assigned to @ced
- Cédric Krier added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
- Author Owner
Please test patch at review2301002
- Cédric Krier added trytond + 1 deleted label and removed 1 deleted label
added trytond + 1 deleted label and removed 1 deleted label
- Cédric Krier added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
- Author Owner
Also patches: review2501002 and review2501003
New changeset d2231b27b015 by C?dric Krier in branch 'default':
Don't set default value for on_change and set id
http://hg.tryton.org/tryton/rev/d2231b27b015New changeset 7044004222d3 by C?dric Krier in branch 'default':
Add fields.depends decorator
http://hg.tryton.org/trytond/rev/7044004222d3New changeset 616b6b879cd7 by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/account/rev/616b6b879cd7New changeset b2f7a2b22bd1 by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/account_asset/rev/b2f7a2b22bd1New changeset ce6ddd991840 by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/account_invoice/rev/ce6ddd991840New changeset 17350fe8bb2f by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/account_product/rev/17350fe8bb2fNew changeset 6a9e1dd897d5 by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/account_statement/rev/6a9e1dd897d5New changeset e63b57cf9919 by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/analytic_account/rev/e63b57cf9919New changeset bfec8aa27711 by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/calendar_todo/rev/bfec8aa27711New changeset 8f1e3a90d360 by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/carrier_weight/rev/8f1e3a90d360New changeset fe0d59a9fe81 by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/company/rev/fe0d59a9fe81New changeset 9aea4f91b449 by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/currency/rev/9aea4f91b449New changeset 1c5e2443cafc by C?dric Krier in branch 'default':
Use fields.depends decorator
http://hg.tryton.org/modules/google_maps/rev/1c5e2443cafc