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
ad5eb3ed97
Add ModelView.button_change
...
issue4397
review7781002
2015-03-16 12:56:11 +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
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
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
286860f6b1
Fix documentation of ModelView.fields_view_get
...
review8811002
2014-12-16 22:19:01 +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
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
9dbc025011
Add restore_history to ModelSQL
...
issue3456
review1441003
2014-03-18 20:07:03 +01:00
Cédric Krier
335b0b6851
Add history revisions
...
issue3678
review3551002
2014-03-18 19:54:32 +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
f52fe8e45f
Use a sequence of records, values in write
...
issue3499
review1641003
2013-12-19 14:44:01 +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
ba94740d1f
Fix wrong reference to method
2013-04-17 17:40:23 +02:00
Cédric Krier
c87965cf61
Remove ModelSQL.default_sequence from the doc
...
ModelSQL.default_sequence was removed in 2.6
issue3143
2013-04-12 19:29:23 +02:00
Cédric Krier
a95ae0dad9
Remove _inherits
...
review670002
2013-03-20 22:49:16 +01:00
Albert Cervera i Areny
25463800c9
Replace _constraints with validate in ModelStorage and improve user messages.
...
issue2616
review371002
2013-03-07 16:53:19 +01:00
Cédric Krier
690c066c35
Add documentation for Dict field and standardize options
...
review672003
2013-02-23 18:26:01 +01:00
Albert Cervera i Areny
30b1403cdc
Use a list of dictionaries in create().
...
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier
c1fd506f77
Add global search
...
review582002
2012-12-05 13:25:18 +01:00
Cédric Krier
4337ce2776
Add pre-validation
...
review536002
2012-09-29 14:39:59 +02:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
4dcb7b6dd3
Merge all kind of buttons
...
review483002
2012-09-10 15:26:34 +02:00
Cédric Krier
e4dd1a25d0
Remove hexmd5 from ModelView.fields_view_get
...
review366001
2012-06-08 19:04:41 +02:00
Cédric Krier
be0e5c54a9
Simplify workflow engine
...
- Remove workflow module
- Add ir.model.button for access rights
review256001
2012-03-25 00:15:17 +01:00
Ian Wilson
a98d2a147f
Fix documentation build errors.
...
Shorten attribute to attr, shorten method to meth and fix Fields typo.
issue2042
review40004
2011-06-05 19:44:09 -07: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
1513426987
Add ir.trigger to trigger ModelStorage change
2010-05-29 15:58:49 +02:00
Cédric Krier
4513a8f8b9
Documentation refactoring
2010-05-08 14:22:26 +02:00