Commit Graph
31 Commits
Author SHA1 Message Date
Nicolas Évrard 2fef479575 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier 29129855ec Add support for Python 3
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Cédric Krier a61474274a Add parent_of operator
issue5037
review15711002
2015-11-05 23:22:26 +01:00
Cédric Krier f01f0d5871 Fix child_of domain on empty MPTT
When the MPTT search returns no row, the SQL query generated has an invalid
syntax because it uses an empty Or() clause. We replace this empty Or() by a
Literal(False) to select nothing.

issue5011
review18651002
2015-10-03 11:50:56 +02:00
Cédric Krier fe52324943 Improve SQL expression for child_of on Many2One with MPTT
issue4984
review22441002
2015-09-24 15:48:45 +02:00
Cédric Krier c6c6c7e268 Fix join target_search for history
search_domain must not override the main table with the history instance if
tables is provided by the caller. In such case, it must assume the caller will
pass the right table.
The join search on Many2One must use the history table if the Target is
historized and a _datetime is set in the context.

issue4798
review12251002
2015-07-28 14:54:03 +02:00
Cédric Krier a739a80228 Fix Rule.domain_get usage in many2one
Since changeset a96d8a738cee, Rule.domain_get returns a domain instead of SQL
expression.
2015-06-15 02:19:49 +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
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 c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier e0b995abbe Refactore configuration to allow easy extention
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier 814b1d2ea5 Ensure ids clause is a list for concatenation
issue3949
review11281006
2014-06-08 00:18: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
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 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 0fe1b93864 Active Record 2012-09-24 22:16:53 +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 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 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 f042e76881 Modify ondelete attribute of Many2One according to required attribute value
"SET NULL" will be changed into "RESTRICT" if required is set.
2010-02-09 10:13:17 +01:00
Cédric Krier 6a4db22800 Remove use of old args 2009-09-30 19:01:55 +02:00
Gour 486d46a405 fix typos for documentation (Model chapter) 2009-09-13 15:37:11 +02:00
Cédric Krier d63ba876cc Limit ondelete to 'CASCADE', 'RESTRICT' and 'SET NULL'
Change ondelete to upper case
2009-04-07 18:20:25 +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 0b6c5f4114 Add datetime_field in fields_get
Add datetime_field in depends of Many2One
2009-02-23 13:27:21 +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