Cédric Krier
c08724f2ef
Don't stop setting Many2Many if first values is empty
2014-04-11 15:41:55 +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
5082be317a
Fix wrong Concat in the translation join for ir.model
2014-03-18 16:24:23 +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
8a95fa6d5b
No good reason to make get_translation_join private
...
review3241003
2014-02-06 22:59:42 +01:00
Cédric Krier
bc6acd08ee
Drop support of Python 2.6
...
review2691002
2014-01-31 00:02:03 +01:00
Cédric Krier
905343c900
Add fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:27:24 +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
Albert Cervera i Areny
a7558e4e14
Check if order_* is overriden in Many2One fields
...
review1091002
2013-09-25 10:53:16 +02:00
Cédric Krier
b03788e6db
Fix duplicate translations
...
- Fix unique constraint by using -1 instead of NULL for res_id
- Clean duplicate entries in po file
The unique constraint was not working when res_id was NULL because SQL consider
all of them as different.
The migration could fail if there is duplicate translation in the database. So
this query must be run until no more records are deleted:
DELETE FROM ir_translation WHERE id IN (SELECT MAX(id) FROM ir_translation GROUP BY name, res_id, lang, type, src_md5, module HAVING COUNT(1) > 1);
issue3355
review1087004
2013-09-22 14:33:39 +02: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
Nicolas Évrard
27ccf989a5
Add tests on fields.Binary
...
review1017002
2013-08-16 11:08:44 +02:00
Nicolas Évrard
c1e77c77eb
Fix binary size handling migration to Active Record
...
review1017002
2013-08-16 11:07:44 +02:00
Cédric Krier
2e8ec5f5df
Replace SPLIT_PART by SUBSTR and POSITION
...
SPLIT_PART is not a standard SQL function (it is not supported by MySQL).
SUBSTR is used even if it is not standard SQL because SUBSTRING is not
supported by SQLite. This will change once we will migrate to python-sql.
review784002
2013-04-14 23:17:55 +02:00
Cédric Krier
a95ae0dad9
Remove _inherits
...
review670002
2013-03-20 22:49:16 +01:00
Cédric Krier
5e01f5c068
Fix flake8
2013-02-27 22:50:31 +01:00
Cédric Krier
690c066c35
Add documentation for Dict field and standardize options
...
review672003
2013-02-23 18:26:01 +01:00
Cédric Krier
d49fb4318d
Add selection_change_with on Selection and Reference fields
...
review587002
2013-02-05 19:06:16 +01:00
Cédric Krier
fd01a724f8
Add Dict fields
...
review501007
2013-01-26 15:18:41 +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
0c577dd660
Improve getattr lookup in fields.Function.get
...
review612003
2012-12-23 22:58: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
10f28ebdec
Set lazy loading on Reference field
2012-11-22 22:39:22 +01:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
f5068bec10
Set default loading of Char depending on translate
...
review473002
2012-08-27 09:49:47 +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
3ebda5c8ee
Add time format validation
...
review342002
2012-05-16 13:04:36 +02:00
Cédric Krier
abb44d5703
Fix usage of None in search clause
...
review353002
2012-05-05 09:32:24 +02:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Nicolas Évrard
584d516067
Integer, Numeric and Float allow None as value
...
NULL value is None and not False
issue2022
review237004
2012-03-23 17:52:36 +01:00
Max Holtzberg
f23f3b5525
Enable False search on property fields by domain inversion
...
issue2345
review203002
2012-02-28 12:51:01 +01:00
Max Holtzberg
250e37f88c
Passing false to SQL query on property field search as parameter
...
issue2351
review206002
2011-12-28 16:03:31 +01:00
Cédric Krier
ad17611e3e
Remove change_default on fields
...
issue2249
review211002
2011-12-22 22:03:15 +01:00
Nicolas Évrard
6ba18631e8
Use relative imports
2011-12-14 17:00:13 +01:00
Nicolas Évrard
0a471486e0
correct pyflake errors
...
review164003
2011-11-02 15:49:38 +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
4f4c4b92ad
Allow to use negative id in reference as unknown record
2011-09-20 15:40:48 +02:00
Cédric Krier
48ec29ab70
Reference id could be 0
2011-09-20 14:43:17 +02:00
Cédric Krier
fefd67c3a5
Improve Binary fields
...
* Support size format in context for Binary fields
* Use buffer for Binary fields
* No more store Binary fields in base64
review74006
2011-09-17 14:43:05 +02:00
Nicolas Évrard
470c1f9d5d
Correctly compute if argument is a condition
...
review100001
2011-09-06 12:00:15 +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
Nicolas Évrard
81faae9373
Preserve order of Many2Many.get
...
review40005
2011-06-14 18:29:08 +02:00
Nicolas Évrard
792410f277
Added autocompletion on fields.Char
2011-03-30 17:20:31 +02:00
Nicolas Évrard
7b62b8465e
Added support for file name to BinaryField
2011-02-16 17:50:09 +01:00
Cédric Krier
c259187ab7
Add loading attribute on fields
2011-01-07 10:58:43 +01:00