Sergi Almacellas Abellana
b637c503e7
Only convert dict fields when they are strings
...
issue6382
review28101002
2017-06-09 13:22:42 +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
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
Sergi Almacellas Abellana
95e000c9e8
Add filter to xxx2Many fields
...
issue4005
review32001002
2017-03-30 09:40:41 +02:00
Nicolas Évrard
c3f69d1db7
Add NULLS ordering
...
issue5858
review27651002
2017-03-29 23:12:01 +02:00
Cédric Krier
83e0b969b9
Allow digits with None values
...
issue6296
review30051002
2017-03-12 23:57:38 +01:00
Cédric Krier
cdc5952145
Manage Cache in Transaction
...
issue6216
review33021002
2017-02-02 12:04:27 +01:00
Cédric Krier
aec4208225
Allow to register multiple exit functions on Transaction
...
Use Transaction.atexit for sleeping on login attempt to put back the
transaction as soon as possible.
issue6217
review27911002
2017-02-02 12:00:49 +01: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
bc4e675935
Add warning about mutating cache values
...
issue6186
review29931002
2017-01-19 22:57:09 +01:00
Sergi Almacellas Abellana
0de3ae0a51
Allow to override cache implementation
...
issue5962
review33491003
2016-10-26 15:55:05 +02:00
Cédric Krier
e843bd23c5
Add button rule
...
issue5944
review26791002
2016-10-26 09:44:09 +02:00
Jan Grasnick
1eadd71f98
Add support for datetime_field to fields.Reference
...
issue4579
review26811002
2016-10-21 12:52:26 +02:00
Sergi Almacellas Abellana
828afc310d
Add sequence_ordered
...
issue5105
review25561002
2016-09-13 14:01:17 +02:00
Cédric Krier
9d100e33c5
Fix Transaction documentation according to last changes
...
issue5759
review30401002
2016-08-04 23:58:37 +02:00
Cédric Krier
8b99a62f10
Use 'default_rec_name' context key in Model.default_get
...
This allow the client to set searched value as default rec_name when the user
choose to create the record.
issue4136
review22131002
2016-08-04 23:54:50 +02: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
065d1b7bb6
Add filestore module
...
Replace custom Attachment setter/getter by a generic module that can be used by
others.
issue5686
review22141003
2016-07-29 10:46:52 +02:00
Cédric Krier
8555aa5b0b
Allow None in Greater/Less PYSON
...
As all statements are evaluated even if surrounded by 'If', it is not possible
to use numeric field with Greater/Less because they can be None.
issue5711
review29381004
2016-07-19 07:40:50 +07:00
Sergi Almacellas Abellana
b24c4143a2
Remove string attribute from ir.ui.view and ModelView.view_header_get
...
issue2350
review24251002
2016-07-05 12:42:46 +02:00
Cédric Krier
424e0a1bb1
Limit readonly state for xxx2Many
...
issue5041
review29271002
2016-06-30 21:41:58 +02:00
Cédric Krier
87540ef0e8
Add warning about Function.setter instances not saved
...
issue5651
review28321002
2016-06-20 14:37:30 +02:00
Cédric Krier
ba1faa1a76
Add sendmail datamanager
...
issue5431
review17981002
2016-03-28 22:40:37 +02:00
Nicolas Évrard
bc1e9a9830
Support Two-Phase Commit protocol in Transaction
...
issue3553
review23741003
2016-03-25 17:17:41 +01:00
Cédric Krier
a650e8469f
Speed up pool setup
...
We split the operations into two steps, so we can do the setup calls at the end
if there is no installation or update.
issue5302
review17041002
2016-03-17 22:56:58 +01:00
Cédric Krier
4d58b3a720
Don't remove from context the format of Binary fields
...
The getter of the Binary field could be called many times in the same
transaction, so popping out the format from the context create a side effect
that changes the requested format.
issue3774
review19981002
2016-03-05 17:26:27 +01:00
Nicolas Évrard
2fef479575
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier
493db9aa18
Instance method can also be used as selection method
...
review24691002
2016-01-13 21:25:26 +01:00
Sergi Almacellas Abellana
2a723f2e52
Only rebuild mptt tree if needed
...
The tree will be only rebuild if a record with the default value of left or right fields exists.
issue5118
review16921002
2016-01-11 15:33:08 +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
a6c0702bd1
Add StateReport to Wizard
...
issue4896
review19361002
2015-08-14 17:58:47 +02:00
Sergi Almacellas Abellana
9ac3fec4dd
Explicity raise error when creating/writing/deleting models with table_query
...
issue4822
review16351002
2015-07-29 10:56:30 +02:00
Cédric Krier
44dc331ced
Use Constraint instance in ModelSQL._sql_constraints
...
issue4814
review15491002
2015-06-22 16:57:06 +02:00
Cédric Krier
0c4725b891
Add target_search option on Many2One
...
The option allow to select between the subquery or the join format for target
search clause.
issue4798
review16341002
2015-06-15 01:10:59 +02:00
Cédric Krier
e406368f2e
Fix autocomplete documentation
...
autocomplete doesn't take a values argument anymore.
2015-03-23 15:05:12 +01:00
Cédric Krier
5cfde31ed2
Use bytes and bytearray for Binary
...
issue4637
review11091002
2015-03-16 19:28:34 +01:00
Cédric Krier
ad5eb3ed97
Add ModelView.button_change
...
issue4397
review7781002
2015-03-16 12:56:11 +01:00
Cédric Krier
b1aaab4283
Fix spacing in fields.TimeDelta documenation
2015-03-11 09:12:19 +01:00
Cédric Krier
b7776731a6
Add noeval to PYSONDecoder
...
issue1616
review15071002
2015-03-10 23:47:38 +01:00
Cédric Krier
bcd28ca071
Remove safe_eval
...
We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.
issue4416
review6971002
2015-03-09 19:40:41 +01:00
Cédric Krier
0991a552de
Add TimeDelta field
...
And remove float_time widget.
issue4026
review5911002
2015-02-09 22:58:56 +01:00
Cédric Krier
32001bc6d6
search_global yields record instead of id
...
It is better for customization to yield record instead of id to prevent to
instantiate a second times the record.
issue4519
review6871002
2015-02-04 13:37:02 +01:00
Cédric Krier
91cb6d2058
Add documentation about storage and display of DateTime
2015-01-06 16:33:54 +01:00
Nicolas Évrard
dcf57d8c33
Allow to use the dotted notation for search order parameters
...
issue4370
review5801002
2015-01-02 16:33:00 +01:00
Cédric Krier
59afe32b76
Add documentation about default_ method on Wizard
...
review9941002
2014-12-20 16:14:04 +01:00
Cédric Krier
286860f6b1
Fix documentation of ModelView.fields_view_get
...
review8811002
2014-12-16 22:19:01 +01:00
Cédric Krier
9f3b1271d3
Add wizard and state_name to StateView.get_view
...
This gives the same signature as for get_buttons and get_defaults. And so it
allows to customize the returned view base on the wizard state.
issue4406
review5861002
2014-12-16 22:17:34 +01:00
Cédric Krier
38b59e0329
Remove Pool.object_name_list
...
This method is inefficient for testing existence of an item, it is better to
ask for forgiveness.
review12761002
2014-12-16 22:02:44 +01:00
Cédric Krier
e8b10770e0
Fix documentation for new API of on_change
...
issue4203
review6741002
2014-12-04 17:17:01 +01:00
Cédric Krier
b379e32745
Add translated descriptor for Dict field
...
issue4343
review11641002
2014-11-27 22:20:43 +01:00