Cédric Krier
d2a461390a
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier
710c0ab2e9
Rename with_inactive_records decorator
...
issue7026
2018-04-03 14:55:01 +02:00
Cédric Krier
8c61a67c2b
Remove active test in search_domain of Many2One and Reference
...
As the target is stored on the record, the target is always visible so
searching on it should not add active clause.
issue7026
review41231002
2018-04-03 13:20:37 +02:00
Nicolas Évrard
ff5b79819b
Add support for search_* attributes on relational fields
...
issue6081
review25871002
2018-03-21 17:59:55 +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
Jan Grasnick
1eadd71f98
Add support for datetime_field to fields.Reference
...
issue4579
review26811002
2016-10-21 12:52:26 +02:00
Cédric Krier
29129855ec
Add support for Python 3
...
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Cédric Krier
d7db35c995
Fix selection_change_with
...
Initialize selection_change_with with en empty set. It must be a set to allow
later fields.depends to update it. The ModelAccess.check_relation must also
manage instance method.
issue4636
review14091002
2015-03-15 16:26:10 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
a2c8111f26
Use context to check model and field access
...
* Model and Field access checked only if _check_access is set
* Add check_access to RPC
* Add check_access to Wizard and Report
issue4081
review8481002
2014-09-17 21:43:53 +02:00
Cédric Krier
e0b995abbe
Refactore configuration to allow easy extention
...
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier
169b41e0b3
Allow to set a tuple model, dictionary for Reference field
...
issue3902
review9321002
2014-05-10 20:28:58 +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
bc6acd08ee
Drop support of Python 2.6
...
review2691002
2014-01-31 00:02:03 +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
10f28ebdec
Set lazy loading on Reference field
2012-11-22 22:39:22 +01:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Nicolas Évrard
584d516067
Integer, Numeric and Float allow None as value
...
NULL value is None and not False
issue2022
review237004
2012-03-23 17:52:36 +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
4f4c4b92ad
Allow to use negative id in reference as unknown record
2011-09-20 15:40:48 +02:00
Cédric Krier
48ec29ab70
Reference id could be 0
2011-09-20 14:43:17 +02:00
Cédric Krier
852f04dc51
Remove support of Python2.5 and fix py3 warnings
2011-07-12 00:16:15 +02:00
Cédric Krier
550aae8351
Change Pool into a Singleton
...
review42001
2011-07-03 13:20:58 +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
Cédric Krier
400817acbb
Improve speed for ir.property and reference fields for issue1623 and issue1631
2010-10-06 20:09:01 +02:00
Cédric Krier
df1fd283ac
New transaction management
...
Remove cursor, user and context from methods and use Transaction instead
2010-08-19 22:01:12 +02:00
Cédric Krier
483afed26a
Catch only Exception according to PEP 352
2010-07-08 19:53:39 +02:00
Cédric Krier
2e2227d795
Improve search on translatable fields for issue1442
2010-03-17 11:50:52 +01:00
Cédric Krier
dd6918994f
New interface for Function/Property fields
...
Function field takes an other field in parameters
set/get function on Fields take a list of ids
2010-03-11 16:42:50 +01:00
Cédric Krier
b427d21224
Add new tool safe_eval
2009-09-28 11:21:11 +02:00
Gour
486d46a405
fix typos for documentation (Model chapter)
2009-09-13 15:37:11 +02:00
Cédric Krier
27f67ccfd5
Store ids found in Reference to prevent to search many times for the same
2009-08-07 16:39:40 +02:00
Cédric Krier
5fc6482651
Remove unnecessary ordered result for search that check existance
2009-08-07 13:34:31 +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
3706e76e99
Add _history_table on ModelSQL to historize change on records
...
Use _datetime in context to read record value at specific datetime
Add datetime_field on Many2One to use a specific _datetime when reading the
related record
2009-02-23 11:27:36 +01:00
Cédric Krier
66f0ada474
Allow to use related fields (many2one and reference) in read
...
Use rec_name function field instead of name_get and name_search
Remove get function on many2one field
Don't put record name in reference field
Handle rec_name in default_get so default value for many2one are now only id
2009-02-17 11:40:31 +01:00
Cédric Krier
e28edc4d99
Add model.fields
...
Use better naming of field attributes
2009-02-03 18:58:25 +01:00