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
Cédric Krier
b13abebc81
Use dualmethod on ModelStorage.save
...
issue4197
review8671002
2014-11-01 11:52:55 +01:00
Cédric Krier
4d5f4c6c3d
Add restore_history_before on ModelSQL
...
issue4259
review6601003
2014-10-27 23:10:52 +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
16aa948e3d
Add support for domain_<field name> method
...
issue4126
review6501002
2014-09-13 15:14:56 +02:00
Cédric Krier
6765a12e5a
Add add_remove alias on Many2Many for compatibility with One2Many
...
issue4112
review5511002
2014-09-01 12:53:32 +02:00
Cédric Krier
349fc51a7f
Use the context of the relation field for instanciation
...
issue4098
review13461002
2014-08-29 16:49:09 +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
68c34c203a
Add name to union_column to ease override
...
The current union_column uses the field.name to get the union_field, it works
correctly but prevent to implement by override a clean mapping transformation of
name between the union and the models. Indeed it is doable by passing an other
field but then we could potentially lost the automatic sharding.
issue3992
review13331003
2014-06-22 17:11:06 +02:00
Cédric Krier
e740b5f432
Remove on_change call from default_get
...
The on_change call doesn't work for xxx2many fields, so it is moved on the
client side where it is properly managed.
issue3923
review6301002
2014-06-08 00:33:31 +02:00
Cédric Krier
3f8d858c01
Add UnionMixin
...
issue3906
review8341002
2014-06-08 00:26:57 +02:00
Cédric Krier
03801d399a
Allow to disable sorting of dictionary field's selection
...
issue3605
review2821002
2014-05-30 16:31:17 +02:00
Cédric Krier
1abe24ce34
Add MachMixin
...
issue3867
review5271002
2014-05-09 23:16:19 +02:00
Cédric Krier
88bd235c3d
Fix documentation warnings
2014-04-17 17:40:50 +02:00
Cédric Krier
9dbc025011
Add restore_history to ModelSQL
...
issue3456
review1441003
2014-03-18 20:07:03 +01: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
335b0b6851
Add history revisions
...
issue3678
review3551002
2014-03-18 19:54:32 +01:00
Nicolas Évrard
4334efa2ee
Add index to one2many's on_change add
...
review2091002
issue3539
2014-03-16 20:49:42 +01:00
Cédric Krier
a130816cbd
Add support of domain for non-relation field
...
issue3743
review4181002
2014-03-15 10:44:45 +01:00
Cédric Krier
f0a4bbcff7
Remove Sha field and add password widget
...
issue3713
review3791003
2014-03-07 19:38:01 +01:00
Sergi Almacellas Abellana
e64751cf5b
Add docs about new action_id variable on wizards
...
issue3675
review3911002
2014-02-28 20:29:33 +01:00
Cédric Krier
76cd64e6f8
Add Len to PYSON
...
issue3692
review3661002
2014-02-27 12:36:53 +01:00
Cédric Krier
dce4d3f732
Client side actions on button and wizard
...
issue3343
review3231002
2014-02-15 18:34:22 +01:00
Cédric Krier
2e7c28d348
Add with_on_change switch to default_get
...
default_get should not call on_change when called in create because it could
modify values set by the caller.
issue3602
review2781002
2014-01-26 21:57:15 +01:00
Cédric Krier
905343c900
Add fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:27:24 +01:00