Nicolas Évrard
d4e3b605ef
Add 'where' operator to xxx2many
...
issue4507
review12951002
2016-01-21 10:48:32 +01:00
Cédric Krier
808580e2ea
Improve domain queries of xxx2Many
...
Avoid using double select of ids and origin.
issue4821
review15521002
2015-07-09 15:37:03 +02:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
9108f66d81
Ensure xxx2Many field are always tuple to be immutable
...
issue4327
review8701002
2014-11-19 21:37:22 +01:00
Sergi Almacellas Abellana
fd7c510ce4
Add grouped_slice helper and use it.
...
issue3516
review10301002
2014-07-17 18:53:05 +02: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
2680d1b746
Use a sequence of ids, values to set fields
...
review3331003
2014-02-24 19:15:57 +01:00
Cédric Krier
472b7e5d57
Rationalize relation actions
...
* Remove relation field actions:
- delete_all
- unlink_all
- set
* Rename relation field action unlink into remove
issue3457
review2271002
2013-12-20 12:32:07 +01:00
Cédric Krier
f52fe8e45f
Use a sequence of records, values in write
...
issue3499
review1641003
2013-12-19 14:44:01 +01:00
Laurent Defert
d143acdd0a
Add a 'copy' action to One2Many and Many2Many's set method
...
issue3341
review1271002
2013-11-19 11:04:33 +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
a95ae0dad9
Remove _inherits
...
review670002
2013-03-20 22:49:16 +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
290791e0df
Use instance in One2Many.get to re-use cache
...
review585007
2012-11-28 23:12:39 +01:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
5a0fd034cb
Fix reading from cache in field one2many
...
issue2706
review419001
2012-07-19 09:55:09 +02:00
Cédric Krier
6858187fc8
Add dynamic size limit on the One2Many, Many2Many and Char
...
review396001
2012-06-20 18:12:40 +02:00
Cédric Krier
1aae951f92
Allow to use Reference field in One2Many & Many2Many
...
review378002
2012-06-08 19:27:19 +02:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Cédric Krier
ad17611e3e
Remove change_default on fields
...
issue2249
review211002
2011-12-22 22:03:15 +01:00
Cédric Krier
cc48eb8532
New search widget
...
- Change select on fields into Boolean
- Change format of search_value on ir.action.act_window
review95002
2011-10-03 09:45:21 +02:00
Cédric Krier
852f04dc51
Remove support of Python2.5 and fix py3 warnings
2011-07-12 00:16:15 +02:00
Cédric Krier
550aae8351
Change Pool into a Singleton
...
review42001
2011-07-03 13:20:58 +02:00
Cédric Krier
c259187ab7
Add loading attribute on fields
2011-01-07 10:58:43 +01:00
Cédric Krier
cd7ce92be9
Remove priority attribute on fields
2011-01-03 12:39:29 +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
4513a8f8b9
Documentation refactoring
2010-05-08 14:22:26 +02:00
Cédric Krier
2e2227d795
Improve search on translatable fields for issue1442
2010-03-17 11:50:52 +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
847fb72e90
Add PySON to replace python string evaluation on client side
2010-01-20 10:55:19 +01:00
Bertrand Chenal
862986e9b2
Use itertools.chain to improve get on xxx2many
2010-01-14 15:29:33 +01:00
Ian Wilson
2d22a6dadf
Add index to improve performance of sorting subsequences for issue1372
2010-01-10 16:18:15 -08: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
f4568e0cde
Factorise code by adding get_cache function on Cursor.
2009-09-07 15:34:04 +02:00
Cédric Krier
ffc8d2ba57
Fill the cursor cache at search and use it in search_read and in one2many get
2009-09-07 10:39:09 +02:00
Cédric Krier
567d925ada
Add delete_all action on One2Many field
2009-06-18 18:46:48 +02:00
Cédric Krier
e66da8ad87
Add missing order param on One2Many
2009-04-02 00:36:31 +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
3706e76e99
Add _history_table on ModelSQL to historize change on records
...
Use _datetime in context to read record value at specific datetime
Add datetime_field on Many2One to use a specific _datetime when reading the
related record
2009-02-23 11:27:36 +01:00
Cédric Krier
66f0ada474
Allow to use related fields (many2one and reference) in read
...
Use rec_name function field instead of name_get and name_search
Remove get function on many2one field
Don't put record name in reference field
Handle rec_name in default_get so default value for many2one are now only id
2009-02-17 11:40:31 +01:00
Cédric Krier
e28edc4d99
Add model.fields
...
Use better naming of field attributes
2009-02-03 18:58:25 +01:00