Cédric Krier
a0bfbfa255
Follow isort formatting
...
issue10928
2021-12-11 17:58:45 +01:00
Cédric Krier
e02c830159
Fill local cache of Function field instances with values
...
issue10936
review377511003
2021-11-28 13:40:30 +01:00
Cédric Krier
a00d26dd3c
Cache Function field getter without context in readonly transactions
...
issue10936
review367781002
2021-11-28 13:27:52 +01:00
Sergi Almacellas Abellana
06346f0c76
Eager load Function field with same multiple getter
...
issue9561
review314201002
2020-12-06 18:34:19 +01:00
Cédric Krier
fc66c17eb0
Call getter function when accessing Function field
...
If the record is unsaved and the getter is based on on_change_with, we can call
the getter to compute the value.
This value must not be stored in the cache as it may change prior to saving.
issue4193
issue9263
review317291002
2020-05-03 14:34:44 +02:00
Cédric Krier
bb0242faf8
Raise NotImplementedError when setting Function field without setter
...
issue7985
review265101002
2019-03-27 00:28:58 +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
1738a4ec35
Add ir.message and use custom exceptions
...
issue3672
review35291002
2018-12-29 14:19:08 +01:00
Cédric Krier
d2a461390a
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier
2d2ec90141
Use field name to call searcher or domain of Function field
...
The name from the domain may be nested.
issue7015
review44511002
2017-12-26 17:26:00 +01:00
Cédric Krier
a178546d0d
Use _field for sql_format of Function field
...
It is useful to allow to use sql_format on Function field when writing SQL
query that emulate the field.
issue6410
review34051002
2017-04-01 19:55:35 +02:00
Cédric Krier
a908e8cc74
Add MultiValueMixin and ValueMixin and remove Propery
...
issue2349
review23351002
2017-04-01 00:24:55 +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
dd3e0a4c2a
Improve assertion in convert_domain of Function field
...
The field name from the domain could be a nested if the Function field is
relational. So it must just if it starts with the name of the field.
2016-12-22 01:15:46 +01:00
Cédric Krier
f6deed5941
Allow to use domain_<field name> method with Function fields
...
issue6113
review26961003
2016-12-21 23:08:30 +01:00
Cédric Krier
7ca7f4c6f0
Allow to store Binary field in filestore
...
Two options are added on Binary field to define the column to use to store the
filestore id and the prefix to use.
Those options are used for Attachment and are configurable with conservative
default values.
issue5692
review25471003
2016-07-29 10:51:53 +02:00
Cédric Krier
611b96c5f0
Add is_instance_method tool compatible with Python3
...
issue3211
2015-03-18 23:34:55 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
ea112cb6be
Function fields should return proper sql_type
...
issue4302
review12701002
2014-11-27 22:16:34 +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
2b5e337553
Missing loading attribute in Function.__copy__
...
and remove useless deepcopy of string attributes.
review11391002
2014-08-01 10:20:32 +02:00
Cédric Krier
2680d1b746
Use a sequence of ids, values to set fields
...
review3331003
2014-02-24 19:15:57 +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
0c577dd660
Improve getattr lookup in fields.Function.get
...
review612003
2012-12-23 22:58:13 +01:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Nicolas Évrard
0a471486e0
correct pyflake errors
...
review164003
2011-11-02 15:49:38 +01:00
Cédric Krier
c259187ab7
Add loading attribute on fields
2011-01-07 10:58:43 +01: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
e36c70ce3b
searcher on Function fields take only one domain clause as argument
2010-03-23 11:22:31 +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
07e8939925
Raise exception when search function is missing on Function fields for issue1378
2010-01-26 12:15:35 +01:00
Cédric Krier
847fb72e90
Add PySON to replace python string evaluation on client side
2010-01-20 10:55:19 +01:00
Cédric Krier
92fab4e81b
Add datetime_field on xxx2Many to use a specific _datetime when reading the
...
related record
2009-10-05 15:41:10 +02: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
e28edc4d99
Add model.fields
...
Use better naming of field attributes
2009-02-03 18:58:25 +01:00