Commit Graph
229 Commits
Author SHA1 Message Date
Cédric Krier 9d4b0a1317 Reduce domain before applying active rule for issue1796
(transplanted from 8ccf118729256cb6980047216ac32de40132f846)
2011-01-28 10:34:43 +01:00
Cédric Krier b136467790 Don't rename table from first join and add missing arguments in _order_calc
(transplanted from 033fc58294be25600785fefa12760f6b5610b669)
2010-12-27 16:25:30 +01:00
Cédric Krier e8587a125e merge 2010-12-04 20:06:36 +01:00
Ian Wilson 0e1569d93e Change context to keyword argument, temporary fix for issue1776. 2010-12-04 09:49:16 -08:00
Cédric Krier e533d87213 Add values for all fields_names when singleton doesn't exist
(transplanted from f665ec84a4b29386bd2d224786670703375ece50)
2010-12-03 17:23:51 +01:00
Cédric Krier dd8eef6b39 Fix get_eval for BrowseRecordList to return list of id
(transplanted from 3e3310ddd3fa6e0d0f83c00d2f2cafc4c71060d9)
2010-12-02 14:05:58 +01:00
Cédric Krier a731feaecc Fix missing cursor, user, context for issue1678
transplant b660e76a03ee1d68db38fb5c939a44c3511aa252
2010-09-08 18:42:43 +02:00
Cédric Krier 78def19a83 Fix search on many2many with negate operator
(transplanted from b660e76a03ee1d68db38fb5c939a44c3511aa252)
2010-09-03 23:37:31 +02:00
Cédric Krier 1d76571121 Fix search on many2many with a string as value
(transplanted from 0245fea1e44d02601b92af0ffe386cfc0c791ca9)
2010-09-03 14:27:49 +02:00
Cédric Krier ef3c7090ec Skip non ModelStorage from foreign key operations
(transplanted from 14ea0be5eb7f4376b4529dfa8005b3e2d17fa70c)
2010-08-23 23:56:56 +02:00
Cédric Krier 584f99a56e Don't call super __getattr__ as object has not __getattr__
(transplanted from 71f994acf29607b653967015f3ec0c6aaea82c5f)
2010-08-23 23:55:01 +02:00
Cédric Krier c6aa9c912c Use explicit AS column name in queries that use dictfetch*
SQLite return wrong column name when using query as table
(transplanted from 5c38493067b4de52ece25abaf4353bc48f312299)
2010-07-15 19:00:21 +02:00
Cédric Krier 5e3552ae3e Fix wrong value passed to super call
(transplanted from 1636812276c3fc4e38ad1831aff988feeb704958)
2010-07-15 18:58:26 +02:00
Cédric Krier a09a67f47c Fix _clean_defaults for one2many inherited
(transplanted from 1c802de12b7ad6772d9bde56cd7b079efafdf3e9)
2010-06-28 21:25:33 +02:00
Cédric Krier 52e72d4343 Always check on delete restrict for issue1588
(transplanted from aab1c133077c144b83bbe6871fac3b2bae90eb8c)
2010-06-17 20:05:59 +02:00
Cédric Krier 30d90b99c3 Fix history clause error introduced by changeset 7f5860ab74cb
(transplanted from 012afdea6fe76da72b6ad683acea3f67d00fcf6d)
2010-06-12 20:16:25 +02:00
Cédric Krier af65cfaa8c Make _timestamp numeric instead of datetime to work with XML-RPC and JSON-RPC
(transplanted from 7f5860ab74cbed21e4ef264d2c799be4c07492dd)
2010-06-09 19:58:31 +02:00
Cédric Krier 73ae55ee7e get_eval must return a list of id for O2M for issue1572
(transplanted from 221282dc8954c9eece25181e55053b2057809c87)
2010-06-03 19:47:13 +02:00
Cédric Krier 4513a8f8b9 Documentation refactoring 2010-05-08 14:22:26 +02:00
Cédric Krier 8a13a179ce Fix string when adding raw column on history table for issue1515 2010-04-13 20:14:10 +02:00
Cédric Krier e50c1897ad Don't use offset in second query of search for issue1496
The order between the first query is not necessary the same then the second
one so using an offset can generate missing or duplicated ids in the result.
2010-04-10 13:56:47 +02:00
Cédric Krier e8f50932e3 Don't validate Function fields without setter
It is a waste of resource to validate such Function fields because the value
doesn't depend on data users enter.
2010-03-27 15:58:31 +01:00
Cédric Krier fef5ee826c Enforce that every fields have a non-empty string 2010-03-25 12:52:05 +01:00
Cédric Krier e36c70ce3b searcher on Function fields take only one domain clause as argument 2010-03-23 11:22:31 +01:00
Cédric Krier 5db2dc4025 Models that uses _inherits will search in inherited parents for missing functions
This will prevent the needs to define on_change_* function and button method
in the child Model. In case of diamond problem, it is the first parent in the
dictionary that will be taken.
2010-03-19 15:17:50 +01:00
Cédric Krier ec8907e04d Fix on_change_* call in _default_on_change 2010-03-19 09:51:41 +01:00
Brice V. 5e2a7de385 Fix typo on field types for issue1451 2010-03-18 10:33:59 +01:00
Cédric Krier cc6e750a2f Don't copy One2Many values if relation_field is not set for issue1448
If relation_field is not set then it is a function field and the copy method
will not link duplicated One2Many records to the new record.
2010-03-17 18:46:56 +01:00
Cédric Krier 84b0c7ebbf Allow to have boolean as states value 2010-03-17 17:54:16 +01:00
Cédric Krier 8ec67b1eba merge 2010-03-17 11:51:34 +01:00
Cédric Krier 2e2227d795 Improve search on translatable fields for issue1442 2010-03-17 11:50:52 +01:00
Cédric Krier dab0df51de export_data return empty value for invisible fields 2010-03-17 11:43:21 +01:00
Cédric Krier aed753e21c Don't raise error message about required Integer or Float
Integers and Floats have 0 as default value at the database level
2010-03-16 13:35:13 +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 8951e54c86 Add decimal digits validation on fields and fix Float and Numeric for lost of precision 2010-03-11 15:27:40 +01:00
Cédric Krier 89ad50e952 Improve exception handling in import_data 2010-03-10 20:41:59 +01:00
Cédric Krier f535736b80 Add test on tag when applying inherit view for issue1435
data can contain elements that are comments
2010-03-03 18:37:26 +01:00
Cédric Krier b5fb4d1ef3 Refactoring by validation with pylint 2010-02-18 18:50:35 +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 a8c374617e Refactor import_data of ModelStorage thanks to h.goebel
- translate error message
- handle numeric, date, datetime, reference fields
- improve relation search, fail if too much is found
- add unittest
- add escapechar '\' for ',' in many2many list
2010-02-03 15:59:10 +01:00
Cédric Krier 4795d98d5d Use decorator for Cache 2010-02-03 15:32:58 +01:00
Cédric Krier 010ebcc33e Use generator expression to instanciate BrowseRecordList instead of list comprehensions 2010-02-03 15:31:21 +01:00
Cédric Krier 0a9fae483f Return the same id when reading with default_get in Singleton 2010-02-03 15:23:19 +01:00
Cédric Krier 07e8939925 Raise exception when search function is missing on Function fields for issue1378 2010-01-26 12:15:35 +01:00
Cédric Krier 5d229f6fad Move OPERATORS into const to be able to reload modules 2010-01-22 11:44:31 +01:00
Cédric Krier d402ba4370 Use searched value in logging instead of csv one when failing to import
many2many for issue1389
2010-01-21 18:33:38 +01:00
Cédric Krier 989f6b4b98 Fix typo
_get_id -> get_id
2010-01-21 18:24:42 +01:00
Cédric Krier 1946063a5d Don't put many2one in the search cache (too slow) and externalize some
function result outside the loop
2010-01-21 12:47:32 +01:00
Cédric Krier 847fb72e90 Add PySON to replace python string evaluation on client side 2010-01-20 10:55:19 +01:00
Cédric Krier c9de75ede2 Fix test on _search_domain_active for XML-RPC for issue1380
Tuple in XML-RPC are list
2010-01-19 14:10:31 +01:00