diff options
| author | Raphael Collet <rco@openerp.com> | 2014-07-10 22:04:03 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2014-08-06 15:20:07 +0200 |
| commit | e95fc488dbc668932f0f8f8b2223d752c4745347 (patch) | |
| tree | a9924e33fda29f15e0107b26587b09a8fee049d4 /addons/analytic_user_function/analytic_user_function_view.xml | |
| parent | dc9bcf479de49ece90bb4df97045c877e5a0e437 (diff) | |
[IMP] fields: add mechanism to extend a selection field
If a selection field is defined by a list as selection, such as:
state = fields.Selection([('a', 'A'), ('b', 'B')])
one can extend it by inheritance by redefining the field, as:
state = fields.Selection(selection_add=[('c', 'C')])
The result is that the selection field will have the list
[('a', 'A'), ('b', 'B'), ('c', 'C')] as selection.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions
