Cédric Krier
7892f8ae56
Use declarative index definition for ModelSQL
...
issue5757
review361251002
2022-10-11 00:44:51 +02:00
Cédric Krier
2495c0cbdd
Order unsorted Selection by index definition
...
issue11169
review387771003
2022-02-15 00:06:57 +01:00
Cédric Krier
a0bfbfa255
Follow isort formatting
...
issue10928
2021-12-11 17:58:45 +01:00
Cédric Krier
03e2a7f2dc
Avoid instantiate set
...
issue10660
review342911003
2021-09-02 23:56:13 +02:00
Cédric Krier
837c2f6164
Do not switch selection value if the result is neither in the selection
...
issue10120
2021-03-02 08:38:10 +01:00
Cédric Krier
daf1b6e5ad
Add fallback to the value for missing translated selection
...
issue10120
review341441002
2021-03-01 23:28:52 +01:00
Cédric Krier
964fc0a74b
Add help for each value to selection and multiselection
...
issue9649
review320021002
2021-02-14 14:28:55 +01:00
Cédric Krier
e11a23deb2
Rationalize import path
...
We use absolute path when imported module is from a different context.
And we remove unnecessary __all__ definition.
issue9466
review323591002
2020-07-21 14:38:36 +02:00
Cédric Krier
def268915a
Add MultiSelection field
...
issue7851
review249911002
2019-09-20 11:32:56 +02:00
Cédric Krier
54e2d31843
Ensure to convert to string LazyString of selection
2019-08-25 20:51:31 +02:00
Cédric Krier
589e27cc87
Add lazy_gettext
...
issue8560
review283901002
2019-08-25 13:00:28 +02:00
Cédric Krier
51c99aaa12
Allow SQL expression as value of fields
...
issue6460
review279431002
2019-06-26 21:56:16 +02:00
Cédric Krier
e39129ee3d
Add sort and translate options to Reference field
...
As Reference field uses the SelectionMixin, they could have the same options.
issue8278
review253331002
2019-04-15 16:11:00 +02:00
Cédric Krier
986da58a48
Use model name instead of class to translate field definition
...
The typo was introduced in changeset 1094d993d89c.
2019-03-09 15:23:11 +01:00
Cédric Krier
98bb26a386
Move field definition from Model to Field
...
issue8037
review74441002
2019-02-13 10:37:40 +01:00
Cédric Krier
93e3c0f9df
Order selection field with instance method on column
...
issue7934
review66491002
2018-12-30 00:14:27 +01:00
Cédric Krier
9eafd65d2e
Add translated descriptor for Reference field
...
issue5667
review39671002
2017-09-26 01:25:26 +02:00
Nicolas Évrard
5cee718423
Move low level handling of the SQL type to the backend
...
This changeset defines on the field the (somehow) abstract SQL type a field
should use letting the duty of specifying the real SQL type the database
supports and the conversion to/from the python types to the backend.
issue6351
review33951002
2017-03-31 12:44:22 +02:00
Nicolas Évrard
39c12cf496
Add set_rpc on Field
...
The __rpc__ attribute is currently filled by method in ModelView. Allowing
fields to define themselves what endpoints should be remotely callable make
this process more flexible.
issue4044
review30991002
2017-02-01 16:11:00 +01:00
Cédric Krier
21e4b96fea
Support selection method in TranslatedSelection
...
The Selection field could have a method name as selection so
TranslatedSelection must call this method to get the selection values.
issue5999
review27791002
2016-10-31 17:19:47 +01:00
Cédric Krier
b5479332d9
Use instance context in translated descriptor of Selection field
...
It is more expected from the translated descriptor to return translation in the
language from the instance instead of the current context.
issue5028
review15701002
2015-11-03 12:20:49 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
e0b995abbe
Refactore configuration to allow easy extention
...
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier
cd2ac5c1b1
Add translated descriptor for Selection field
...
issue3679
review10401002
2014-08-04 16:50:59 +02:00
Cédric Krier
6d1be2574b
Allow to customize field column and fix numeric search for SQLite
...
issue3733
issue3648
review4421002
2014-03-18 19:59:04 +01:00
Cédric Krier
905343c900
Add fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:27:24 +01:00
Cédric Krier
fc6c6cfdda
Migration to python-sql
...
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method
review1001002
2013-09-06 22:32:37 +02:00
Cédric Krier
d49fb4318d
Add selection_change_with on Selection and Reference fields
...
review587002
2013-02-05 19:06:16 +01:00
Cédric Krier
ad17611e3e
Remove change_default on fields
...
issue2249
review211002
2011-12-22 22:03:15 +01:00
Cédric Krier
cc48eb8532
New search widget
...
- Change select on fields into Boolean
- Change format of search_value on ir.action.act_window
review95002
2011-10-03 09:45:21 +02:00
Cédric Krier
c259187ab7
Add loading attribute on fields
2011-01-07 10:58:43 +01:00
Cédric Krier
cd7ce92be9
Remove priority attribute on fields
2011-01-03 12:39:29 +01:00
Gour
486d46a405
fix typos for documentation (Model chapter)
2009-09-13 15:37:11 +02:00
Cédric Krier
65d0a9494b
Update model documentation.
...
Use autodoc in sphinx
Add missing and fix docstring
2009-03-01 13:37:31 +01:00
Cédric Krier
bd9df98fe7
Store a copy of selection if possible for issue810
2009-02-25 12:41:20 +01:00
Cédric Krier
e28edc4d99
Add model.fields
...
Use better naming of field attributes
2009-02-03 18:58:25 +01:00