Cédric Krier
3547690d8b
Allow SQL expression and where clause in index_action
...
issue7580
review46621002
2018-07-24 19:29:16 +02:00
Cédric Krier
d2a461390a
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier
036ca6d6a9
Always raise exception in table handler
...
issue7175
review40161002
2018-03-15 00:43:32 +01:00
Nicolas Évrard
ddb7769310
Move handling of sequences to the Database object
...
issue6788
review43521002
2017-10-02 17:48:23 +02:00
Cédric Krier
9136ecf206
Encode data name if it is an unicode
...
In Python3 hashlib works only with bytes.
2017-05-12 12:42:35 +02:00
Cédric Krier
4520afedd3
Convert into hash too long data name
...
Some back-ends have constraint on the length of data name, they usually
silently truncate them, but this can create collision. The solution is to hash
the name when it is too long.
issue4620
issue6494
review37381003
2017-05-12 12:00:44 +02:00
Cédric Krier
826f30219d
Re-use method as default parameter of TableHandler add_column
...
There is no guarantee that the method will not raise a database error on the
first registration because it can rely on other tables being registered.
So the method must be called only when needed. This is when the table already
exists and has records. In this case other tables also already exist.
issue6409
2017-04-01 16:14:36 +02:00
Nicolas Évrard
aa9c9cc9e7
Use sql type instead of field related argument in the column creation
...
issue6348
review26231002
2017-03-31 13:21:51 +02:00
Nicolas Évrard
2fef479575
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
80ad687daf
Raise NotImplementedError in interface class
2010-02-23 15:54:27 +01:00
Cédric Krier
b5fb4d1ef3
Refactoring by validation with pylint
2010-02-18 18:50:35 +01:00
Cédric Krier
1a8c6f2213
Add comment on table and field for postgresql backend
2010-01-11 12:32:50 +01:00
Bertrand Chenal
36efc47a44
Allow to drop constraint, index and foreign key with custom table name
2009-09-10 14:19:10 +02:00
Bertrand Chenal
fd3493ec06
Added column renaming on db backends
2009-09-10 14:09:59 +02:00
Cédric Krier
f820d707f5
Remove _sequence on ModelSQL
...
Add nextid, setnextid, currid, lastid to have a generic way to handle sequence
Add has_lock function to be more database independant
2009-07-07 19:32:31 +02:00
Bertrand Chenal
2d40d7350b
Change output_format (One2Many) to extension (Selection) on ir.action.report.
...
This will ease future addition of new report extension.
2009-04-16 23:22:42 +02:00
Cédric Krier
1bd5fe4439
Add default value for id and __id for issue880
...
Create sequence for history table
2009-03-20 01:42:34 +01:00
Cédric Krier
3cc8b4727d
Fix creation of table to use the right sequence name
2009-03-17 22:38:41 +01:00
Cédric Krier
3e51c5c110
Add functions for table_rename, sequence_exist and sequence_rename
2009-03-17 18:53:00 +01:00
Cédric Krier
7163b49021
Improve index_action to work with a list of column name
2009-03-06 00:36:22 +01:00
Cédric Krier
40f8c7553d
Modify Many2Many to use a model to store relations instead of a named table.
2009-03-05 14:50:44 +01:00
Cédric Krier
f2a4986d29
Remove symbol_c as we will use only backend with Python Database API Specification v2.0
...
Rename symbol_f into sql_format
2009-03-02 14:49:09 +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
0448226997
Move TableHandler into backend and create a TableHandlerInterface
2009-02-04 13:30:00 +01:00