Cédric Krier
cd7d40eb07
Add symbol widget
...
issue9059
review276871002
2020-10-09 19:09:06 +02:00
Cédric Krier
b3f8d125f9
Use custom class to store record data
...
By using a class with slots instead of standard dict, we can reduce a lot the
memory usage to store the record data in the caches and values.
Also we can rely on the data in the cache to exist only for real field which
can be used to create a fast path in ModelStorage.__getattr__.
As now storing data in the cache has no extra cost, we can store data from the
transactional cache in the local. This allow also to have a shorter path in
ModelStorage.__getattr__.
For more memory efficiency, we remove the record from the cache instead of
clearing them. It was better to clear a dict but a record is less expensive to
re-instantiate than clearing.
issue9369
issue9225
review297861002
2020-06-13 09:48:03 +02:00
Cédric Krier
a48382124f
Support explicit delete and remove for saving and on_change xxx2Many
...
issue4140
review291281002
2020-04-12 23:18:15 +02:00
Cédric Krier
5626018cd6
Add export CSV data route
...
issue9090
review261011002
2020-04-12 23:10:30 +02:00
Cédric Krier
b12d729c2d
Add test on target of relation fields
...
issue9132
review291211004
2020-04-02 00:01:14 +02:00
Sergi Almacellas Abellana
0cb3377825
Add depends fields on view_attributes
...
issue8862
review303161002
2020-03-30 09:33:15 +02:00
Cédric Krier
62f2ce0198
Set all fields readonly for inactive records
...
issue3747
review295061011
2020-03-17 20:08:13 +01:00
Cédric Krier
9b2ed5d993
Move search documentation to ModelStorage
...
issue8946
review270771002
2020-01-21 00:40:40 +01:00
Cédric Krier
6b14518eff
Position new record based on order
...
We sent an order to the client for action and xxx2Many so its screen has
always a default order set.
To position a new record on non editable tree, we use the order of the 'id'
column if presents.
issue8880
review276501003
2019-12-28 18:16:28 +01:00
Cédric Krier
0ff927977d
Add help text to Dict keys
...
issue8801
review284371002
2019-12-11 22:25:51 +01:00
Cédric Krier
0811414d49
Update button_action with returned values
...
issue8766
review268241002
2019-12-07 16:03:36 +01:00
Cédric Krier
def268915a
Add MultiSelection field
...
issue7851
review249911002
2019-09-20 11:32:56 +02:00
Cédric Krier
2d0002d8e9
Allow to search on related field in search box
...
The server adds to the definition of the fields, the definition of relation
fields up to specific deep level.
The clients use this relation fields definition to extend the domain parser
with those fields using a dot notation. But those "dotted fields" are not
shown in the search filter to not bloat the popup as it is dedicated to
learning.
In addition, Dict fields are also filled with relation fields coming from the
keys defined in the schema model. As the size can very large, it is possible
to deactivate this feature from the configuration.
issue8293
review259391005
2019-06-16 15:44:14 +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
e9ee50982b
Allow to update records when importing data
...
issue652
review273131003
2019-04-04 20:00:25 +02:00
Cédric Krier
6d16b629f2
Add CSV exports to print toolbar
...
issue8130
review54571002
2019-03-22 17:21:21 +01:00
Cédric Krier
2752490423
Improve note button
...
* Add resources method to ModelStorage
* Support badge on icon
* Display unread and total of notes
* Add two extra colors for icon
issue8122
review70561002
2019-03-22 12:16:36 +01:00
Cédric Krier
fb59d8c9b4
Update documentation of the return of ModelStorage.import_data
2019-03-21 17:50:39 +01:00
Cédric Krier
10e31bc311
Add Model.__names__ to retrieve model and field names
...
issue8159
review72431002
2019-03-15 12:27:44 +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
b34cac78d5
Allow to lock records for update
...
issue8012
review45901002
2019-01-30 09:45:59 +01:00
Cédric Krier
889b1cc9f8
Allow to search and order on Dict key value
...
issue7905
review62391002
2019-01-18 11:32:47 +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
f430589b56
Add warning in the documentation about static filter
...
issue7902
review58451002
2018-12-21 23:48:05 +01:00
Cédric Krier
d1bb790cb8
New API to read related fields
...
issue7888
review58431002
2018-12-21 23:41:56 +01:00
Albert Cervera i Areny
b2b66251f1
Fix typo: One2MOne.filter should be One2One.filter
...
issue7901
review52541002
2018-12-18 23:44:54 +01:00
Cédric Krier
c7f5c54a83
Remove implicit fields names in ModelStorage.read
...
It is a bad practice to not explicit the fields to read. So we should not
support it.
issue7830
review54421002
2018-11-28 10:05:01 +01:00
Cédric Krier
208fe62130
Better explanation of _order_name
...
issue7811
review58401002
2018-10-26 22:21:01 +02:00
Cédric Krier
d221e36653
Improve ModelStorage.copy
...
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default
issue5576
issue7648
review72291002
2018-09-01 01:02:04 +02:00
Cédric Krier
ae06a8bca2
Add transactional queue and workers
...
issue7406
review45461002
2018-07-27 09:32:28 +02:00
Cédric Krier
7a2ce7905a
Add __table_handler__ to ModelSQL
...
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier
1e70b97140
Add missing documentation for ModelSQL.__table_history__
2018-07-19 19:23:10 +02:00
Nicolas Évrard
d9ff752284
Add domain to dictionary schema
...
issue7199
review51401002
2018-07-09 12:41:40 +02:00
Cédric Krier
0d07dea2ac
Return new records from copy following the input order
...
issue7512
review58291002
2018-06-24 16:48:27 +02:00
Cédric Krier
35bba61748
Make depends on methods generic to any method
...
issue5191
review50381002
2018-05-31 13:23:55 +02:00
Cédric Krier
6a50848201
Document _parent_ behaviour on One2Many
...
issue6711
review38841002
2018-05-29 10:35:26 +02:00
Cédric Krier
5ca66d5ccf
Add tree mixin
...
- Implement generic get_rec_name and search_rec_name
- Include recursive check
issue7383
review48281002
2018-05-12 00:45:55 +02:00
Cédric Krier
d23d7c9ccb
Do not call table_query for testing
...
Only the callable property of table_query is used to test if the ModelSQL uses
a table query or not.
issue5726
review47321002
2018-04-30 15:55:31 +02:00
Cédric Krier
00e4a51a41
Add sql_cast on Field
...
issue7266
review37141002
2018-04-30 14:59:01 +02:00
Cédric Krier
aa8281c1e3
Fix class name for ModelSQL.search documentation
...
issue7358
review47341002
2018-04-18 10:14:58 +02:00
Cédric Krier
60f167bcfe
Add index method to order field set calls
...
issue7090
review46301002
2018-04-05 19:18:52 +02:00
Sergi Almacellas Abellana
bfb76a70ad
Add deactivable mixin and ensure active field is present
...
issue4341
review38401002
2018-03-26 14:07:45 +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
b3ca13748b
Add Exclude constraint
...
issue1422
review44061002
2018-03-19 16:57:49 +01:00
Nicolas Évrard
acdbe5a08f
Allow to perform unaccented searches on Char fields
...
issue7115
review44611002
2018-03-16 18:17:53 +01:00
Cédric Krier
d371ca43b7
Improve documentation of order
...
It should be described in ModelStorage.search instead of ModelStorage._order
because search is where it is used.
review44411002
2017-10-26 10:55:59 +02:00
Cédric Krier
9eafd65d2e
Add translated descriptor for Reference field
...
issue5667
review39671002
2017-09-26 01:25:26 +02:00
Cédric Krier
6d783acf42
Make save parameter of set_multivalue public
...
It can be useful for performance when setting values for MultiValue field on a
large set of records.
issue6625
review39491002
2017-07-27 00:05:04 +02:00
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